@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.
@@ -1181,25 +1181,1126 @@ var zPostsListResponse = z__namespace.object({
1181
1181
  z__namespace.number(),
1182
1182
  z__namespace.boolean()
1183
1183
  ])),
1184
- variants: z__namespace.array(z__namespace.object({
1184
+ variants: z__namespace.array(z__namespace.union([
1185
+ z__namespace.object({
1186
+ platform: z__namespace.literal("x"),
1187
+ post_type: z__namespace.enum([
1188
+ "text",
1189
+ "single_image",
1190
+ "multi_image",
1191
+ "video"
1192
+ ]),
1193
+ settings: z__namespace.object({
1194
+ reply_settings: z__namespace.enum([
1195
+ "everyone",
1196
+ "following",
1197
+ "mentionedUsers",
1198
+ "subscribers",
1199
+ "verified"
1200
+ ]).optional(),
1201
+ quote_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1202
+ poll: z__namespace.object({
1203
+ options: z__namespace.array(z__namespace.string().min(1).max(25)).min(2).max(4),
1204
+ duration_minutes: z__namespace.int().gte(5).lte(10080),
1205
+ reply_settings: z__namespace.enum([
1206
+ "following",
1207
+ "mentionedUsers",
1208
+ "subscribers",
1209
+ "verified"
1210
+ ]).optional()
1211
+ }).optional(),
1212
+ reply: z__namespace.object({
1213
+ in_reply_to_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/),
1214
+ exclude_reply_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).optional(),
1215
+ auto_populate_reply_metadata: z__namespace.boolean().optional()
1216
+ }).optional(),
1217
+ community_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1218
+ for_super_followers_only: z__namespace.boolean().optional(),
1219
+ geo: z__namespace.object({
1220
+ place_id: z__namespace.string()
1221
+ }).optional(),
1222
+ card_uri: z__namespace.string().optional(),
1223
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1224
+ }),
1225
+ id: z__namespace.string(),
1226
+ object: z__namespace.literal("post_variant"),
1227
+ connection_id: z__namespace.string().nullable(),
1228
+ body: z__namespace.string().nullable(),
1229
+ status: z__namespace.enum([
1230
+ "draft",
1231
+ "scheduled",
1232
+ "publishing",
1233
+ "published",
1234
+ "failed"
1235
+ ]),
1236
+ schedule_at: z__namespace.string().nullable(),
1237
+ result: z__namespace.object({
1238
+ platform_post_id: z__namespace.string(),
1239
+ permalink: z__namespace.string().nullable(),
1240
+ published_at: z__namespace.string()
1241
+ }).nullable(),
1242
+ error: z__namespace.object({
1243
+ code: z__namespace.string(),
1244
+ message: z__namespace.string(),
1245
+ display_error: z__namespace.string()
1246
+ }).nullable(),
1247
+ media: z__namespace.array(z__namespace.object({
1248
+ media_id: z__namespace.string(),
1249
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1250
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1251
+ alt_text_override: z__namespace.string().nullable()
1252
+ }))
1253
+ }),
1254
+ z__namespace.object({
1255
+ platform: z__namespace.literal("linkedin"),
1256
+ post_type: z__namespace.enum([
1257
+ "text",
1258
+ "single_image",
1259
+ "multi_image",
1260
+ "video"
1261
+ ]),
1262
+ settings: z__namespace.object({
1263
+ visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1264
+ content_kind: z__namespace.enum([
1265
+ "text",
1266
+ "single_image",
1267
+ "video",
1268
+ "multi_image",
1269
+ "document",
1270
+ "article",
1271
+ "poll"
1272
+ ]),
1273
+ article: z__namespace.object({
1274
+ source: z__namespace.url(),
1275
+ title: z__namespace.string().max(400).optional(),
1276
+ description: z__namespace.string().max(4086).optional(),
1277
+ thumbnail_media_id: z__namespace.string().optional()
1278
+ }).optional(),
1279
+ poll: z__namespace.object({
1280
+ question: z__namespace.string().min(1).max(140),
1281
+ options: z__namespace.array(z__namespace.string().min(1).max(30)).min(2).max(4),
1282
+ duration: z__namespace.enum([
1283
+ "ONE_DAY",
1284
+ "THREE_DAYS",
1285
+ "SEVEN_DAYS",
1286
+ "FOURTEEN_DAYS"
1287
+ ])
1288
+ }).optional(),
1289
+ document: z__namespace.object({
1290
+ title: z__namespace.string().min(1).max(400)
1291
+ }).optional(),
1292
+ disable_reshare: z__namespace.boolean().optional(),
1293
+ mentions: z__namespace.array(z__namespace.object({
1294
+ type: z__namespace.enum(["person", "organization"]),
1295
+ name: z__namespace.string().min(1),
1296
+ urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1297
+ })).optional()
1298
+ }),
1299
+ id: z__namespace.string(),
1300
+ object: z__namespace.literal("post_variant"),
1301
+ connection_id: z__namespace.string().nullable(),
1302
+ body: z__namespace.string().nullable(),
1303
+ status: z__namespace.enum([
1304
+ "draft",
1305
+ "scheduled",
1306
+ "publishing",
1307
+ "published",
1308
+ "failed"
1309
+ ]),
1310
+ schedule_at: z__namespace.string().nullable(),
1311
+ result: z__namespace.object({
1312
+ platform_post_id: z__namespace.string(),
1313
+ permalink: z__namespace.string().nullable(),
1314
+ published_at: z__namespace.string()
1315
+ }).nullable(),
1316
+ error: z__namespace.object({
1317
+ code: z__namespace.string(),
1318
+ message: z__namespace.string(),
1319
+ display_error: z__namespace.string()
1320
+ }).nullable(),
1321
+ media: z__namespace.array(z__namespace.object({
1322
+ media_id: z__namespace.string(),
1323
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1324
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1325
+ alt_text_override: z__namespace.string().nullable()
1326
+ }))
1327
+ }),
1328
+ z__namespace.object({
1329
+ platform: z__namespace.literal("facebook_page"),
1330
+ post_type: z__namespace.enum([
1331
+ "text",
1332
+ "single_image",
1333
+ "multi_image",
1334
+ "reel"
1335
+ ]),
1336
+ settings: z__namespace.object({
1337
+ link: z__namespace.url().optional()
1338
+ }),
1339
+ id: z__namespace.string(),
1340
+ object: z__namespace.literal("post_variant"),
1341
+ connection_id: z__namespace.string().nullable(),
1342
+ body: z__namespace.string().nullable(),
1343
+ status: z__namespace.enum([
1344
+ "draft",
1345
+ "scheduled",
1346
+ "publishing",
1347
+ "published",
1348
+ "failed"
1349
+ ]),
1350
+ schedule_at: z__namespace.string().nullable(),
1351
+ result: z__namespace.object({
1352
+ platform_post_id: z__namespace.string(),
1353
+ permalink: z__namespace.string().nullable(),
1354
+ published_at: z__namespace.string()
1355
+ }).nullable(),
1356
+ error: z__namespace.object({
1357
+ code: z__namespace.string(),
1358
+ message: z__namespace.string(),
1359
+ display_error: z__namespace.string()
1360
+ }).nullable(),
1361
+ media: z__namespace.array(z__namespace.object({
1362
+ media_id: z__namespace.string(),
1363
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1364
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1365
+ alt_text_override: z__namespace.string().nullable()
1366
+ }))
1367
+ }),
1368
+ z__namespace.object({
1369
+ platform: z__namespace.literal("instagram"),
1370
+ post_type: z__namespace.enum([
1371
+ "single_image",
1372
+ "carousel",
1373
+ "reel"
1374
+ ]),
1375
+ settings: z__namespace.object({
1376
+ media_type: z__namespace.enum([
1377
+ "IMAGE",
1378
+ "CAROUSEL",
1379
+ "REELS"
1380
+ ]).optional(),
1381
+ location_id: z__namespace.string().optional(),
1382
+ user_tags: z__namespace.array(z__namespace.object({
1383
+ username: z__namespace.string().min(1),
1384
+ x: z__namespace.number().gte(0).lte(1),
1385
+ y: z__namespace.number().gte(0).lte(1)
1386
+ })).optional(),
1387
+ collaborators: z__namespace.array(z__namespace.string().min(1)).max(3).optional(),
1388
+ share_to_feed: z__namespace.boolean().optional(),
1389
+ thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1390
+ cover_url: z__namespace.url().optional(),
1391
+ audio_name: z__namespace.string().optional()
1392
+ }),
1393
+ id: z__namespace.string(),
1394
+ object: z__namespace.literal("post_variant"),
1395
+ connection_id: z__namespace.string().nullable(),
1396
+ body: z__namespace.string().nullable(),
1397
+ status: z__namespace.enum([
1398
+ "draft",
1399
+ "scheduled",
1400
+ "publishing",
1401
+ "published",
1402
+ "failed"
1403
+ ]),
1404
+ schedule_at: z__namespace.string().nullable(),
1405
+ result: z__namespace.object({
1406
+ platform_post_id: z__namespace.string(),
1407
+ permalink: z__namespace.string().nullable(),
1408
+ published_at: z__namespace.string()
1409
+ }).nullable(),
1410
+ error: z__namespace.object({
1411
+ code: z__namespace.string(),
1412
+ message: z__namespace.string(),
1413
+ display_error: z__namespace.string()
1414
+ }).nullable(),
1415
+ media: z__namespace.array(z__namespace.object({
1416
+ media_id: z__namespace.string(),
1417
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1418
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1419
+ alt_text_override: z__namespace.string().nullable()
1420
+ }))
1421
+ }),
1422
+ z__namespace.object({
1423
+ platform: z__namespace.literal("tiktok"),
1424
+ post_type: z__namespace.enum([
1425
+ "video",
1426
+ "single_image",
1427
+ "carousel"
1428
+ ]),
1429
+ settings: z__namespace.object({
1430
+ privacy_level: z__namespace.enum([
1431
+ "PUBLIC_TO_EVERYONE",
1432
+ "MUTUAL_FOLLOW_FRIENDS",
1433
+ "FOLLOWER_OF_CREATOR",
1434
+ "SELF_ONLY"
1435
+ ]).optional(),
1436
+ disable_comment: z__namespace.boolean().optional(),
1437
+ disable_duet: z__namespace.boolean().optional(),
1438
+ disable_stitch: z__namespace.boolean().optional(),
1439
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1440
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1441
+ auto_add_music: z__namespace.boolean().optional(),
1442
+ brand_content_toggle: z__namespace.boolean().optional(),
1443
+ brand_organic_toggle: z__namespace.boolean().optional(),
1444
+ is_aigc: z__namespace.boolean().optional()
1445
+ }),
1446
+ id: z__namespace.string(),
1447
+ object: z__namespace.literal("post_variant"),
1448
+ connection_id: z__namespace.string().nullable(),
1449
+ body: z__namespace.string().nullable(),
1450
+ status: z__namespace.enum([
1451
+ "draft",
1452
+ "scheduled",
1453
+ "publishing",
1454
+ "published",
1455
+ "failed"
1456
+ ]),
1457
+ schedule_at: z__namespace.string().nullable(),
1458
+ result: z__namespace.object({
1459
+ platform_post_id: z__namespace.string(),
1460
+ permalink: z__namespace.string().nullable(),
1461
+ published_at: z__namespace.string()
1462
+ }).nullable(),
1463
+ error: z__namespace.object({
1464
+ code: z__namespace.string(),
1465
+ message: z__namespace.string(),
1466
+ display_error: z__namespace.string()
1467
+ }).nullable(),
1468
+ media: z__namespace.array(z__namespace.object({
1469
+ media_id: z__namespace.string(),
1470
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1471
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1472
+ alt_text_override: z__namespace.string().nullable()
1473
+ }))
1474
+ })
1475
+ ])),
1476
+ created_at: z__namespace.string(),
1477
+ updated_at: z__namespace.string()
1478
+ })),
1479
+ total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1480
+ limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1481
+ offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1482
+ has_more: z__namespace.boolean()
1483
+ });
1484
+ var zPostsCreateBody = z__namespace.object({
1485
+ profile_id: z__namespace.string(),
1486
+ publish: z__namespace.enum([
1487
+ "now",
1488
+ "schedule",
1489
+ "draft"
1490
+ ]).optional().default("draft"),
1491
+ schedule_at: z__namespace.iso.datetime().optional(),
1492
+ external_id: z__namespace.string().min(1).max(255).optional(),
1493
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1494
+ z__namespace.string().max(500),
1495
+ z__namespace.number(),
1496
+ z__namespace.boolean()
1497
+ ])).optional(),
1498
+ tags: z__namespace.array(z__namespace.string()).optional(),
1499
+ notes: z__namespace.string().optional(),
1500
+ dry_run: z__namespace.boolean().optional().default(false),
1501
+ variants: z__namespace.array(z__namespace.union([
1502
+ z__namespace.object({
1503
+ platform: z__namespace.literal("x"),
1504
+ post_type: z__namespace.enum([
1505
+ "text",
1506
+ "single_image",
1507
+ "multi_image",
1508
+ "video"
1509
+ ]),
1510
+ settings: z__namespace.object({
1511
+ reply_settings: z__namespace.enum([
1512
+ "everyone",
1513
+ "following",
1514
+ "mentionedUsers",
1515
+ "subscribers",
1516
+ "verified"
1517
+ ]).optional(),
1518
+ quote_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1519
+ poll: z__namespace.object({
1520
+ options: z__namespace.array(z__namespace.string().min(1).max(25)).min(2).max(4),
1521
+ duration_minutes: z__namespace.int().gte(5).lte(10080),
1522
+ reply_settings: z__namespace.enum([
1523
+ "following",
1524
+ "mentionedUsers",
1525
+ "subscribers",
1526
+ "verified"
1527
+ ]).optional()
1528
+ }).optional(),
1529
+ reply: z__namespace.object({
1530
+ in_reply_to_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/),
1531
+ exclude_reply_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).optional(),
1532
+ auto_populate_reply_metadata: z__namespace.boolean().optional()
1533
+ }).optional(),
1534
+ community_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1535
+ for_super_followers_only: z__namespace.boolean().optional(),
1536
+ geo: z__namespace.object({
1537
+ place_id: z__namespace.string()
1538
+ }).optional(),
1539
+ card_uri: z__namespace.string().optional(),
1540
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1541
+ }).optional().default({}),
1542
+ connection_id: z__namespace.string(),
1543
+ body: z__namespace.string().optional(),
1544
+ media: z__namespace.array(z__namespace.object({
1545
+ media_id: z__namespace.string(),
1546
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1547
+ alt_text_override: z__namespace.string().nullish()
1548
+ })).optional().default([])
1549
+ }),
1550
+ z__namespace.object({
1551
+ platform: z__namespace.literal("linkedin"),
1552
+ post_type: z__namespace.enum([
1553
+ "text",
1554
+ "single_image",
1555
+ "multi_image",
1556
+ "video"
1557
+ ]),
1558
+ settings: z__namespace.object({
1559
+ visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1560
+ content_kind: z__namespace.enum([
1561
+ "text",
1562
+ "single_image",
1563
+ "video",
1564
+ "multi_image",
1565
+ "document",
1566
+ "article",
1567
+ "poll"
1568
+ ]),
1569
+ article: z__namespace.object({
1570
+ source: z__namespace.url(),
1571
+ title: z__namespace.string().max(400).optional(),
1572
+ description: z__namespace.string().max(4086).optional(),
1573
+ thumbnail_media_id: z__namespace.string().optional()
1574
+ }).optional(),
1575
+ poll: z__namespace.object({
1576
+ question: z__namespace.string().min(1).max(140),
1577
+ options: z__namespace.array(z__namespace.string().min(1).max(30)).min(2).max(4),
1578
+ duration: z__namespace.enum([
1579
+ "ONE_DAY",
1580
+ "THREE_DAYS",
1581
+ "SEVEN_DAYS",
1582
+ "FOURTEEN_DAYS"
1583
+ ])
1584
+ }).optional(),
1585
+ document: z__namespace.object({
1586
+ title: z__namespace.string().min(1).max(400)
1587
+ }).optional(),
1588
+ disable_reshare: z__namespace.boolean().optional(),
1589
+ mentions: z__namespace.array(z__namespace.object({
1590
+ type: z__namespace.enum(["person", "organization"]),
1591
+ name: z__namespace.string().min(1),
1592
+ urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1593
+ })).optional()
1594
+ }),
1595
+ connection_id: z__namespace.string(),
1596
+ body: z__namespace.string().optional(),
1597
+ media: z__namespace.array(z__namespace.object({
1598
+ media_id: z__namespace.string(),
1599
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1600
+ alt_text_override: z__namespace.string().nullish()
1601
+ })).optional().default([])
1602
+ }),
1603
+ z__namespace.object({
1604
+ platform: z__namespace.literal("instagram"),
1605
+ post_type: z__namespace.enum([
1606
+ "single_image",
1607
+ "carousel",
1608
+ "reel"
1609
+ ]),
1610
+ settings: z__namespace.object({
1611
+ media_type: z__namespace.enum([
1612
+ "IMAGE",
1613
+ "CAROUSEL",
1614
+ "REELS"
1615
+ ]).optional(),
1616
+ location_id: z__namespace.string().optional(),
1617
+ user_tags: z__namespace.array(z__namespace.object({
1618
+ username: z__namespace.string().min(1),
1619
+ x: z__namespace.number().gte(0).lte(1),
1620
+ y: z__namespace.number().gte(0).lte(1)
1621
+ })).optional(),
1622
+ collaborators: z__namespace.array(z__namespace.string().min(1)).max(3).optional(),
1623
+ share_to_feed: z__namespace.boolean().optional(),
1624
+ thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1625
+ cover_url: z__namespace.url().optional(),
1626
+ audio_name: z__namespace.string().optional()
1627
+ }),
1628
+ connection_id: z__namespace.string(),
1629
+ body: z__namespace.string().optional(),
1630
+ media: z__namespace.array(z__namespace.object({
1631
+ media_id: z__namespace.string(),
1632
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1633
+ alt_text_override: z__namespace.string().nullish()
1634
+ })).optional().default([])
1635
+ }),
1636
+ z__namespace.object({
1637
+ platform: z__namespace.literal("facebook_page"),
1638
+ post_type: z__namespace.enum([
1639
+ "text",
1640
+ "single_image",
1641
+ "multi_image",
1642
+ "reel"
1643
+ ]),
1644
+ settings: z__namespace.object({
1645
+ link: z__namespace.url().optional()
1646
+ }).optional().default({}),
1647
+ connection_id: z__namespace.string(),
1648
+ body: z__namespace.string().optional(),
1649
+ media: z__namespace.array(z__namespace.object({
1650
+ media_id: z__namespace.string(),
1651
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1652
+ alt_text_override: z__namespace.string().nullish()
1653
+ })).optional().default([])
1654
+ }),
1655
+ z__namespace.object({
1656
+ platform: z__namespace.literal("tiktok"),
1657
+ post_type: z__namespace.enum([
1658
+ "video",
1659
+ "single_image",
1660
+ "carousel"
1661
+ ]),
1662
+ settings: z__namespace.object({
1663
+ privacy_level: z__namespace.enum([
1664
+ "PUBLIC_TO_EVERYONE",
1665
+ "MUTUAL_FOLLOW_FRIENDS",
1666
+ "FOLLOWER_OF_CREATOR",
1667
+ "SELF_ONLY"
1668
+ ]).optional(),
1669
+ disable_comment: z__namespace.boolean().optional(),
1670
+ disable_duet: z__namespace.boolean().optional(),
1671
+ disable_stitch: z__namespace.boolean().optional(),
1672
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1673
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1674
+ auto_add_music: z__namespace.boolean().optional(),
1675
+ brand_content_toggle: z__namespace.boolean().optional(),
1676
+ brand_organic_toggle: z__namespace.boolean().optional(),
1677
+ is_aigc: z__namespace.boolean().optional()
1678
+ }).optional().default({}),
1679
+ connection_id: z__namespace.string(),
1680
+ body: z__namespace.string().optional(),
1681
+ media: z__namespace.array(z__namespace.object({
1682
+ media_id: z__namespace.string(),
1683
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1684
+ alt_text_override: z__namespace.string().nullish()
1685
+ })).optional().default([])
1686
+ })
1687
+ ])).min(1)
1688
+ });
1689
+ var zPostsCreateResponse = z__namespace.object({
1690
+ id: z__namespace.string(),
1691
+ object: z__namespace.literal("post"),
1692
+ profile_id: z__namespace.string(),
1693
+ external_id: z__namespace.string().nullable(),
1694
+ status: z__namespace.enum([
1695
+ "draft",
1696
+ "scheduled",
1697
+ "publishing",
1698
+ "partially_published",
1699
+ "published",
1700
+ "failed"
1701
+ ]),
1702
+ schedule_at: z__namespace.string().nullable(),
1703
+ tags: z__namespace.array(z__namespace.string()),
1704
+ notes: z__namespace.string().nullable(),
1705
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1706
+ z__namespace.string().max(500),
1707
+ z__namespace.number(),
1708
+ z__namespace.boolean()
1709
+ ])),
1710
+ variants: z__namespace.array(z__namespace.union([
1711
+ z__namespace.object({
1712
+ platform: z__namespace.literal("x"),
1713
+ post_type: z__namespace.enum([
1714
+ "text",
1715
+ "single_image",
1716
+ "multi_image",
1717
+ "video"
1718
+ ]),
1719
+ settings: z__namespace.object({
1720
+ reply_settings: z__namespace.enum([
1721
+ "everyone",
1722
+ "following",
1723
+ "mentionedUsers",
1724
+ "subscribers",
1725
+ "verified"
1726
+ ]).optional(),
1727
+ quote_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1728
+ poll: z__namespace.object({
1729
+ options: z__namespace.array(z__namespace.string().min(1).max(25)).min(2).max(4),
1730
+ duration_minutes: z__namespace.int().gte(5).lte(10080),
1731
+ reply_settings: z__namespace.enum([
1732
+ "following",
1733
+ "mentionedUsers",
1734
+ "subscribers",
1735
+ "verified"
1736
+ ]).optional()
1737
+ }).optional(),
1738
+ reply: z__namespace.object({
1739
+ in_reply_to_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/),
1740
+ exclude_reply_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).optional(),
1741
+ auto_populate_reply_metadata: z__namespace.boolean().optional()
1742
+ }).optional(),
1743
+ community_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
1744
+ for_super_followers_only: z__namespace.boolean().optional(),
1745
+ geo: z__namespace.object({
1746
+ place_id: z__namespace.string()
1747
+ }).optional(),
1748
+ card_uri: z__namespace.string().optional(),
1749
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1750
+ }),
1751
+ id: z__namespace.string(),
1752
+ object: z__namespace.literal("post_variant"),
1753
+ connection_id: z__namespace.string().nullable(),
1754
+ body: z__namespace.string().nullable(),
1755
+ status: z__namespace.enum([
1756
+ "draft",
1757
+ "scheduled",
1758
+ "publishing",
1759
+ "published",
1760
+ "failed"
1761
+ ]),
1762
+ schedule_at: z__namespace.string().nullable(),
1763
+ result: z__namespace.object({
1764
+ platform_post_id: z__namespace.string(),
1765
+ permalink: z__namespace.string().nullable(),
1766
+ published_at: z__namespace.string()
1767
+ }).nullable(),
1768
+ error: z__namespace.object({
1769
+ code: z__namespace.string(),
1770
+ message: z__namespace.string(),
1771
+ display_error: z__namespace.string()
1772
+ }).nullable(),
1773
+ media: z__namespace.array(z__namespace.object({
1774
+ media_id: z__namespace.string(),
1775
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1776
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1777
+ alt_text_override: z__namespace.string().nullable()
1778
+ }))
1779
+ }),
1780
+ z__namespace.object({
1781
+ platform: z__namespace.literal("linkedin"),
1782
+ post_type: z__namespace.enum([
1783
+ "text",
1784
+ "single_image",
1785
+ "multi_image",
1786
+ "video"
1787
+ ]),
1788
+ settings: z__namespace.object({
1789
+ visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1790
+ content_kind: z__namespace.enum([
1791
+ "text",
1792
+ "single_image",
1793
+ "video",
1794
+ "multi_image",
1795
+ "document",
1796
+ "article",
1797
+ "poll"
1798
+ ]),
1799
+ article: z__namespace.object({
1800
+ source: z__namespace.url(),
1801
+ title: z__namespace.string().max(400).optional(),
1802
+ description: z__namespace.string().max(4086).optional(),
1803
+ thumbnail_media_id: z__namespace.string().optional()
1804
+ }).optional(),
1805
+ poll: z__namespace.object({
1806
+ question: z__namespace.string().min(1).max(140),
1807
+ options: z__namespace.array(z__namespace.string().min(1).max(30)).min(2).max(4),
1808
+ duration: z__namespace.enum([
1809
+ "ONE_DAY",
1810
+ "THREE_DAYS",
1811
+ "SEVEN_DAYS",
1812
+ "FOURTEEN_DAYS"
1813
+ ])
1814
+ }).optional(),
1815
+ document: z__namespace.object({
1816
+ title: z__namespace.string().min(1).max(400)
1817
+ }).optional(),
1818
+ disable_reshare: z__namespace.boolean().optional(),
1819
+ mentions: z__namespace.array(z__namespace.object({
1820
+ type: z__namespace.enum(["person", "organization"]),
1821
+ name: z__namespace.string().min(1),
1822
+ urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1823
+ })).optional()
1824
+ }),
1825
+ id: z__namespace.string(),
1826
+ object: z__namespace.literal("post_variant"),
1827
+ connection_id: z__namespace.string().nullable(),
1828
+ body: z__namespace.string().nullable(),
1829
+ status: z__namespace.enum([
1830
+ "draft",
1831
+ "scheduled",
1832
+ "publishing",
1833
+ "published",
1834
+ "failed"
1835
+ ]),
1836
+ schedule_at: z__namespace.string().nullable(),
1837
+ result: z__namespace.object({
1838
+ platform_post_id: z__namespace.string(),
1839
+ permalink: z__namespace.string().nullable(),
1840
+ published_at: z__namespace.string()
1841
+ }).nullable(),
1842
+ error: z__namespace.object({
1843
+ code: z__namespace.string(),
1844
+ message: z__namespace.string(),
1845
+ display_error: z__namespace.string()
1846
+ }).nullable(),
1847
+ media: z__namespace.array(z__namespace.object({
1848
+ media_id: z__namespace.string(),
1849
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1850
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1851
+ alt_text_override: z__namespace.string().nullable()
1852
+ }))
1853
+ }),
1854
+ z__namespace.object({
1855
+ platform: z__namespace.literal("facebook_page"),
1856
+ post_type: z__namespace.enum([
1857
+ "text",
1858
+ "single_image",
1859
+ "multi_image",
1860
+ "reel"
1861
+ ]),
1862
+ settings: z__namespace.object({
1863
+ link: z__namespace.url().optional()
1864
+ }),
1865
+ id: z__namespace.string(),
1866
+ object: z__namespace.literal("post_variant"),
1867
+ connection_id: z__namespace.string().nullable(),
1868
+ body: z__namespace.string().nullable(),
1869
+ status: z__namespace.enum([
1870
+ "draft",
1871
+ "scheduled",
1872
+ "publishing",
1873
+ "published",
1874
+ "failed"
1875
+ ]),
1876
+ schedule_at: z__namespace.string().nullable(),
1877
+ result: z__namespace.object({
1878
+ platform_post_id: z__namespace.string(),
1879
+ permalink: z__namespace.string().nullable(),
1880
+ published_at: z__namespace.string()
1881
+ }).nullable(),
1882
+ error: z__namespace.object({
1883
+ code: z__namespace.string(),
1884
+ message: z__namespace.string(),
1885
+ display_error: z__namespace.string()
1886
+ }).nullable(),
1887
+ media: z__namespace.array(z__namespace.object({
1888
+ media_id: z__namespace.string(),
1889
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1890
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1891
+ alt_text_override: z__namespace.string().nullable()
1892
+ }))
1893
+ }),
1894
+ z__namespace.object({
1895
+ platform: z__namespace.literal("instagram"),
1896
+ post_type: z__namespace.enum([
1897
+ "single_image",
1898
+ "carousel",
1899
+ "reel"
1900
+ ]),
1901
+ settings: z__namespace.object({
1902
+ media_type: z__namespace.enum([
1903
+ "IMAGE",
1904
+ "CAROUSEL",
1905
+ "REELS"
1906
+ ]).optional(),
1907
+ location_id: z__namespace.string().optional(),
1908
+ user_tags: z__namespace.array(z__namespace.object({
1909
+ username: z__namespace.string().min(1),
1910
+ x: z__namespace.number().gte(0).lte(1),
1911
+ y: z__namespace.number().gte(0).lte(1)
1912
+ })).optional(),
1913
+ collaborators: z__namespace.array(z__namespace.string().min(1)).max(3).optional(),
1914
+ share_to_feed: z__namespace.boolean().optional(),
1915
+ thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1916
+ cover_url: z__namespace.url().optional(),
1917
+ audio_name: z__namespace.string().optional()
1918
+ }),
1919
+ id: z__namespace.string(),
1920
+ object: z__namespace.literal("post_variant"),
1921
+ connection_id: z__namespace.string().nullable(),
1922
+ body: z__namespace.string().nullable(),
1923
+ status: z__namespace.enum([
1924
+ "draft",
1925
+ "scheduled",
1926
+ "publishing",
1927
+ "published",
1928
+ "failed"
1929
+ ]),
1930
+ schedule_at: z__namespace.string().nullable(),
1931
+ result: z__namespace.object({
1932
+ platform_post_id: z__namespace.string(),
1933
+ permalink: z__namespace.string().nullable(),
1934
+ published_at: z__namespace.string()
1935
+ }).nullable(),
1936
+ error: z__namespace.object({
1937
+ code: z__namespace.string(),
1938
+ message: z__namespace.string(),
1939
+ display_error: z__namespace.string()
1940
+ }).nullable(),
1941
+ media: z__namespace.array(z__namespace.object({
1942
+ media_id: z__namespace.string(),
1943
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1944
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1945
+ alt_text_override: z__namespace.string().nullable()
1946
+ }))
1947
+ }),
1948
+ z__namespace.object({
1949
+ platform: z__namespace.literal("tiktok"),
1950
+ post_type: z__namespace.enum([
1951
+ "video",
1952
+ "single_image",
1953
+ "carousel"
1954
+ ]),
1955
+ settings: z__namespace.object({
1956
+ privacy_level: z__namespace.enum([
1957
+ "PUBLIC_TO_EVERYONE",
1958
+ "MUTUAL_FOLLOW_FRIENDS",
1959
+ "FOLLOWER_OF_CREATOR",
1960
+ "SELF_ONLY"
1961
+ ]).optional(),
1962
+ disable_comment: z__namespace.boolean().optional(),
1963
+ disable_duet: z__namespace.boolean().optional(),
1964
+ disable_stitch: z__namespace.boolean().optional(),
1965
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1966
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1967
+ auto_add_music: z__namespace.boolean().optional(),
1968
+ brand_content_toggle: z__namespace.boolean().optional(),
1969
+ brand_organic_toggle: z__namespace.boolean().optional(),
1970
+ is_aigc: z__namespace.boolean().optional()
1971
+ }),
1972
+ id: z__namespace.string(),
1973
+ object: z__namespace.literal("post_variant"),
1974
+ connection_id: z__namespace.string().nullable(),
1975
+ body: z__namespace.string().nullable(),
1976
+ status: z__namespace.enum([
1977
+ "draft",
1978
+ "scheduled",
1979
+ "publishing",
1980
+ "published",
1981
+ "failed"
1982
+ ]),
1983
+ schedule_at: z__namespace.string().nullable(),
1984
+ result: z__namespace.object({
1985
+ platform_post_id: z__namespace.string(),
1986
+ permalink: z__namespace.string().nullable(),
1987
+ published_at: z__namespace.string()
1988
+ }).nullable(),
1989
+ error: z__namespace.object({
1990
+ code: z__namespace.string(),
1991
+ message: z__namespace.string(),
1992
+ display_error: z__namespace.string()
1993
+ }).nullable(),
1994
+ media: z__namespace.array(z__namespace.object({
1995
+ media_id: z__namespace.string(),
1996
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1997
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1998
+ alt_text_override: z__namespace.string().nullable()
1999
+ }))
2000
+ })
2001
+ ])),
2002
+ created_at: z__namespace.string(),
2003
+ updated_at: z__namespace.string(),
2004
+ dry_run: z__namespace.boolean(),
2005
+ executed: z__namespace.boolean()
2006
+ });
2007
+ var zPostsDeletePath = z__namespace.object({
2008
+ id: z__namespace.string()
2009
+ });
2010
+ var zPostsDeleteResponse = z__namespace.object({
2011
+ id: z__namespace.string(),
2012
+ object: z__namespace.literal("post"),
2013
+ deleted: z__namespace.literal(true)
2014
+ });
2015
+ var zPostsGetPath = z__namespace.object({
2016
+ id: z__namespace.string()
2017
+ });
2018
+ var zPostsGetResponse = z__namespace.object({
2019
+ id: z__namespace.string(),
2020
+ object: z__namespace.literal("post"),
2021
+ profile_id: z__namespace.string(),
2022
+ external_id: z__namespace.string().nullable(),
2023
+ status: z__namespace.enum([
2024
+ "draft",
2025
+ "scheduled",
2026
+ "publishing",
2027
+ "partially_published",
2028
+ "published",
2029
+ "failed"
2030
+ ]),
2031
+ schedule_at: z__namespace.string().nullable(),
2032
+ tags: z__namespace.array(z__namespace.string()),
2033
+ notes: z__namespace.string().nullable(),
2034
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
2035
+ z__namespace.string().max(500),
2036
+ z__namespace.number(),
2037
+ z__namespace.boolean()
2038
+ ])),
2039
+ variants: z__namespace.array(z__namespace.union([
2040
+ z__namespace.object({
2041
+ platform: z__namespace.literal("x"),
2042
+ post_type: z__namespace.enum([
2043
+ "text",
2044
+ "single_image",
2045
+ "multi_image",
2046
+ "video"
2047
+ ]),
2048
+ settings: z__namespace.object({
2049
+ reply_settings: z__namespace.enum([
2050
+ "everyone",
2051
+ "following",
2052
+ "mentionedUsers",
2053
+ "subscribers",
2054
+ "verified"
2055
+ ]).optional(),
2056
+ quote_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
2057
+ poll: z__namespace.object({
2058
+ options: z__namespace.array(z__namespace.string().min(1).max(25)).min(2).max(4),
2059
+ duration_minutes: z__namespace.int().gte(5).lte(10080),
2060
+ reply_settings: z__namespace.enum([
2061
+ "following",
2062
+ "mentionedUsers",
2063
+ "subscribers",
2064
+ "verified"
2065
+ ]).optional()
2066
+ }).optional(),
2067
+ reply: z__namespace.object({
2068
+ in_reply_to_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/),
2069
+ exclude_reply_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).optional(),
2070
+ auto_populate_reply_metadata: z__namespace.boolean().optional()
2071
+ }).optional(),
2072
+ community_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
2073
+ for_super_followers_only: z__namespace.boolean().optional(),
2074
+ geo: z__namespace.object({
2075
+ place_id: z__namespace.string()
2076
+ }).optional(),
2077
+ card_uri: z__namespace.string().optional(),
2078
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
2079
+ }),
1185
2080
  id: z__namespace.string(),
1186
2081
  object: z__namespace.literal("post_variant"),
1187
2082
  connection_id: z__namespace.string().nullable(),
1188
- platform: z__namespace.enum([
1189
- "x",
1190
- "linkedin",
1191
- "facebook_page",
1192
- "instagram",
1193
- "tiktok"
2083
+ body: z__namespace.string().nullable(),
2084
+ status: z__namespace.enum([
2085
+ "draft",
2086
+ "scheduled",
2087
+ "publishing",
2088
+ "published",
2089
+ "failed"
2090
+ ]),
2091
+ schedule_at: z__namespace.string().nullable(),
2092
+ result: z__namespace.object({
2093
+ platform_post_id: z__namespace.string(),
2094
+ permalink: z__namespace.string().nullable(),
2095
+ published_at: z__namespace.string()
2096
+ }).nullable(),
2097
+ error: z__namespace.object({
2098
+ code: z__namespace.string(),
2099
+ message: z__namespace.string(),
2100
+ display_error: z__namespace.string()
2101
+ }).nullable(),
2102
+ media: z__namespace.array(z__namespace.object({
2103
+ media_id: z__namespace.string(),
2104
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2105
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2106
+ alt_text_override: z__namespace.string().nullable()
2107
+ }))
2108
+ }),
2109
+ z__namespace.object({
2110
+ platform: z__namespace.literal("linkedin"),
2111
+ post_type: z__namespace.enum([
2112
+ "text",
2113
+ "single_image",
2114
+ "multi_image",
2115
+ "video"
2116
+ ]),
2117
+ settings: z__namespace.object({
2118
+ visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
2119
+ content_kind: z__namespace.enum([
2120
+ "text",
2121
+ "single_image",
2122
+ "video",
2123
+ "multi_image",
2124
+ "document",
2125
+ "article",
2126
+ "poll"
2127
+ ]),
2128
+ article: z__namespace.object({
2129
+ source: z__namespace.url(),
2130
+ title: z__namespace.string().max(400).optional(),
2131
+ description: z__namespace.string().max(4086).optional(),
2132
+ thumbnail_media_id: z__namespace.string().optional()
2133
+ }).optional(),
2134
+ poll: z__namespace.object({
2135
+ question: z__namespace.string().min(1).max(140),
2136
+ options: z__namespace.array(z__namespace.string().min(1).max(30)).min(2).max(4),
2137
+ duration: z__namespace.enum([
2138
+ "ONE_DAY",
2139
+ "THREE_DAYS",
2140
+ "SEVEN_DAYS",
2141
+ "FOURTEEN_DAYS"
2142
+ ])
2143
+ }).optional(),
2144
+ document: z__namespace.object({
2145
+ title: z__namespace.string().min(1).max(400)
2146
+ }).optional(),
2147
+ disable_reshare: z__namespace.boolean().optional(),
2148
+ mentions: z__namespace.array(z__namespace.object({
2149
+ type: z__namespace.enum(["person", "organization"]),
2150
+ name: z__namespace.string().min(1),
2151
+ urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
2152
+ })).optional()
2153
+ }),
2154
+ id: z__namespace.string(),
2155
+ object: z__namespace.literal("post_variant"),
2156
+ connection_id: z__namespace.string().nullable(),
2157
+ body: z__namespace.string().nullable(),
2158
+ status: z__namespace.enum([
2159
+ "draft",
2160
+ "scheduled",
2161
+ "publishing",
2162
+ "published",
2163
+ "failed"
2164
+ ]),
2165
+ schedule_at: z__namespace.string().nullable(),
2166
+ result: z__namespace.object({
2167
+ platform_post_id: z__namespace.string(),
2168
+ permalink: z__namespace.string().nullable(),
2169
+ published_at: z__namespace.string()
2170
+ }).nullable(),
2171
+ error: z__namespace.object({
2172
+ code: z__namespace.string(),
2173
+ message: z__namespace.string(),
2174
+ display_error: z__namespace.string()
2175
+ }).nullable(),
2176
+ media: z__namespace.array(z__namespace.object({
2177
+ media_id: z__namespace.string(),
2178
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2179
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2180
+ alt_text_override: z__namespace.string().nullable()
2181
+ }))
2182
+ }),
2183
+ z__namespace.object({
2184
+ platform: z__namespace.literal("facebook_page"),
2185
+ post_type: z__namespace.enum([
2186
+ "text",
2187
+ "single_image",
2188
+ "multi_image",
2189
+ "reel"
2190
+ ]),
2191
+ settings: z__namespace.object({
2192
+ link: z__namespace.url().optional()
2193
+ }),
2194
+ id: z__namespace.string(),
2195
+ object: z__namespace.literal("post_variant"),
2196
+ connection_id: z__namespace.string().nullable(),
2197
+ body: z__namespace.string().nullable(),
2198
+ status: z__namespace.enum([
2199
+ "draft",
2200
+ "scheduled",
2201
+ "publishing",
2202
+ "published",
2203
+ "failed"
2204
+ ]),
2205
+ schedule_at: z__namespace.string().nullable(),
2206
+ result: z__namespace.object({
2207
+ platform_post_id: z__namespace.string(),
2208
+ permalink: z__namespace.string().nullable(),
2209
+ published_at: z__namespace.string()
2210
+ }).nullable(),
2211
+ error: z__namespace.object({
2212
+ code: z__namespace.string(),
2213
+ message: z__namespace.string(),
2214
+ display_error: z__namespace.string()
2215
+ }).nullable(),
2216
+ media: z__namespace.array(z__namespace.object({
2217
+ media_id: z__namespace.string(),
2218
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2219
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2220
+ alt_text_override: z__namespace.string().nullable()
2221
+ }))
2222
+ }),
2223
+ z__namespace.object({
2224
+ platform: z__namespace.literal("instagram"),
2225
+ post_type: z__namespace.enum([
2226
+ "single_image",
2227
+ "carousel",
2228
+ "reel"
2229
+ ]),
2230
+ settings: z__namespace.object({
2231
+ media_type: z__namespace.enum([
2232
+ "IMAGE",
2233
+ "CAROUSEL",
2234
+ "REELS"
2235
+ ]).optional(),
2236
+ location_id: z__namespace.string().optional(),
2237
+ user_tags: z__namespace.array(z__namespace.object({
2238
+ username: z__namespace.string().min(1),
2239
+ x: z__namespace.number().gte(0).lte(1),
2240
+ y: z__namespace.number().gte(0).lte(1)
2241
+ })).optional(),
2242
+ collaborators: z__namespace.array(z__namespace.string().min(1)).max(3).optional(),
2243
+ share_to_feed: z__namespace.boolean().optional(),
2244
+ thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2245
+ cover_url: z__namespace.url().optional(),
2246
+ audio_name: z__namespace.string().optional()
2247
+ }),
2248
+ id: z__namespace.string(),
2249
+ object: z__namespace.literal("post_variant"),
2250
+ connection_id: z__namespace.string().nullable(),
2251
+ body: z__namespace.string().nullable(),
2252
+ status: z__namespace.enum([
2253
+ "draft",
2254
+ "scheduled",
2255
+ "publishing",
2256
+ "published",
2257
+ "failed"
1194
2258
  ]),
2259
+ schedule_at: z__namespace.string().nullable(),
2260
+ result: z__namespace.object({
2261
+ platform_post_id: z__namespace.string(),
2262
+ permalink: z__namespace.string().nullable(),
2263
+ published_at: z__namespace.string()
2264
+ }).nullable(),
2265
+ error: z__namespace.object({
2266
+ code: z__namespace.string(),
2267
+ message: z__namespace.string(),
2268
+ display_error: z__namespace.string()
2269
+ }).nullable(),
2270
+ media: z__namespace.array(z__namespace.object({
2271
+ media_id: z__namespace.string(),
2272
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2273
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2274
+ alt_text_override: z__namespace.string().nullable()
2275
+ }))
2276
+ }),
2277
+ z__namespace.object({
2278
+ platform: z__namespace.literal("tiktok"),
1195
2279
  post_type: z__namespace.enum([
1196
- "text",
1197
- "single_image",
1198
- "multi_image",
1199
2280
  "video",
1200
- "reel",
2281
+ "single_image",
1201
2282
  "carousel"
1202
2283
  ]),
2284
+ settings: z__namespace.object({
2285
+ privacy_level: z__namespace.enum([
2286
+ "PUBLIC_TO_EVERYONE",
2287
+ "MUTUAL_FOLLOW_FRIENDS",
2288
+ "FOLLOWER_OF_CREATOR",
2289
+ "SELF_ONLY"
2290
+ ]).optional(),
2291
+ disable_comment: z__namespace.boolean().optional(),
2292
+ disable_duet: z__namespace.boolean().optional(),
2293
+ disable_stitch: z__namespace.boolean().optional(),
2294
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2295
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2296
+ auto_add_music: z__namespace.boolean().optional(),
2297
+ brand_content_toggle: z__namespace.boolean().optional(),
2298
+ brand_organic_toggle: z__namespace.boolean().optional(),
2299
+ is_aigc: z__namespace.boolean().optional()
2300
+ }),
2301
+ id: z__namespace.string(),
2302
+ object: z__namespace.literal("post_variant"),
2303
+ connection_id: z__namespace.string().nullable(),
1203
2304
  body: z__namespace.string().nullable(),
1204
2305
  status: z__namespace.enum([
1205
2306
  "draft",
@@ -1208,7 +2309,6 @@ var zPostsListResponse = z__namespace.object({
1208
2309
  "published",
1209
2310
  "failed"
1210
2311
  ]),
1211
- settings: z__namespace.record(z__namespace.string(), z__namespace.unknown()),
1212
2312
  schedule_at: z__namespace.string().nullable(),
1213
2313
  result: z__namespace.object({
1214
2314
  platform_post_id: z__namespace.string(),
@@ -1226,31 +2326,26 @@ var zPostsListResponse = z__namespace.object({
1226
2326
  crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1227
2327
  alt_text_override: z__namespace.string().nullable()
1228
2328
  }))
1229
- })),
1230
- created_at: z__namespace.string(),
1231
- updated_at: z__namespace.string()
1232
- })),
1233
- total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1234
- limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1235
- offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1236
- has_more: z__namespace.boolean()
2329
+ })
2330
+ ])),
2331
+ created_at: z__namespace.string(),
2332
+ updated_at: z__namespace.string()
1237
2333
  });
1238
- var zPostsCreateBody = z__namespace.object({
1239
- profile_id: z__namespace.string(),
2334
+ var zPostsUpdateBody = z__namespace.object({
1240
2335
  publish: z__namespace.enum([
1241
2336
  "now",
1242
2337
  "schedule",
1243
2338
  "draft"
1244
- ]).optional().default("draft"),
1245
- schedule_at: z__namespace.iso.datetime().optional(),
1246
- external_id: z__namespace.string().min(1).max(255).optional(),
2339
+ ]).optional(),
2340
+ schedule_at: z__namespace.iso.datetime().nullish(),
2341
+ external_id: z__namespace.string().min(1).max(255).nullish(),
1247
2342
  metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1248
2343
  z__namespace.string().max(500),
1249
2344
  z__namespace.number(),
1250
2345
  z__namespace.boolean()
1251
2346
  ])).optional(),
1252
2347
  tags: z__namespace.array(z__namespace.string()).optional(),
1253
- notes: z__namespace.string().optional(),
2348
+ notes: z__namespace.string().nullish(),
1254
2349
  dry_run: z__namespace.boolean().optional().default(false),
1255
2350
  variants: z__namespace.array(z__namespace.union([
1256
2351
  z__namespace.object({
@@ -1261,13 +2356,6 @@ var zPostsCreateBody = z__namespace.object({
1261
2356
  "multi_image",
1262
2357
  "video"
1263
2358
  ]),
1264
- connection_id: z__namespace.string(),
1265
- body: z__namespace.string().optional(),
1266
- media: z__namespace.array(z__namespace.object({
1267
- media_id: z__namespace.string(),
1268
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1269
- alt_text_override: z__namespace.string().nullish()
1270
- })).optional().default([]),
1271
2359
  settings: z__namespace.object({
1272
2360
  reply_settings: z__namespace.enum([
1273
2361
  "everyone",
@@ -1299,7 +2387,14 @@ var zPostsCreateBody = z__namespace.object({
1299
2387
  }).optional(),
1300
2388
  card_uri: z__namespace.string().optional(),
1301
2389
  media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1302
- }).optional().default({})
2390
+ }).optional().default({}),
2391
+ connection_id: z__namespace.string(),
2392
+ body: z__namespace.string().optional(),
2393
+ media: z__namespace.array(z__namespace.object({
2394
+ media_id: z__namespace.string(),
2395
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2396
+ alt_text_override: z__namespace.string().nullish()
2397
+ })).optional().default([])
1303
2398
  }),
1304
2399
  z__namespace.object({
1305
2400
  platform: z__namespace.literal("linkedin"),
@@ -1309,13 +2404,6 @@ var zPostsCreateBody = z__namespace.object({
1309
2404
  "multi_image",
1310
2405
  "video"
1311
2406
  ]),
1312
- connection_id: z__namespace.string(),
1313
- body: z__namespace.string().optional(),
1314
- media: z__namespace.array(z__namespace.object({
1315
- media_id: z__namespace.string(),
1316
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1317
- alt_text_override: z__namespace.string().nullish()
1318
- })).optional().default([]),
1319
2407
  settings: z__namespace.object({
1320
2408
  visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1321
2409
  content_kind: z__namespace.enum([
@@ -1352,7 +2440,14 @@ var zPostsCreateBody = z__namespace.object({
1352
2440
  name: z__namespace.string().min(1),
1353
2441
  urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1354
2442
  })).optional()
1355
- })
2443
+ }),
2444
+ connection_id: z__namespace.string(),
2445
+ body: z__namespace.string().optional(),
2446
+ media: z__namespace.array(z__namespace.object({
2447
+ media_id: z__namespace.string(),
2448
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2449
+ alt_text_override: z__namespace.string().nullish()
2450
+ })).optional().default([])
1356
2451
  }),
1357
2452
  z__namespace.object({
1358
2453
  platform: z__namespace.literal("instagram"),
@@ -1361,13 +2456,6 @@ var zPostsCreateBody = z__namespace.object({
1361
2456
  "carousel",
1362
2457
  "reel"
1363
2458
  ]),
1364
- connection_id: z__namespace.string(),
1365
- body: z__namespace.string().optional(),
1366
- media: z__namespace.array(z__namespace.object({
1367
- media_id: z__namespace.string(),
1368
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1369
- alt_text_override: z__namespace.string().nullish()
1370
- })).optional().default([]),
1371
2459
  settings: z__namespace.object({
1372
2460
  media_type: z__namespace.enum([
1373
2461
  "IMAGE",
@@ -1385,7 +2473,14 @@ var zPostsCreateBody = z__namespace.object({
1385
2473
  thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1386
2474
  cover_url: z__namespace.url().optional(),
1387
2475
  audio_name: z__namespace.string().optional()
1388
- })
2476
+ }),
2477
+ connection_id: z__namespace.string(),
2478
+ body: z__namespace.string().optional(),
2479
+ media: z__namespace.array(z__namespace.object({
2480
+ media_id: z__namespace.string(),
2481
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2482
+ alt_text_override: z__namespace.string().nullish()
2483
+ })).optional().default([])
1389
2484
  }),
1390
2485
  z__namespace.object({
1391
2486
  platform: z__namespace.literal("facebook_page"),
@@ -1395,16 +2490,16 @@ var zPostsCreateBody = z__namespace.object({
1395
2490
  "multi_image",
1396
2491
  "reel"
1397
2492
  ]),
2493
+ settings: z__namespace.object({
2494
+ link: z__namespace.url().optional()
2495
+ }).optional().default({}),
1398
2496
  connection_id: z__namespace.string(),
1399
2497
  body: z__namespace.string().optional(),
1400
2498
  media: z__namespace.array(z__namespace.object({
1401
2499
  media_id: z__namespace.string(),
1402
2500
  crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1403
2501
  alt_text_override: z__namespace.string().nullish()
1404
- })).optional().default([]),
1405
- settings: z__namespace.object({
1406
- link: z__namespace.url().optional()
1407
- }).optional().default({})
2502
+ })).optional().default([])
1408
2503
  }),
1409
2504
  z__namespace.object({
1410
2505
  platform: z__namespace.literal("tiktok"),
@@ -1413,13 +2508,6 @@ var zPostsCreateBody = z__namespace.object({
1413
2508
  "single_image",
1414
2509
  "carousel"
1415
2510
  ]),
1416
- connection_id: z__namespace.string(),
1417
- body: z__namespace.string().optional(),
1418
- media: z__namespace.array(z__namespace.object({
1419
- media_id: z__namespace.string(),
1420
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1421
- alt_text_override: z__namespace.string().nullish()
1422
- })).optional().default([]),
1423
2511
  settings: z__namespace.object({
1424
2512
  privacy_level: z__namespace.enum([
1425
2513
  "PUBLIC_TO_EVERYONE",
@@ -1436,94 +2524,21 @@ var zPostsCreateBody = z__namespace.object({
1436
2524
  brand_content_toggle: z__namespace.boolean().optional(),
1437
2525
  brand_organic_toggle: z__namespace.boolean().optional(),
1438
2526
  is_aigc: z__namespace.boolean().optional()
1439
- }).optional().default({})
2527
+ }).optional().default({}),
2528
+ connection_id: z__namespace.string(),
2529
+ body: z__namespace.string().optional(),
2530
+ media: z__namespace.array(z__namespace.object({
2531
+ media_id: z__namespace.string(),
2532
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2533
+ alt_text_override: z__namespace.string().nullish()
2534
+ })).optional().default([])
1440
2535
  })
1441
- ])).min(1)
1442
- });
1443
- var zPostsCreateResponse = z__namespace.object({
1444
- id: z__namespace.string(),
1445
- object: z__namespace.literal("post"),
1446
- profile_id: z__namespace.string(),
1447
- external_id: z__namespace.string().nullable(),
1448
- status: z__namespace.enum([
1449
- "draft",
1450
- "scheduled",
1451
- "publishing",
1452
- "partially_published",
1453
- "published",
1454
- "failed"
1455
- ]),
1456
- schedule_at: z__namespace.string().nullable(),
1457
- tags: z__namespace.array(z__namespace.string()),
1458
- notes: z__namespace.string().nullable(),
1459
- metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1460
- z__namespace.string().max(500),
1461
- z__namespace.number(),
1462
- z__namespace.boolean()
1463
- ])),
1464
- variants: z__namespace.array(z__namespace.object({
1465
- id: z__namespace.string(),
1466
- object: z__namespace.literal("post_variant"),
1467
- connection_id: z__namespace.string().nullable(),
1468
- platform: z__namespace.enum([
1469
- "x",
1470
- "linkedin",
1471
- "facebook_page",
1472
- "instagram",
1473
- "tiktok"
1474
- ]),
1475
- post_type: z__namespace.enum([
1476
- "text",
1477
- "single_image",
1478
- "multi_image",
1479
- "video",
1480
- "reel",
1481
- "carousel"
1482
- ]),
1483
- body: z__namespace.string().nullable(),
1484
- status: z__namespace.enum([
1485
- "draft",
1486
- "scheduled",
1487
- "publishing",
1488
- "published",
1489
- "failed"
1490
- ]),
1491
- settings: z__namespace.record(z__namespace.string(), z__namespace.unknown()),
1492
- schedule_at: z__namespace.string().nullable(),
1493
- result: z__namespace.object({
1494
- platform_post_id: z__namespace.string(),
1495
- permalink: z__namespace.string().nullable(),
1496
- published_at: z__namespace.string()
1497
- }).nullable(),
1498
- error: z__namespace.object({
1499
- code: z__namespace.string(),
1500
- message: z__namespace.string(),
1501
- display_error: z__namespace.string()
1502
- }).nullable(),
1503
- media: z__namespace.array(z__namespace.object({
1504
- media_id: z__namespace.string(),
1505
- position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1506
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1507
- alt_text_override: z__namespace.string().nullable()
1508
- }))
1509
- })),
1510
- created_at: z__namespace.string(),
1511
- updated_at: z__namespace.string(),
1512
- dry_run: z__namespace.boolean(),
1513
- executed: z__namespace.boolean()
1514
- });
1515
- var zPostsDeletePath = z__namespace.object({
1516
- id: z__namespace.string()
1517
- });
1518
- var zPostsDeleteResponse = z__namespace.object({
1519
- id: z__namespace.string(),
1520
- object: z__namespace.literal("post"),
1521
- deleted: z__namespace.literal(true)
2536
+ ])).min(1).optional()
1522
2537
  });
1523
- var zPostsGetPath = z__namespace.object({
2538
+ var zPostsUpdatePath = z__namespace.object({
1524
2539
  id: z__namespace.string()
1525
2540
  });
1526
- var zPostsGetResponse = z__namespace.object({
2541
+ var zPostsUpdateResponse = z__namespace.object({
1527
2542
  id: z__namespace.string(),
1528
2543
  object: z__namespace.literal("post"),
1529
2544
  profile_id: z__namespace.string(),
@@ -1544,71 +2559,6 @@ var zPostsGetResponse = z__namespace.object({
1544
2559
  z__namespace.number(),
1545
2560
  z__namespace.boolean()
1546
2561
  ])),
1547
- variants: z__namespace.array(z__namespace.object({
1548
- id: z__namespace.string(),
1549
- object: z__namespace.literal("post_variant"),
1550
- connection_id: z__namespace.string().nullable(),
1551
- platform: z__namespace.enum([
1552
- "x",
1553
- "linkedin",
1554
- "facebook_page",
1555
- "instagram",
1556
- "tiktok"
1557
- ]),
1558
- post_type: z__namespace.enum([
1559
- "text",
1560
- "single_image",
1561
- "multi_image",
1562
- "video",
1563
- "reel",
1564
- "carousel"
1565
- ]),
1566
- body: z__namespace.string().nullable(),
1567
- status: z__namespace.enum([
1568
- "draft",
1569
- "scheduled",
1570
- "publishing",
1571
- "published",
1572
- "failed"
1573
- ]),
1574
- settings: z__namespace.record(z__namespace.string(), z__namespace.unknown()),
1575
- schedule_at: z__namespace.string().nullable(),
1576
- result: z__namespace.object({
1577
- platform_post_id: z__namespace.string(),
1578
- permalink: z__namespace.string().nullable(),
1579
- published_at: z__namespace.string()
1580
- }).nullable(),
1581
- error: z__namespace.object({
1582
- code: z__namespace.string(),
1583
- message: z__namespace.string(),
1584
- display_error: z__namespace.string()
1585
- }).nullable(),
1586
- media: z__namespace.array(z__namespace.object({
1587
- media_id: z__namespace.string(),
1588
- position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1589
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1590
- alt_text_override: z__namespace.string().nullable()
1591
- }))
1592
- })),
1593
- created_at: z__namespace.string(),
1594
- updated_at: z__namespace.string()
1595
- });
1596
- var zPostsUpdateBody = z__namespace.object({
1597
- publish: z__namespace.enum([
1598
- "now",
1599
- "schedule",
1600
- "draft"
1601
- ]).optional(),
1602
- schedule_at: z__namespace.iso.datetime().nullish(),
1603
- external_id: z__namespace.string().min(1).max(255).nullish(),
1604
- metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1605
- z__namespace.string().max(500),
1606
- z__namespace.number(),
1607
- z__namespace.boolean()
1608
- ])).optional(),
1609
- tags: z__namespace.array(z__namespace.string()).optional(),
1610
- notes: z__namespace.string().nullish(),
1611
- dry_run: z__namespace.boolean().optional().default(false),
1612
2562
  variants: z__namespace.array(z__namespace.union([
1613
2563
  z__namespace.object({
1614
2564
  platform: z__namespace.literal("x"),
@@ -1618,13 +2568,6 @@ var zPostsUpdateBody = z__namespace.object({
1618
2568
  "multi_image",
1619
2569
  "video"
1620
2570
  ]),
1621
- connection_id: z__namespace.string(),
1622
- body: z__namespace.string().optional(),
1623
- media: z__namespace.array(z__namespace.object({
1624
- media_id: z__namespace.string(),
1625
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1626
- alt_text_override: z__namespace.string().nullish()
1627
- })).optional().default([]),
1628
2571
  settings: z__namespace.object({
1629
2572
  reply_settings: z__namespace.enum([
1630
2573
  "everyone",
@@ -1656,7 +2599,35 @@ var zPostsUpdateBody = z__namespace.object({
1656
2599
  }).optional(),
1657
2600
  card_uri: z__namespace.string().optional(),
1658
2601
  media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1659
- }).optional().default({})
2602
+ }),
2603
+ id: z__namespace.string(),
2604
+ object: z__namespace.literal("post_variant"),
2605
+ connection_id: z__namespace.string().nullable(),
2606
+ body: z__namespace.string().nullable(),
2607
+ status: z__namespace.enum([
2608
+ "draft",
2609
+ "scheduled",
2610
+ "publishing",
2611
+ "published",
2612
+ "failed"
2613
+ ]),
2614
+ schedule_at: z__namespace.string().nullable(),
2615
+ result: z__namespace.object({
2616
+ platform_post_id: z__namespace.string(),
2617
+ permalink: z__namespace.string().nullable(),
2618
+ published_at: z__namespace.string()
2619
+ }).nullable(),
2620
+ error: z__namespace.object({
2621
+ code: z__namespace.string(),
2622
+ message: z__namespace.string(),
2623
+ display_error: z__namespace.string()
2624
+ }).nullable(),
2625
+ media: z__namespace.array(z__namespace.object({
2626
+ media_id: z__namespace.string(),
2627
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2628
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2629
+ alt_text_override: z__namespace.string().nullable()
2630
+ }))
1660
2631
  }),
1661
2632
  z__namespace.object({
1662
2633
  platform: z__namespace.literal("linkedin"),
@@ -1664,15 +2635,8 @@ var zPostsUpdateBody = z__namespace.object({
1664
2635
  "text",
1665
2636
  "single_image",
1666
2637
  "multi_image",
1667
- "video"
1668
- ]),
1669
- connection_id: z__namespace.string(),
1670
- body: z__namespace.string().optional(),
1671
- media: z__namespace.array(z__namespace.object({
1672
- media_id: z__namespace.string(),
1673
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1674
- alt_text_override: z__namespace.string().nullish()
1675
- })).optional().default([]),
2638
+ "video"
2639
+ ]),
1676
2640
  settings: z__namespace.object({
1677
2641
  visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1678
2642
  content_kind: z__namespace.enum([
@@ -1709,22 +2673,83 @@ var zPostsUpdateBody = z__namespace.object({
1709
2673
  name: z__namespace.string().min(1),
1710
2674
  urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1711
2675
  })).optional()
1712
- })
2676
+ }),
2677
+ id: z__namespace.string(),
2678
+ object: z__namespace.literal("post_variant"),
2679
+ connection_id: z__namespace.string().nullable(),
2680
+ body: z__namespace.string().nullable(),
2681
+ status: z__namespace.enum([
2682
+ "draft",
2683
+ "scheduled",
2684
+ "publishing",
2685
+ "published",
2686
+ "failed"
2687
+ ]),
2688
+ schedule_at: z__namespace.string().nullable(),
2689
+ result: z__namespace.object({
2690
+ platform_post_id: z__namespace.string(),
2691
+ permalink: z__namespace.string().nullable(),
2692
+ published_at: z__namespace.string()
2693
+ }).nullable(),
2694
+ error: z__namespace.object({
2695
+ code: z__namespace.string(),
2696
+ message: z__namespace.string(),
2697
+ display_error: z__namespace.string()
2698
+ }).nullable(),
2699
+ media: z__namespace.array(z__namespace.object({
2700
+ media_id: z__namespace.string(),
2701
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2702
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2703
+ alt_text_override: z__namespace.string().nullable()
2704
+ }))
1713
2705
  }),
1714
2706
  z__namespace.object({
1715
- platform: z__namespace.literal("instagram"),
2707
+ platform: z__namespace.literal("facebook_page"),
1716
2708
  post_type: z__namespace.enum([
2709
+ "text",
1717
2710
  "single_image",
1718
- "carousel",
2711
+ "multi_image",
1719
2712
  "reel"
1720
2713
  ]),
1721
- connection_id: z__namespace.string(),
1722
- body: z__namespace.string().optional(),
2714
+ settings: z__namespace.object({
2715
+ link: z__namespace.url().optional()
2716
+ }),
2717
+ id: z__namespace.string(),
2718
+ object: z__namespace.literal("post_variant"),
2719
+ connection_id: z__namespace.string().nullable(),
2720
+ body: z__namespace.string().nullable(),
2721
+ status: z__namespace.enum([
2722
+ "draft",
2723
+ "scheduled",
2724
+ "publishing",
2725
+ "published",
2726
+ "failed"
2727
+ ]),
2728
+ schedule_at: z__namespace.string().nullable(),
2729
+ result: z__namespace.object({
2730
+ platform_post_id: z__namespace.string(),
2731
+ permalink: z__namespace.string().nullable(),
2732
+ published_at: z__namespace.string()
2733
+ }).nullable(),
2734
+ error: z__namespace.object({
2735
+ code: z__namespace.string(),
2736
+ message: z__namespace.string(),
2737
+ display_error: z__namespace.string()
2738
+ }).nullable(),
1723
2739
  media: z__namespace.array(z__namespace.object({
1724
2740
  media_id: z__namespace.string(),
1725
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1726
- alt_text_override: z__namespace.string().nullish()
1727
- })).optional().default([]),
2741
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2742
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2743
+ alt_text_override: z__namespace.string().nullable()
2744
+ }))
2745
+ }),
2746
+ z__namespace.object({
2747
+ platform: z__namespace.literal("instagram"),
2748
+ post_type: z__namespace.enum([
2749
+ "single_image",
2750
+ "carousel",
2751
+ "reel"
2752
+ ]),
1728
2753
  settings: z__namespace.object({
1729
2754
  media_type: z__namespace.enum([
1730
2755
  "IMAGE",
@@ -1742,26 +2767,35 @@ var zPostsUpdateBody = z__namespace.object({
1742
2767
  thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1743
2768
  cover_url: z__namespace.url().optional(),
1744
2769
  audio_name: z__namespace.string().optional()
1745
- })
1746
- }),
1747
- z__namespace.object({
1748
- platform: z__namespace.literal("facebook_page"),
1749
- post_type: z__namespace.enum([
1750
- "text",
1751
- "single_image",
1752
- "multi_image",
1753
- "reel"
2770
+ }),
2771
+ id: z__namespace.string(),
2772
+ object: z__namespace.literal("post_variant"),
2773
+ connection_id: z__namespace.string().nullable(),
2774
+ body: z__namespace.string().nullable(),
2775
+ status: z__namespace.enum([
2776
+ "draft",
2777
+ "scheduled",
2778
+ "publishing",
2779
+ "published",
2780
+ "failed"
1754
2781
  ]),
1755
- connection_id: z__namespace.string(),
1756
- body: z__namespace.string().optional(),
2782
+ schedule_at: z__namespace.string().nullable(),
2783
+ result: z__namespace.object({
2784
+ platform_post_id: z__namespace.string(),
2785
+ permalink: z__namespace.string().nullable(),
2786
+ published_at: z__namespace.string()
2787
+ }).nullable(),
2788
+ error: z__namespace.object({
2789
+ code: z__namespace.string(),
2790
+ message: z__namespace.string(),
2791
+ display_error: z__namespace.string()
2792
+ }).nullable(),
1757
2793
  media: z__namespace.array(z__namespace.object({
1758
2794
  media_id: z__namespace.string(),
1759
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1760
- alt_text_override: z__namespace.string().nullish()
1761
- })).optional().default([]),
1762
- settings: z__namespace.object({
1763
- link: z__namespace.url().optional()
1764
- }).optional().default({})
2795
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2796
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2797
+ alt_text_override: z__namespace.string().nullable()
2798
+ }))
1765
2799
  }),
1766
2800
  z__namespace.object({
1767
2801
  platform: z__namespace.literal("tiktok"),
@@ -1770,13 +2804,6 @@ var zPostsUpdateBody = z__namespace.object({
1770
2804
  "single_image",
1771
2805
  "carousel"
1772
2806
  ]),
1773
- connection_id: z__namespace.string(),
1774
- body: z__namespace.string().optional(),
1775
- media: z__namespace.array(z__namespace.object({
1776
- media_id: z__namespace.string(),
1777
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1778
- alt_text_override: z__namespace.string().nullish()
1779
- })).optional().default([]),
1780
2807
  settings: z__namespace.object({
1781
2808
  privacy_level: z__namespace.enum([
1782
2809
  "PUBLIC_TO_EVERYONE",
@@ -1793,80 +2820,37 @@ var zPostsUpdateBody = z__namespace.object({
1793
2820
  brand_content_toggle: z__namespace.boolean().optional(),
1794
2821
  brand_organic_toggle: z__namespace.boolean().optional(),
1795
2822
  is_aigc: z__namespace.boolean().optional()
1796
- }).optional().default({})
2823
+ }),
2824
+ id: z__namespace.string(),
2825
+ object: z__namespace.literal("post_variant"),
2826
+ connection_id: z__namespace.string().nullable(),
2827
+ body: z__namespace.string().nullable(),
2828
+ status: z__namespace.enum([
2829
+ "draft",
2830
+ "scheduled",
2831
+ "publishing",
2832
+ "published",
2833
+ "failed"
2834
+ ]),
2835
+ schedule_at: z__namespace.string().nullable(),
2836
+ result: z__namespace.object({
2837
+ platform_post_id: z__namespace.string(),
2838
+ permalink: z__namespace.string().nullable(),
2839
+ published_at: z__namespace.string()
2840
+ }).nullable(),
2841
+ error: z__namespace.object({
2842
+ code: z__namespace.string(),
2843
+ message: z__namespace.string(),
2844
+ display_error: z__namespace.string()
2845
+ }).nullable(),
2846
+ media: z__namespace.array(z__namespace.object({
2847
+ media_id: z__namespace.string(),
2848
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2849
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
2850
+ alt_text_override: z__namespace.string().nullable()
2851
+ }))
1797
2852
  })
1798
- ])).min(1).optional()
1799
- });
1800
- var zPostsUpdatePath = z__namespace.object({
1801
- id: z__namespace.string()
1802
- });
1803
- var zPostsUpdateResponse = z__namespace.object({
1804
- id: z__namespace.string(),
1805
- object: z__namespace.literal("post"),
1806
- profile_id: z__namespace.string(),
1807
- external_id: z__namespace.string().nullable(),
1808
- status: z__namespace.enum([
1809
- "draft",
1810
- "scheduled",
1811
- "publishing",
1812
- "partially_published",
1813
- "published",
1814
- "failed"
1815
- ]),
1816
- schedule_at: z__namespace.string().nullable(),
1817
- tags: z__namespace.array(z__namespace.string()),
1818
- notes: z__namespace.string().nullable(),
1819
- metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
1820
- z__namespace.string().max(500),
1821
- z__namespace.number(),
1822
- z__namespace.boolean()
1823
2853
  ])),
1824
- variants: z__namespace.array(z__namespace.object({
1825
- id: z__namespace.string(),
1826
- object: z__namespace.literal("post_variant"),
1827
- connection_id: z__namespace.string().nullable(),
1828
- platform: z__namespace.enum([
1829
- "x",
1830
- "linkedin",
1831
- "facebook_page",
1832
- "instagram",
1833
- "tiktok"
1834
- ]),
1835
- post_type: z__namespace.enum([
1836
- "text",
1837
- "single_image",
1838
- "multi_image",
1839
- "video",
1840
- "reel",
1841
- "carousel"
1842
- ]),
1843
- body: z__namespace.string().nullable(),
1844
- status: z__namespace.enum([
1845
- "draft",
1846
- "scheduled",
1847
- "publishing",
1848
- "published",
1849
- "failed"
1850
- ]),
1851
- settings: z__namespace.record(z__namespace.string(), z__namespace.unknown()),
1852
- schedule_at: z__namespace.string().nullable(),
1853
- result: z__namespace.object({
1854
- platform_post_id: z__namespace.string(),
1855
- permalink: z__namespace.string().nullable(),
1856
- published_at: z__namespace.string()
1857
- }).nullable(),
1858
- error: z__namespace.object({
1859
- code: z__namespace.string(),
1860
- message: z__namespace.string(),
1861
- display_error: z__namespace.string()
1862
- }).nullable(),
1863
- media: z__namespace.array(z__namespace.object({
1864
- media_id: z__namespace.string(),
1865
- position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
1866
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullable(),
1867
- alt_text_override: z__namespace.string().nullable()
1868
- }))
1869
- })),
1870
2854
  created_at: z__namespace.string(),
1871
2855
  updated_at: z__namespace.string(),
1872
2856
  dry_run: z__namespace.boolean(),
@@ -1883,13 +2867,6 @@ var zPostsValidateBody = z__namespace.object({
1883
2867
  "multi_image",
1884
2868
  "video"
1885
2869
  ]),
1886
- connection_id: z__namespace.string(),
1887
- body: z__namespace.string().optional(),
1888
- media: z__namespace.array(z__namespace.object({
1889
- media_id: z__namespace.string(),
1890
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1891
- alt_text_override: z__namespace.string().nullish()
1892
- })).optional().default([]),
1893
2870
  settings: z__namespace.object({
1894
2871
  reply_settings: z__namespace.enum([
1895
2872
  "everyone",
@@ -1921,7 +2898,14 @@ var zPostsValidateBody = z__namespace.object({
1921
2898
  }).optional(),
1922
2899
  card_uri: z__namespace.string().optional(),
1923
2900
  media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1924
- }).optional().default({})
2901
+ }).optional().default({}),
2902
+ connection_id: z__namespace.string(),
2903
+ body: z__namespace.string().optional(),
2904
+ media: z__namespace.array(z__namespace.object({
2905
+ media_id: z__namespace.string(),
2906
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2907
+ alt_text_override: z__namespace.string().nullish()
2908
+ })).optional().default([])
1925
2909
  }),
1926
2910
  z__namespace.object({
1927
2911
  platform: z__namespace.literal("linkedin"),
@@ -1931,13 +2915,6 @@ var zPostsValidateBody = z__namespace.object({
1931
2915
  "multi_image",
1932
2916
  "video"
1933
2917
  ]),
1934
- connection_id: z__namespace.string(),
1935
- body: z__namespace.string().optional(),
1936
- media: z__namespace.array(z__namespace.object({
1937
- media_id: z__namespace.string(),
1938
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1939
- alt_text_override: z__namespace.string().nullish()
1940
- })).optional().default([]),
1941
2918
  settings: z__namespace.object({
1942
2919
  visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
1943
2920
  content_kind: z__namespace.enum([
@@ -1974,7 +2951,14 @@ var zPostsValidateBody = z__namespace.object({
1974
2951
  name: z__namespace.string().min(1),
1975
2952
  urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
1976
2953
  })).optional()
1977
- })
2954
+ }),
2955
+ connection_id: z__namespace.string(),
2956
+ body: z__namespace.string().optional(),
2957
+ media: z__namespace.array(z__namespace.object({
2958
+ media_id: z__namespace.string(),
2959
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2960
+ alt_text_override: z__namespace.string().nullish()
2961
+ })).optional().default([])
1978
2962
  }),
1979
2963
  z__namespace.object({
1980
2964
  platform: z__namespace.literal("instagram"),
@@ -1983,13 +2967,6 @@ var zPostsValidateBody = z__namespace.object({
1983
2967
  "carousel",
1984
2968
  "reel"
1985
2969
  ]),
1986
- connection_id: z__namespace.string(),
1987
- body: z__namespace.string().optional(),
1988
- media: z__namespace.array(z__namespace.object({
1989
- media_id: z__namespace.string(),
1990
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1991
- alt_text_override: z__namespace.string().nullish()
1992
- })).optional().default([]),
1993
2970
  settings: z__namespace.object({
1994
2971
  media_type: z__namespace.enum([
1995
2972
  "IMAGE",
@@ -2007,7 +2984,14 @@ var zPostsValidateBody = z__namespace.object({
2007
2984
  thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2008
2985
  cover_url: z__namespace.url().optional(),
2009
2986
  audio_name: z__namespace.string().optional()
2010
- })
2987
+ }),
2988
+ connection_id: z__namespace.string(),
2989
+ body: z__namespace.string().optional(),
2990
+ media: z__namespace.array(z__namespace.object({
2991
+ media_id: z__namespace.string(),
2992
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2993
+ alt_text_override: z__namespace.string().nullish()
2994
+ })).optional().default([])
2011
2995
  }),
2012
2996
  z__namespace.object({
2013
2997
  platform: z__namespace.literal("facebook_page"),
@@ -2017,16 +3001,16 @@ var zPostsValidateBody = z__namespace.object({
2017
3001
  "multi_image",
2018
3002
  "reel"
2019
3003
  ]),
3004
+ settings: z__namespace.object({
3005
+ link: z__namespace.url().optional()
3006
+ }).optional().default({}),
2020
3007
  connection_id: z__namespace.string(),
2021
3008
  body: z__namespace.string().optional(),
2022
3009
  media: z__namespace.array(z__namespace.object({
2023
3010
  media_id: z__namespace.string(),
2024
3011
  crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2025
3012
  alt_text_override: z__namespace.string().nullish()
2026
- })).optional().default([]),
2027
- settings: z__namespace.object({
2028
- link: z__namespace.url().optional()
2029
- }).optional().default({})
3013
+ })).optional().default([])
2030
3014
  }),
2031
3015
  z__namespace.object({
2032
3016
  platform: z__namespace.literal("tiktok"),
@@ -2035,13 +3019,6 @@ var zPostsValidateBody = z__namespace.object({
2035
3019
  "single_image",
2036
3020
  "carousel"
2037
3021
  ]),
2038
- connection_id: z__namespace.string(),
2039
- body: z__namespace.string().optional(),
2040
- media: z__namespace.array(z__namespace.object({
2041
- media_id: z__namespace.string(),
2042
- crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2043
- alt_text_override: z__namespace.string().nullish()
2044
- })).optional().default([]),
2045
3022
  settings: z__namespace.object({
2046
3023
  privacy_level: z__namespace.enum([
2047
3024
  "PUBLIC_TO_EVERYONE",
@@ -2058,7 +3035,14 @@ var zPostsValidateBody = z__namespace.object({
2058
3035
  brand_content_toggle: z__namespace.boolean().optional(),
2059
3036
  brand_organic_toggle: z__namespace.boolean().optional(),
2060
3037
  is_aigc: z__namespace.boolean().optional()
2061
- }).optional().default({})
3038
+ }).optional().default({}),
3039
+ connection_id: z__namespace.string(),
3040
+ body: z__namespace.string().optional(),
3041
+ media: z__namespace.array(z__namespace.object({
3042
+ media_id: z__namespace.string(),
3043
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
3044
+ alt_text_override: z__namespace.string().nullish()
3045
+ })).optional().default([])
2062
3046
  })
2063
3047
  ])).min(1)
2064
3048
  });