@lessly/sdk-app 44.1.0 → 46.0.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.
Files changed (46) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.d.cts +1 -1
  4. package/dist/brain/index.d.ts +1 -1
  5. package/dist/{client.gen-DlCqQAIZ.d.cts → client.gen-BFHxhTU7.d.cts} +3865 -860
  6. package/dist/{client.gen-DlCqQAIZ.d.ts → client.gen-BFHxhTU7.d.ts} +3865 -860
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/content/index.cjs +65 -0
  10. package/dist/content/index.cjs.map +1 -1
  11. package/dist/content/index.d.cts +54 -2
  12. package/dist/content/index.d.ts +54 -2
  13. package/dist/content/index.js +53 -1
  14. package/dist/content/index.js.map +1 -1
  15. package/dist/deployment/index.d.cts +1 -1
  16. package/dist/deployment/index.d.ts +1 -1
  17. package/dist/index.cjs +223 -0
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +223 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/mail/index.d.cts +2 -2
  24. package/dist/mail/index.d.ts +2 -2
  25. package/dist/observe/index.d.cts +1 -1
  26. package/dist/observe/index.d.ts +1 -1
  27. package/dist/organization/index.d.cts +1 -1
  28. package/dist/organization/index.d.ts +1 -1
  29. package/dist/playground/index.d.cts +1 -1
  30. package/dist/playground/index.d.ts +1 -1
  31. package/dist/realtime/index.d.cts +1 -1
  32. package/dist/realtime/index.d.ts +1 -1
  33. package/dist/support/index.d.cts +1 -1
  34. package/dist/support/index.d.ts +1 -1
  35. package/dist/tracking/index.d.cts +1 -1
  36. package/dist/tracking/index.d.ts +1 -1
  37. package/dist/users/index.d.cts +1 -1
  38. package/dist/users/index.d.ts +1 -1
  39. package/dist/waitlist/index.d.cts +1 -1
  40. package/dist/waitlist/index.d.ts +1 -1
  41. package/package.json +2 -2
  42. package/src/gen/bindings.gen.ts +223 -0
  43. package/src/gen/client.gen.ts +51 -0
  44. package/src/gen/content/index.ts +1 -1
  45. package/src/gen/content/queryOptions.gen.ts +83 -0
  46. package/src/gen/types.gen.ts +3290 -514
@@ -1409,14 +1409,22 @@ deny_all_pct: number
1409
1409
  accept_all_pct: number
1410
1410
  }
1411
1411
 
1412
- export interface ContentChannelsGetInput {
1412
+ export interface ContentChannelsBindInput {
1413
1413
  /**
1414
1414
  * The channel id returned by content_channels_list.
1415
1415
  */
1416
1416
  id: string
1417
+ /**
1418
+ * The platform connector to publish through — the id of a connector attached to this product, from the workspace connectors list. Networks with no publishing connector (instagram, LinkedIn company pages) are rejected.
1419
+ */
1420
+ connectorId: string
1421
+ /**
1422
+ * Pass auto to make this API publish through the connector. Omit to keep the current mode: binding alone never switches a channel to automatic publishing.
1423
+ */
1424
+ deliveryMode?: ("auto" | "reminder")
1417
1425
  }
1418
1426
 
1419
- export interface ContentChannelsGetOutput {
1427
+ export interface ContentChannelsBindOutput {
1420
1428
  /**
1421
1429
  * Channel id — pass this to content_publications_schedule.
1422
1430
  */
@@ -1425,6 +1433,10 @@ id: string
1425
1433
  * Social network: linkedin, x, youtube, instagram or reddit.
1426
1434
  */
1427
1435
  network: string
1436
+ /**
1437
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1438
+ */
1439
+ pausedAt: (string | null)
1428
1440
  /**
1429
1441
  * ISO-8601 creation time.
1430
1442
  */
@@ -1433,10 +1445,18 @@ createdAt: string
1433
1445
  * ISO-8601 time of the last change.
1434
1446
  */
1435
1447
  updatedAt: string
1448
+ /**
1449
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1450
+ */
1451
+ connectorId: (string | null)
1436
1452
  /**
1437
1453
  * Human label for the channel.
1438
1454
  */
1439
1455
  displayName: string
1456
+ /**
1457
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1458
+ */
1459
+ pauseReason: (string | null)
1440
1460
  /**
1441
1461
  * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1442
1462
  */
@@ -1448,9 +1468,61 @@ capabilities: {
1448
1468
  [k: string]: unknown
1449
1469
  }
1450
1470
  /**
1451
- * Platform connector connection backing this channel, or null for a reminder channel that needs none. This toolkit never holds social credentials.
1471
+ * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1472
+ */
1473
+ deliveryMode: ("auto" | "reminder")
1474
+ }
1475
+
1476
+ export interface ContentChannelsGetInput {
1477
+ /**
1478
+ * The channel id returned by content_channels_list.
1479
+ */
1480
+ id: string
1481
+ }
1482
+
1483
+ export interface ContentChannelsGetOutput {
1484
+ /**
1485
+ * Channel id — pass this to content_publications_schedule.
1486
+ */
1487
+ id: string
1488
+ /**
1489
+ * Social network: linkedin, x, youtube, instagram or reddit.
1490
+ */
1491
+ network: string
1492
+ /**
1493
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1494
+ */
1495
+ pausedAt: (string | null)
1496
+ /**
1497
+ * ISO-8601 creation time.
1498
+ */
1499
+ createdAt: string
1500
+ /**
1501
+ * ISO-8601 time of the last change.
1502
+ */
1503
+ updatedAt: string
1504
+ /**
1505
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1506
+ */
1507
+ connectorId: (string | null)
1508
+ /**
1509
+ * Human label for the channel.
1510
+ */
1511
+ displayName: string
1512
+ /**
1513
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1514
+ */
1515
+ pauseReason: (string | null)
1516
+ /**
1517
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1518
+ */
1519
+ subjectType: ("member" | "organization")
1520
+ /**
1521
+ * What the channel accepts and what it costs: maxTextLength, maxMedia, supportsVideo, supportsLink, costPerPostUsd, costPerLinkPostUsd, dailyPostCeiling, ceilingIsRuntimeData. Read maxTextLength before writing a per-channel text variant.
1452
1522
  */
1453
- connectionId: (string | null)
1523
+ capabilities: {
1524
+ [k: string]: unknown
1525
+ }
1454
1526
  /**
1455
1527
  * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1456
1528
  */
@@ -1489,6 +1561,10 @@ id: string
1489
1561
  * Social network: linkedin, x, youtube, instagram or reddit.
1490
1562
  */
1491
1563
  network: string
1564
+ /**
1565
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1566
+ */
1567
+ pausedAt: (string | null)
1492
1568
  /**
1493
1569
  * ISO-8601 creation time.
1494
1570
  */
@@ -1497,10 +1573,18 @@ createdAt: string
1497
1573
  * ISO-8601 time of the last change.
1498
1574
  */
1499
1575
  updatedAt: string
1576
+ /**
1577
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1578
+ */
1579
+ connectorId: (string | null)
1500
1580
  /**
1501
1581
  * Human label for the channel.
1502
1582
  */
1503
1583
  displayName: string
1584
+ /**
1585
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1586
+ */
1587
+ pauseReason: (string | null)
1504
1588
  /**
1505
1589
  * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1506
1590
  */
@@ -1511,10 +1595,6 @@ subjectType: ("member" | "organization")
1511
1595
  capabilities: {
1512
1596
  [k: string]: unknown
1513
1597
  }
1514
- /**
1515
- * Platform connector connection backing this channel, or null for a reminder channel that needs none. This toolkit never holds social credentials.
1516
- */
1517
- connectionId: (string | null)
1518
1598
  /**
1519
1599
  * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1520
1600
  */
@@ -1522,28 +1602,14 @@ deliveryMode: ("auto" | "reminder")
1522
1602
  }[]
1523
1603
  }
1524
1604
 
1525
- export interface ContentChannelsUpdateInput {
1605
+ export interface ContentChannelsResumeInput {
1526
1606
  /**
1527
- * The channel id returned by content_channels_list.
1607
+ * The paused channel to resume, once its connector has been reconnected.
1528
1608
  */
1529
1609
  id: string
1530
- /**
1531
- * New human label for the channel. Omit to keep the current one.
1532
- */
1533
- displayName?: string
1534
- /**
1535
- * Override individual capability fields — a known ceiling beats the hand-filled constant. Merges over the existing descriptor; fields you omit keep their current values.
1536
- */
1537
- capabilities?: {
1538
- [k: string]: unknown
1539
- }
1540
- /**
1541
- * Change how the post reaches the network. Only reminder can be scheduled in this release — no publishing adapter exists yet.
1542
- */
1543
- deliveryMode?: ("auto" | "reminder")
1544
1610
  }
1545
1611
 
1546
- export interface ContentChannelsUpdateOutput {
1612
+ export interface ContentChannelsResumeOutput {
1547
1613
  /**
1548
1614
  * Channel id — pass this to content_publications_schedule.
1549
1615
  */
@@ -1552,6 +1618,10 @@ id: string
1552
1618
  * Social network: linkedin, x, youtube, instagram or reddit.
1553
1619
  */
1554
1620
  network: string
1621
+ /**
1622
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1623
+ */
1624
+ pausedAt: (string | null)
1555
1625
  /**
1556
1626
  * ISO-8601 creation time.
1557
1627
  */
@@ -1560,10 +1630,18 @@ createdAt: string
1560
1630
  * ISO-8601 time of the last change.
1561
1631
  */
1562
1632
  updatedAt: string
1633
+ /**
1634
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1635
+ */
1636
+ connectorId: (string | null)
1563
1637
  /**
1564
1638
  * Human label for the channel.
1565
1639
  */
1566
1640
  displayName: string
1641
+ /**
1642
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1643
+ */
1644
+ pauseReason: (string | null)
1567
1645
  /**
1568
1646
  * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1569
1647
  */
@@ -1574,44 +1652,32 @@ subjectType: ("member" | "organization")
1574
1652
  capabilities: {
1575
1653
  [k: string]: unknown
1576
1654
  }
1577
- /**
1578
- * Platform connector connection backing this channel, or null for a reminder channel that needs none. This toolkit never holds social credentials.
1579
- */
1580
- connectionId: (string | null)
1581
1655
  /**
1582
1656
  * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1583
1657
  */
1584
1658
  deliveryMode: ("auto" | "reminder")
1585
1659
  }
1586
1660
 
1587
- export interface ContentPostsApproveInput {
1661
+ export interface ContentChannelsUnbindInput {
1588
1662
  /**
1589
- * The post id returned by content_posts_create.
1663
+ * The channel id returned by content_channels_list.
1590
1664
  */
1591
1665
  id: string
1592
1666
  }
1593
1667
 
1594
- export interface ContentPostsApproveOutput {
1668
+ export interface ContentChannelsUnbindOutput {
1595
1669
  /**
1596
- * Post id.
1670
+ * Channel id — pass this to content_publications_schedule.
1597
1671
  */
1598
1672
  id: string
1599
1673
  /**
1600
- * The current text of the post.
1601
- */
1602
- text: string
1603
- /**
1604
- * Media references attached to the current version.
1605
- */
1606
- media: string[]
1607
- /**
1608
- * Identity id of whoever composed the post.
1674
+ * Social network: linkedin, x, youtube, instagram or reddit.
1609
1675
  */
1610
- author: string
1676
+ network: string
1611
1677
  /**
1612
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1678
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1613
1679
  */
1614
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1680
+ pausedAt: (string | null)
1615
1681
  /**
1616
1682
  * ISO-8601 creation time.
1617
1683
  */
@@ -1621,49 +1687,67 @@ createdAt: string
1621
1687
  */
1622
1688
  updatedAt: string
1623
1689
  /**
1624
- * Version number of the current text.
1690
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1625
1691
  */
1626
- currentVersion: number
1692
+ connectorId: (string | null)
1627
1693
  /**
1628
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1694
+ * Human label for the channel.
1629
1695
  */
1630
- approvedVersion: (number | null)
1631
- }
1632
-
1633
- export interface ContentPostsCreateInput {
1696
+ displayName: string
1634
1697
  /**
1635
- * The post text, channel-independent. Per-channel variants come later, at publish time.
1698
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1636
1699
  */
1637
- text: string
1700
+ pauseReason: (string | null)
1638
1701
  /**
1639
- * Media references attached to the post, in display order. Opaque strings the toolkit does not upload or resolve them.
1640
- *
1641
- * @maxItems 20
1702
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1642
1703
  */
1643
- media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
1704
+ subjectType: ("member" | "organization")
1705
+ /**
1706
+ * What the channel accepts and what it costs: maxTextLength, maxMedia, supportsVideo, supportsLink, costPerPostUsd, costPerLinkPostUsd, dailyPostCeiling, ceilingIsRuntimeData. Read maxTextLength before writing a per-channel text variant.
1707
+ */
1708
+ capabilities: {
1709
+ [k: string]: unknown
1710
+ }
1711
+ /**
1712
+ * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1713
+ */
1714
+ deliveryMode: ("auto" | "reminder")
1644
1715
  }
1645
1716
 
1646
- export interface ContentPostsCreateOutput {
1717
+ export interface ContentChannelsUpdateInput {
1647
1718
  /**
1648
- * Post id.
1719
+ * The channel id returned by content_channels_list.
1649
1720
  */
1650
1721
  id: string
1651
1722
  /**
1652
- * The current text of the post.
1723
+ * New human label for the channel. Omit to keep the current one.
1653
1724
  */
1654
- text: string
1725
+ displayName?: string
1655
1726
  /**
1656
- * Media references attached to the current version.
1727
+ * Override individual capability fields — a known ceiling beats the hand-filled constant. Merges over the existing descriptor; fields you omit keep their current values.
1657
1728
  */
1658
- media: string[]
1729
+ capabilities?: {
1730
+ [k: string]: unknown
1731
+ }
1659
1732
  /**
1660
- * Identity id of whoever composed the post.
1733
+ * Change how the post reaches the network. Only reminder can be scheduled in this release — no publishing adapter exists yet.
1661
1734
  */
1662
- author: string
1735
+ deliveryMode?: ("auto" | "reminder")
1736
+ }
1737
+
1738
+ export interface ContentChannelsUpdateOutput {
1663
1739
  /**
1664
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1740
+ * Channel id pass this to content_publications_schedule.
1665
1741
  */
1666
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1742
+ id: string
1743
+ /**
1744
+ * Social network: linkedin, x, youtube, instagram or reddit.
1745
+ */
1746
+ network: string
1747
+ /**
1748
+ * ISO-8601 time the connector stopped working, or null when healthy. A paused channel keeps its scheduled publications — they are frozen, not cancelled, and dispatch once it resumes.
1749
+ */
1750
+ pausedAt: (string | null)
1667
1751
  /**
1668
1752
  * ISO-8601 creation time.
1669
1753
  */
@@ -1673,924 +1757,3606 @@ createdAt: string
1673
1757
  */
1674
1758
  updatedAt: string
1675
1759
  /**
1676
- * Version number of the current text.
1760
+ * Platform connector this channel publishes through, or null for a reminder channel that needs none. An id — this toolkit never holds social credentials; a token is fetched per call and discarded.
1677
1761
  */
1678
- currentVersion: number
1762
+ connectorId: (string | null)
1679
1763
  /**
1680
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1764
+ * Human label for the channel.
1681
1765
  */
1682
- approvedVersion: (number | null)
1766
+ displayName: string
1767
+ /**
1768
+ * Why it paused: revoked (access was taken away), expired (the credential ran out), or the provider reason code from a failed publish. Null when healthy.
1769
+ */
1770
+ pauseReason: (string | null)
1771
+ /**
1772
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1773
+ */
1774
+ subjectType: ("member" | "organization")
1775
+ /**
1776
+ * What the channel accepts and what it costs: maxTextLength, maxMedia, supportsVideo, supportsLink, costPerPostUsd, costPerLinkPostUsd, dailyPostCeiling, ceilingIsRuntimeData. Read maxTextLength before writing a per-channel text variant.
1777
+ */
1778
+ capabilities: {
1779
+ [k: string]: unknown
1780
+ }
1781
+ /**
1782
+ * How the post reaches the network: auto (this API publishes it) or reminder (the system prepares it and notifies a person, who publishes by hand). Every seeded channel is reminder.
1783
+ */
1784
+ deliveryMode: ("auto" | "reminder")
1683
1785
  }
1684
1786
 
1685
- export interface ContentPostsGetInput {
1787
+ export interface ContentMediaCreateUploadUrlInput {
1686
1788
  /**
1687
- * The post id returned by content_posts_create.
1789
+ * Name to store the file under, for display purposes.
1688
1790
  */
1689
- id: string
1791
+ filename?: string
1792
+ /**
1793
+ * The media type the app will PUT, e.g. video/mp4. Must be image/* or video/*.
1794
+ */
1795
+ contentType: string
1690
1796
  }
1691
1797
 
1692
- export interface ContentPostsGetOutput {
1798
+ export interface ContentMediaCreateUploadUrlOutput {
1693
1799
  /**
1694
- * Post id.
1800
+ * The pending asset row. It turns ready on finalize.
1801
+ */
1802
+ asset: {
1803
+ /**
1804
+ * Media asset id. Use it to attach the asset to a post.
1695
1805
  */
1696
1806
  id: string
1697
1807
  /**
1698
- * The current text of the post.
1808
+ * Object key in the product bucket. Private — hand it to no one, it is not a URL.
1699
1809
  */
1700
- text: string
1810
+ key: string
1701
1811
  /**
1702
- * Media references attached to the current version.
1812
+ * Stored media type, or null while still pending.
1703
1813
  */
1704
- media: string[]
1814
+ mime: (string | null)
1705
1815
  /**
1706
- * Identity id of whoever composed the post.
1816
+ * Why the asset is failed a readable reason, or null when nothing went wrong.
1707
1817
  */
1708
- author: string
1818
+ error: (string | null)
1709
1819
  /**
1710
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1820
+ * How the bytes arrived: url (fetched by the toolkit) or upload (PUT by the app).
1711
1821
  */
1712
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1822
+ source: ("url" | "upload")
1823
+ /**
1824
+ * Storage status: pending (the bytes are not in the bucket yet) -> ready (stored, attachable to a post) or failed (ingestion gave up; see error).
1825
+ */
1826
+ status: ("pending" | "ready" | "failed")
1827
+ /**
1828
+ * Original filename, kept for display only.
1829
+ */
1830
+ filename: (string | null)
1713
1831
  /**
1714
1832
  * ISO-8601 creation time.
1715
1833
  */
1716
1834
  createdAt: string
1717
1835
  /**
1718
- * ISO-8601 time of the last change.
1836
+ * Stored size in bytes, or null while pending.
1719
1837
  */
1720
- updatedAt: string
1838
+ sizeBytes: (number | null)
1721
1839
  /**
1722
- * Version number of the current text.
1840
+ * The URL the bytes were fetched from, if any.
1723
1841
  */
1724
- currentVersion: number
1842
+ sourceUrl: (string | null)
1725
1843
  /**
1726
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1844
+ * ISO-8601 time of the last change.
1727
1845
  */
1728
- approvedVersion: (number | null)
1846
+ updatedAt: string
1729
1847
  }
1730
-
1731
- export interface ContentPostsListInput {
1732
1848
  /**
1733
- * Maximum number of posts to return (1-100, default 50).
1849
+ * ISO-8601 time after which the upload URL stops working.
1734
1850
  */
1735
- limit?: number
1851
+ expiresAt: string
1736
1852
  /**
1737
- * How many posts to skip, for paging.
1853
+ * Time-limited signed PUT URL. Upload the bytes to it, then call the finalize tool.
1738
1854
  */
1739
- offset?: number
1855
+ uploadUrl: string
1740
1856
  /**
1741
- * Return only posts in this status.
1857
+ * The Content-Type header the PUT must send — the signature covers it.
1742
1858
  */
1743
- status?: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1859
+ contentType: string
1744
1860
  }
1745
1861
 
1746
- export interface ContentPostsListOutput {
1862
+ export interface ContentMediaFinalizeInput {
1747
1863
  /**
1748
- * The page of posts, newest first.
1864
+ * The media asset id returned when it was created.
1749
1865
  */
1750
- posts: {
1866
+ id: string
1867
+ }
1868
+
1869
+ export interface ContentMediaFinalizeOutput {
1751
1870
  /**
1752
- * Post id.
1871
+ * Media asset id. Use it to attach the asset to a post.
1753
1872
  */
1754
1873
  id: string
1755
1874
  /**
1756
- * The current text of the post.
1875
+ * Object key in the product bucket. Private — hand it to no one, it is not a URL.
1757
1876
  */
1758
- text: string
1877
+ key: string
1759
1878
  /**
1760
- * Media references attached to the current version.
1879
+ * Stored media type, or null while still pending.
1761
1880
  */
1762
- media: string[]
1881
+ mime: (string | null)
1763
1882
  /**
1764
- * Identity id of whoever composed the post.
1883
+ * Why the asset is failed a readable reason, or null when nothing went wrong.
1765
1884
  */
1766
- author: string
1885
+ error: (string | null)
1767
1886
  /**
1768
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1887
+ * How the bytes arrived: url (fetched by the toolkit) or upload (PUT by the app).
1769
1888
  */
1770
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1889
+ source: ("url" | "upload")
1771
1890
  /**
1772
- * ISO-8601 creation time.
1891
+ * Storage status: pending (the bytes are not in the bucket yet) -> ready (stored, attachable to a post) or failed (ingestion gave up; see error).
1773
1892
  */
1774
- createdAt: string
1893
+ status: ("pending" | "ready" | "failed")
1775
1894
  /**
1776
- * ISO-8601 time of the last change.
1895
+ * Original filename, kept for display only.
1777
1896
  */
1778
- updatedAt: string
1897
+ filename: (string | null)
1779
1898
  /**
1780
- * Version number of the current text.
1899
+ * ISO-8601 creation time.
1781
1900
  */
1782
- currentVersion: number
1901
+ createdAt: string
1783
1902
  /**
1784
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1903
+ * Stored size in bytes, or null while pending.
1785
1904
  */
1786
- approvedVersion: (number | null)
1787
- }[]
1905
+ sizeBytes: (number | null)
1788
1906
  /**
1789
- * Total number of matching posts, ignoring paging.
1907
+ * The URL the bytes were fetched from, if any.
1790
1908
  */
1791
- total: number
1909
+ sourceUrl: (string | null)
1910
+ /**
1911
+ * ISO-8601 time of the last change.
1912
+ */
1913
+ updatedAt: string
1792
1914
  }
1793
1915
 
1794
- export interface ContentPostsSubmitInput {
1916
+ export interface ContentMediaGetInput {
1795
1917
  /**
1796
- * The post id returned by content_posts_create.
1918
+ * The media asset id returned when it was created.
1797
1919
  */
1798
1920
  id: string
1799
1921
  }
1800
1922
 
1801
- export interface ContentPostsSubmitOutput {
1923
+ export interface ContentMediaGetOutput {
1802
1924
  /**
1803
- * Post id.
1925
+ * Media asset id. Use it to attach the asset to a post.
1804
1926
  */
1805
1927
  id: string
1806
1928
  /**
1807
- * The current text of the post.
1929
+ * Object key in the product bucket. Private — hand it to no one, it is not a URL.
1808
1930
  */
1809
- text: string
1931
+ key: string
1810
1932
  /**
1811
- * Media references attached to the current version.
1933
+ * Stored media type, or null while still pending.
1812
1934
  */
1813
- media: string[]
1935
+ mime: (string | null)
1814
1936
  /**
1815
- * Identity id of whoever composed the post.
1937
+ * Why the asset is failed a readable reason, or null when nothing went wrong.
1816
1938
  */
1817
- author: string
1939
+ error: (string | null)
1818
1940
  /**
1819
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1941
+ * How the bytes arrived: url (fetched by the toolkit) or upload (PUT by the app).
1820
1942
  */
1821
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1943
+ source: ("url" | "upload")
1944
+ /**
1945
+ * Storage status: pending (the bytes are not in the bucket yet) -> ready (stored, attachable to a post) or failed (ingestion gave up; see error).
1946
+ */
1947
+ status: ("pending" | "ready" | "failed")
1948
+ /**
1949
+ * Original filename, kept for display only.
1950
+ */
1951
+ filename: (string | null)
1822
1952
  /**
1823
1953
  * ISO-8601 creation time.
1824
1954
  */
1825
1955
  createdAt: string
1826
1956
  /**
1827
- * ISO-8601 time of the last change.
1957
+ * Stored size in bytes, or null while pending.
1828
1958
  */
1829
- updatedAt: string
1959
+ sizeBytes: (number | null)
1830
1960
  /**
1831
- * Version number of the current text.
1961
+ * The URL the bytes were fetched from, if any.
1832
1962
  */
1833
- currentVersion: number
1963
+ sourceUrl: (string | null)
1834
1964
  /**
1835
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1965
+ * ISO-8601 time of the last change.
1836
1966
  */
1837
- approvedVersion: (number | null)
1967
+ updatedAt: string
1838
1968
  }
1839
1969
 
1840
- export interface ContentPostsUpdateInput {
1970
+ export interface ContentMediaListInput {
1841
1971
  /**
1842
- * The post id returned by content_posts_create.
1972
+ * Maximum number of assets to return (1-100, default 50).
1843
1973
  */
1844
- id: string
1974
+ limit?: number
1845
1975
  /**
1846
- * Replacement text. Omit to keep the current text.
1976
+ * How many assets to skip, for paging.
1847
1977
  */
1848
- text?: string
1978
+ offset?: number
1849
1979
  /**
1850
- * Replacement media list (replaces, never merges). Omit to keep the current media.
1851
- *
1852
- * @maxItems 20
1980
+ * Return only assets in this storage status.
1853
1981
  */
1854
- media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
1982
+ status?: ("pending" | "ready" | "failed")
1855
1983
  }
1856
1984
 
1857
- export interface ContentPostsUpdateOutput {
1985
+ export interface ContentMediaListOutput {
1858
1986
  /**
1859
- * Post id.
1987
+ * Total number of matching assets, ignoring paging.
1988
+ */
1989
+ total: number
1990
+ /**
1991
+ * The page of assets, newest first.
1992
+ */
1993
+ assets: {
1994
+ /**
1995
+ * Media asset id. Use it to attach the asset to a post.
1860
1996
  */
1861
1997
  id: string
1862
1998
  /**
1863
- * The current text of the post.
1999
+ * Object key in the product bucket. Private — hand it to no one, it is not a URL.
1864
2000
  */
1865
- text: string
2001
+ key: string
1866
2002
  /**
1867
- * Media references attached to the current version.
2003
+ * Stored media type, or null while still pending.
1868
2004
  */
1869
- media: string[]
2005
+ mime: (string | null)
1870
2006
  /**
1871
- * Identity id of whoever composed the post.
2007
+ * Why the asset is failed a readable reason, or null when nothing went wrong.
1872
2008
  */
1873
- author: string
2009
+ error: (string | null)
1874
2010
  /**
1875
- * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2011
+ * How the bytes arrived: url (fetched by the toolkit) or upload (PUT by the app).
1876
2012
  */
1877
- status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2013
+ source: ("url" | "upload")
2014
+ /**
2015
+ * Storage status: pending (the bytes are not in the bucket yet) -> ready (stored, attachable to a post) or failed (ingestion gave up; see error).
2016
+ */
2017
+ status: ("pending" | "ready" | "failed")
2018
+ /**
2019
+ * Original filename, kept for display only.
2020
+ */
2021
+ filename: (string | null)
1878
2022
  /**
1879
2023
  * ISO-8601 creation time.
1880
2024
  */
1881
2025
  createdAt: string
2026
+ /**
2027
+ * Stored size in bytes, or null while pending.
2028
+ */
2029
+ sizeBytes: (number | null)
2030
+ /**
2031
+ * The URL the bytes were fetched from, if any.
2032
+ */
2033
+ sourceUrl: (string | null)
1882
2034
  /**
1883
2035
  * ISO-8601 time of the last change.
1884
2036
  */
1885
2037
  updatedAt: string
2038
+ }[]
2039
+ }
2040
+
2041
+ export interface ContentMediaUploadInput {
1886
2042
  /**
1887
- * Version number of the current text.
2043
+ * Name to store the file under. Defaults to the last path segment of the URL.
1888
2044
  */
1889
- currentVersion: number
2045
+ filename?: string
1890
2046
  /**
1891
- * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2047
+ * Public http(s) URL the toolkit fetches server-side. Images and video only, up to 512 MB.
1892
2048
  */
1893
- approvedVersion: (number | null)
2049
+ sourceUrl: string
1894
2050
  }
1895
2051
 
1896
- export interface ContentPostsVersionsInput {
2052
+ export interface ContentMediaUploadOutput {
1897
2053
  /**
1898
- * The post id returned by content_posts_create.
2054
+ * Media asset id. Use it to attach the asset to a post.
1899
2055
  */
1900
2056
  id: string
1901
- }
1902
-
1903
- export interface ContentPostsVersionsOutput {
1904
2057
  /**
1905
- * The post these versions belong to.
2058
+ * Object key in the product bucket. Private — hand it to no one, it is not a URL.
1906
2059
  */
1907
- postId: string
2060
+ key: string
1908
2061
  /**
1909
- * Every version, oldest first.
2062
+ * Stored media type, or null while still pending.
1910
2063
  */
1911
- versions: {
2064
+ mime: (string | null)
1912
2065
  /**
1913
- * The text as it stood at this version.
2066
+ * Why the asset is failed a readable reason, or null when nothing went wrong.
1914
2067
  */
1915
- text: string
2068
+ error: (string | null)
1916
2069
  /**
1917
- * Media references as they stood at this version.
2070
+ * How the bytes arrived: url (fetched by the toolkit) or upload (PUT by the app).
1918
2071
  */
1919
- media: string[]
2072
+ source: ("url" | "upload")
1920
2073
  /**
1921
- * Post the version belongs to.
2074
+ * Storage status: pending (the bytes are not in the bucket yet) -> ready (stored, attachable to a post) or failed (ingestion gave up; see error).
1922
2075
  */
1923
- postId: string
2076
+ status: ("pending" | "ready" | "failed")
1924
2077
  /**
1925
- * Version number, starting at 1.
2078
+ * Original filename, kept for display only.
1926
2079
  */
1927
- version: number
2080
+ filename: (string | null)
1928
2081
  /**
1929
- * ISO-8601 time the version was recorded.
2082
+ * ISO-8601 creation time.
1930
2083
  */
1931
2084
  createdAt: string
1932
2085
  /**
1933
- * Identity id of whoever produced this version.
2086
+ * Stored size in bytes, or null while pending.
1934
2087
  */
1935
- createdBy: string
1936
- }[]
1937
- }
1938
-
1939
- export interface ContentPublicationsCancelInput {
2088
+ sizeBytes: (number | null)
1940
2089
  /**
1941
- * The publication id returned by content_publications_schedule.
2090
+ * The URL the bytes were fetched from, if any.
1942
2091
  */
1943
- id: string
2092
+ sourceUrl: (string | null)
2093
+ /**
2094
+ * ISO-8601 time of the last change.
2095
+ */
2096
+ updatedAt: string
1944
2097
  }
1945
2098
 
1946
- export interface ContentPublicationsCancelOutput {
2099
+ export interface ContentMetricsChannelSeriesInput {
1947
2100
  /**
1948
- * Publication id.
2101
+ * The channel id, from content_channels_list.
1949
2102
  */
1950
2103
  id: string
1951
2104
  /**
1952
- * The per-channel variant of the text that will be published.
2105
+ * ISO-8601 upper bound on capture time, inclusive. Omit for "up to now".
1953
2106
  */
1954
- text: string
2107
+ to?: string
1955
2108
  /**
1956
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2109
+ * ISO-8601 lower bound on capture time, inclusive. Omit for "from the beginning".
1957
2110
  */
1958
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2111
+ from?: string
1959
2112
  /**
1960
- * The post being published.
2113
+ * Maximum number of snapshots to return, oldest first.
1961
2114
  */
1962
- postId: string
2115
+ limit?: number
2116
+ }
2117
+
2118
+ export interface ContentMetricsChannelSeriesOutput {
1963
2119
  /**
1964
- * How many dispatch attempts have been made.
2120
+ * Daily snapshots, oldest first.
1965
2121
  */
1966
- attempts: number
2122
+ points: {
1967
2123
  /**
1968
- * The channel it is published to.
2124
+ * The snapshot as the adapter recorded it: the availability it reported, the cross-network metric set (a null field means the network does not report it — never zero), and the raw payload.
1969
2125
  */
1970
- channelId: string
2126
+ metrics: {
2127
+ [k: string]: unknown
2128
+ }
1971
2129
  /**
1972
- * ISO-8601 creation time.
2130
+ * ISO-8601 time this snapshot was taken.
1973
2131
  */
1974
- createdAt: string
2132
+ capturedAt: string
2133
+ }[]
1975
2134
  /**
1976
- * The most recent failure, if any.
2135
+ * The network the channel publishes to.
1977
2136
  */
1978
- lastError: (string | null)
2137
+ network: string
1979
2138
  /**
1980
- * ISO-8601 time of the last change.
2139
+ * What this network reports for this account. "none" means no snapshot will ever be taken — a personal Instagram profile has no API at all; "basic" means fewer numbers than a business account gets, so an absent metric is the network's silence, not a zero.
1981
2140
  */
1982
- updatedAt: string
2141
+ analytics: ("full" | "basic" | "none")
1983
2142
  /**
1984
- * The network's id for the published post, once known.
2143
+ * The channel these snapshots belong to.
1985
2144
  */
1986
- externalId: (string | null)
2145
+ channelId: string
2146
+ }
2147
+
2148
+ export interface ContentMetricsPostSeriesInput {
1987
2149
  /**
1988
- * URL of the published post, once known.
2150
+ * The publication id, from content_publications_schedule or content_publications_list.
1989
2151
  */
1990
- externalUrl: (string | null)
2152
+ id: string
1991
2153
  /**
1992
- * ISO-8601 time it was confirmed published.
2154
+ * ISO-8601 upper bound on capture time, inclusive. Omit for "up to now".
1993
2155
  */
1994
- publishedAt: (string | null)
2156
+ to?: string
1995
2157
  /**
1996
- * ISO-8601 time the publication is due.
2158
+ * ISO-8601 lower bound on capture time, inclusive. Omit for "from the beginning".
1997
2159
  */
1998
- scheduledAt: string
2160
+ from?: string
1999
2161
  /**
2000
- * How many reminders have been sent for this publication.
2162
+ * Maximum number of snapshots to return, oldest first.
2001
2163
  */
2002
- reminderCount: number
2164
+ limit?: number
2165
+ }
2166
+
2167
+ export interface ContentMetricsPostSeriesOutput {
2003
2168
  /**
2004
- * The key that makes a retry the same publication.
2169
+ * Snapshots oldest first. Readings over time, not a current value: reach keeps growing for weeks. Empty means nothing has been captured yet.
2005
2170
  */
2006
- idempotencyKey: string
2171
+ points: {
2007
2172
  /**
2008
- * ISO-8601 time the most recent reminder went out, or null if none has.
2173
+ * The snapshot as the adapter recorded it: the availability it reported, the cross-network metric set (a null field means the network does not report it — never zero), and the raw payload.
2009
2174
  */
2010
- reminderSentAt: (string | null)
2175
+ metrics: {
2176
+ [k: string]: unknown
2011
2177
  }
2012
-
2013
- export interface ContentPublicationsConfirmInput {
2014
2178
  /**
2015
- * The publication id returned by content_publications_schedule.
2179
+ * ISO-8601 time this snapshot was taken.
2016
2180
  */
2017
- id: string
2181
+ capturedAt: string
2182
+ }[]
2018
2183
  /**
2019
- * The network's own id for the post, if known.
2184
+ * The network the channel publishes to.
2020
2185
  */
2021
- externalId?: string
2186
+ network: string
2022
2187
  /**
2023
- * URL of the post the person actually published. Worth supplyingit is what identifies the post later.
2188
+ * What this network reports for this account. "none" means no snapshot will ever be taken a personal Instagram profile has no API at all; "basic" means fewer numbers than a business account gets, so an absent metric is the network's silence, not a zero.
2024
2189
  */
2025
- externalUrl?: string
2190
+ analytics: ("full" | "basic" | "none")
2191
+ /**
2192
+ * The channel it was published to.
2193
+ */
2194
+ channelId: string
2195
+ /**
2196
+ * The publication these snapshots belong to.
2197
+ */
2198
+ publicationId: string
2026
2199
  }
2027
2200
 
2028
- export interface ContentPublicationsConfirmOutput {
2201
+ export interface ContentPostsApproveInput {
2029
2202
  /**
2030
- * Publication id.
2203
+ * The post id returned by content_posts_create.
2031
2204
  */
2032
2205
  id: string
2206
+ }
2207
+
2208
+ export interface ContentPostsApproveOutput {
2033
2209
  /**
2034
- * The per-channel variant of the text that will be published.
2210
+ * Post id.
2035
2211
  */
2036
- text: string
2212
+ id: string
2037
2213
  /**
2038
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2214
+ * The current text of the post.
2039
2215
  */
2040
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2216
+ text: string
2041
2217
  /**
2042
- * The post being published.
2218
+ * Media references attached to the current version.
2043
2219
  */
2044
- postId: string
2220
+ media: string[]
2045
2221
  /**
2046
- * How many dispatch attempts have been made.
2222
+ * Identity id of whoever composed the post.
2047
2223
  */
2048
- attempts: number
2224
+ author: string
2049
2225
  /**
2050
- * The channel it is published to.
2226
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2051
2227
  */
2052
- channelId: string
2228
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2053
2229
  /**
2054
2230
  * ISO-8601 creation time.
2055
2231
  */
2056
2232
  createdAt: string
2057
- /**
2058
- * The most recent failure, if any.
2059
- */
2060
- lastError: (string | null)
2061
2233
  /**
2062
2234
  * ISO-8601 time of the last change.
2063
2235
  */
2064
2236
  updatedAt: string
2065
2237
  /**
2066
- * The network's id for the published post, once known.
2238
+ * Version number of the current text.
2067
2239
  */
2068
- externalId: (string | null)
2240
+ currentVersion: number
2069
2241
  /**
2070
- * URL of the published post, once known.
2242
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2071
2243
  */
2072
- externalUrl: (string | null)
2244
+ approvedVersion: (number | null)
2245
+ }
2246
+
2247
+ export interface ContentPostsAttachMediaInput {
2073
2248
  /**
2074
- * ISO-8601 time it was confirmed published.
2249
+ * The post id.
2075
2250
  */
2076
- publishedAt: (string | null)
2251
+ id: string
2077
2252
  /**
2078
- * ISO-8601 time the publication is due.
2253
+ * Media asset ids, in the order they should appear on the post.
2254
+ *
2255
+ * @minItems 1
2256
+ * @maxItems 20
2079
2257
  */
2080
- scheduledAt: string
2258
+ mediaIds: [string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
2259
+ }
2260
+
2261
+ export interface ContentPostsAttachMediaOutput {
2081
2262
  /**
2082
- * How many reminders have been sent for this publication.
2263
+ * Post id.
2083
2264
  */
2084
- reminderCount: number
2265
+ id: string
2085
2266
  /**
2086
- * The key that makes a retry the same publication.
2267
+ * The current text of the post.
2087
2268
  */
2088
- idempotencyKey: string
2269
+ text: string
2089
2270
  /**
2090
- * ISO-8601 time the most recent reminder went out, or null if none has.
2271
+ * Media references attached to the current version.
2091
2272
  */
2092
- reminderSentAt: (string | null)
2273
+ media: string[]
2274
+ /**
2275
+ * Identity id of whoever composed the post.
2276
+ */
2277
+ author: string
2278
+ /**
2279
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2280
+ */
2281
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2282
+ /**
2283
+ * ISO-8601 creation time.
2284
+ */
2285
+ createdAt: string
2286
+ /**
2287
+ * ISO-8601 time of the last change.
2288
+ */
2289
+ updatedAt: string
2290
+ /**
2291
+ * Version number of the current text.
2292
+ */
2293
+ currentVersion: number
2294
+ /**
2295
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2296
+ */
2297
+ approvedVersion: (number | null)
2093
2298
  }
2094
2299
 
2095
- export interface ContentPublicationsGetInput {
2300
+ export interface ContentPostsCreateInput {
2096
2301
  /**
2097
- * The publication id returned by content_publications_schedule.
2302
+ * The post text, channel-independent. Per-channel variants come later, at publish time.
2098
2303
  */
2099
- id: string
2304
+ text: string
2305
+ /**
2306
+ * Media references attached to the post, in display order. Opaque strings — the toolkit does not upload or resolve them.
2307
+ *
2308
+ * @maxItems 20
2309
+ */
2310
+ media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
2100
2311
  }
2101
2312
 
2102
- export interface ContentPublicationsGetOutput {
2313
+ export interface ContentPostsCreateOutput {
2103
2314
  /**
2104
- * Publication id.
2315
+ * Post id.
2105
2316
  */
2106
2317
  id: string
2107
2318
  /**
2108
- * The per-channel variant of the text that will be published.
2319
+ * The current text of the post.
2109
2320
  */
2110
2321
  text: string
2111
2322
  /**
2112
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2113
- */
2114
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2115
- /**
2116
- * The post being published.
2323
+ * Media references attached to the current version.
2117
2324
  */
2118
- postId: string
2325
+ media: string[]
2119
2326
  /**
2120
- * How many dispatch attempts have been made.
2327
+ * Identity id of whoever composed the post.
2121
2328
  */
2122
- attempts: number
2329
+ author: string
2123
2330
  /**
2124
- * The channel it is published to.
2331
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2125
2332
  */
2126
- channelId: string
2333
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2127
2334
  /**
2128
2335
  * ISO-8601 creation time.
2129
2336
  */
2130
2337
  createdAt: string
2131
- /**
2132
- * The most recent failure, if any.
2133
- */
2134
- lastError: (string | null)
2135
2338
  /**
2136
2339
  * ISO-8601 time of the last change.
2137
2340
  */
2138
2341
  updatedAt: string
2139
2342
  /**
2140
- * The network's id for the published post, once known.
2343
+ * Version number of the current text.
2141
2344
  */
2142
- externalId: (string | null)
2345
+ currentVersion: number
2143
2346
  /**
2144
- * URL of the published post, once known.
2347
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2145
2348
  */
2146
- externalUrl: (string | null)
2349
+ approvedVersion: (number | null)
2350
+ }
2351
+
2352
+ export interface ContentPostsDetachMediaInput {
2147
2353
  /**
2148
- * ISO-8601 time it was confirmed published.
2354
+ * The post id.
2149
2355
  */
2150
- publishedAt: (string | null)
2356
+ id: string
2151
2357
  /**
2152
- * ISO-8601 time the publication is due.
2358
+ * Media asset ids to remove from the post.
2359
+ *
2360
+ * @minItems 1
2361
+ * @maxItems 20
2153
2362
  */
2154
- scheduledAt: string
2363
+ mediaIds: [string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
2364
+ }
2365
+
2366
+ export interface ContentPostsDetachMediaOutput {
2155
2367
  /**
2156
- * How many reminders have been sent for this publication.
2368
+ * Post id.
2157
2369
  */
2158
- reminderCount: number
2370
+ id: string
2159
2371
  /**
2160
- * The key that makes a retry the same publication.
2372
+ * The current text of the post.
2161
2373
  */
2162
- idempotencyKey: string
2374
+ text: string
2163
2375
  /**
2164
- * ISO-8601 time the most recent reminder went out, or null if none has.
2376
+ * Media references attached to the current version.
2165
2377
  */
2166
- reminderSentAt: (string | null)
2167
- }
2168
-
2169
- export interface ContentPublicationsListInput {
2378
+ media: string[]
2170
2379
  /**
2171
- * Maximum number to return (1-100, default 50).
2380
+ * Identity id of whoever composed the post.
2172
2381
  */
2173
- limit?: number
2382
+ author: string
2174
2383
  /**
2175
- * Return only publications in this state.
2384
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2176
2385
  */
2177
- state?: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2386
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2178
2387
  /**
2179
- * How many to skip, for paging.
2388
+ * ISO-8601 creation time.
2180
2389
  */
2181
- offset?: number
2390
+ createdAt: string
2182
2391
  /**
2183
- * Return only publications of this post.
2392
+ * ISO-8601 time of the last change.
2184
2393
  */
2185
- postId?: string
2394
+ updatedAt: string
2186
2395
  /**
2187
- * Return only publications to this channel.
2396
+ * Version number of the current text.
2188
2397
  */
2189
- channelId?: string
2190
- }
2191
-
2192
- export interface ContentPublicationsListOutput {
2398
+ currentVersion: number
2193
2399
  /**
2194
- * Total number of matching publications, ignoring paging.
2400
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2195
2401
  */
2196
- total: number
2402
+ approvedVersion: (number | null)
2403
+ }
2404
+
2405
+ export interface ContentPostsGetInput {
2197
2406
  /**
2198
- * The page of publications, newest slot first.
2407
+ * The post id returned by content_posts_create.
2199
2408
  */
2200
- publications: {
2409
+ id: string
2410
+ }
2411
+
2412
+ export interface ContentPostsGetOutput {
2201
2413
  /**
2202
- * Publication id.
2414
+ * Post id.
2203
2415
  */
2204
2416
  id: string
2205
2417
  /**
2206
- * The per-channel variant of the text that will be published.
2418
+ * The current text of the post.
2207
2419
  */
2208
2420
  text: string
2209
2421
  /**
2210
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2211
- */
2212
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2213
- /**
2214
- * The post being published.
2422
+ * Media references attached to the current version.
2215
2423
  */
2216
- postId: string
2424
+ media: string[]
2217
2425
  /**
2218
- * How many dispatch attempts have been made.
2426
+ * Identity id of whoever composed the post.
2219
2427
  */
2220
- attempts: number
2428
+ author: string
2221
2429
  /**
2222
- * The channel it is published to.
2430
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2223
2431
  */
2224
- channelId: string
2432
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2225
2433
  /**
2226
2434
  * ISO-8601 creation time.
2227
2435
  */
2228
2436
  createdAt: string
2229
- /**
2230
- * The most recent failure, if any.
2231
- */
2232
- lastError: (string | null)
2233
2437
  /**
2234
2438
  * ISO-8601 time of the last change.
2235
2439
  */
2236
2440
  updatedAt: string
2237
2441
  /**
2238
- * The network's id for the published post, once known.
2442
+ * Version number of the current text.
2239
2443
  */
2240
- externalId: (string | null)
2444
+ currentVersion: number
2241
2445
  /**
2242
- * URL of the published post, once known.
2446
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2243
2447
  */
2244
- externalUrl: (string | null)
2448
+ approvedVersion: (number | null)
2449
+ }
2450
+
2451
+ export interface ContentPostsListInput {
2245
2452
  /**
2246
- * ISO-8601 time it was confirmed published.
2453
+ * Maximum number of posts to return (1-100, default 50).
2247
2454
  */
2248
- publishedAt: (string | null)
2455
+ limit?: number
2249
2456
  /**
2250
- * ISO-8601 time the publication is due.
2457
+ * How many posts to skip, for paging.
2251
2458
  */
2252
- scheduledAt: string
2459
+ offset?: number
2253
2460
  /**
2254
- * How many reminders have been sent for this publication.
2461
+ * Return only posts in this status.
2255
2462
  */
2256
- reminderCount: number
2463
+ status?: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2464
+ }
2465
+
2466
+ export interface ContentPostsListOutput {
2257
2467
  /**
2258
- * The key that makes a retry the same publication.
2468
+ * The page of posts, newest first.
2259
2469
  */
2260
- idempotencyKey: string
2470
+ posts: {
2261
2471
  /**
2262
- * ISO-8601 time the most recent reminder went out, or null if none has.
2472
+ * Post id.
2263
2473
  */
2264
- reminderSentAt: (string | null)
2265
- }[]
2266
- }
2267
-
2268
- export interface ContentPublicationsPublishInput {
2474
+ id: string
2269
2475
  /**
2270
- * Per-channel variant of the text. Omit to publish the post text as written.
2476
+ * The current text of the post.
2271
2477
  */
2272
- text?: string
2478
+ text: string
2273
2479
  /**
2274
- * The post to publish. It must already be approved.
2480
+ * Media references attached to the current version.
2275
2481
  */
2276
- postId: string
2482
+ media: string[]
2277
2483
  /**
2278
- * The channel to publish to.
2484
+ * Identity id of whoever composed the post.
2279
2485
  */
2280
- channelId: string
2486
+ author: string
2281
2487
  /**
2282
- * Your own key for this publishing intent, unique within the product. Resending the same key returns the SAME publication instead of creating a second one — a duplicate in a client feed is the worst defect this product can ship. Omit it and one is derived from post, channel and time.
2488
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2283
2489
  */
2284
- idempotencyKey?: string
2490
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2491
+ /**
2492
+ * ISO-8601 creation time.
2493
+ */
2494
+ createdAt: string
2495
+ /**
2496
+ * ISO-8601 time of the last change.
2497
+ */
2498
+ updatedAt: string
2499
+ /**
2500
+ * Version number of the current text.
2501
+ */
2502
+ currentVersion: number
2503
+ /**
2504
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2505
+ */
2506
+ approvedVersion: (number | null)
2507
+ }[]
2508
+ /**
2509
+ * Total number of matching posts, ignoring paging.
2510
+ */
2511
+ total: number
2285
2512
  }
2286
2513
 
2287
- export interface ContentPublicationsPublishOutput {
2514
+ export interface ContentPostsSubmitInput {
2288
2515
  /**
2289
- * Publication id.
2516
+ * The post id returned by content_posts_create.
2517
+ */
2518
+ id: string
2519
+ }
2520
+
2521
+ export interface ContentPostsSubmitOutput {
2522
+ /**
2523
+ * Post id.
2524
+ */
2525
+ id: string
2526
+ /**
2527
+ * The current text of the post.
2528
+ */
2529
+ text: string
2530
+ /**
2531
+ * Media references attached to the current version.
2532
+ */
2533
+ media: string[]
2534
+ /**
2535
+ * Identity id of whoever composed the post.
2536
+ */
2537
+ author: string
2538
+ /**
2539
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2540
+ */
2541
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2542
+ /**
2543
+ * ISO-8601 creation time.
2544
+ */
2545
+ createdAt: string
2546
+ /**
2547
+ * ISO-8601 time of the last change.
2548
+ */
2549
+ updatedAt: string
2550
+ /**
2551
+ * Version number of the current text.
2552
+ */
2553
+ currentVersion: number
2554
+ /**
2555
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2556
+ */
2557
+ approvedVersion: (number | null)
2558
+ }
2559
+
2560
+ export interface ContentPostsUpdateInput {
2561
+ /**
2562
+ * The post id returned by content_posts_create.
2563
+ */
2564
+ id: string
2565
+ /**
2566
+ * Replacement text. Omit to keep the current text.
2567
+ */
2568
+ text?: string
2569
+ /**
2570
+ * Replacement media list (replaces, never merges). Omit to keep the current media.
2571
+ *
2572
+ * @maxItems 20
2573
+ */
2574
+ media?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]
2575
+ }
2576
+
2577
+ export interface ContentPostsUpdateOutput {
2578
+ /**
2579
+ * Post id.
2580
+ */
2581
+ id: string
2582
+ /**
2583
+ * The current text of the post.
2584
+ */
2585
+ text: string
2586
+ /**
2587
+ * Media references attached to the current version.
2588
+ */
2589
+ media: string[]
2590
+ /**
2591
+ * Identity id of whoever composed the post.
2592
+ */
2593
+ author: string
2594
+ /**
2595
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
2596
+ */
2597
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
2598
+ /**
2599
+ * ISO-8601 creation time.
2600
+ */
2601
+ createdAt: string
2602
+ /**
2603
+ * ISO-8601 time of the last change.
2604
+ */
2605
+ updatedAt: string
2606
+ /**
2607
+ * Version number of the current text.
2608
+ */
2609
+ currentVersion: number
2610
+ /**
2611
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
2612
+ */
2613
+ approvedVersion: (number | null)
2614
+ }
2615
+
2616
+ export interface ContentPostsVersionsInput {
2617
+ /**
2618
+ * The post id returned by content_posts_create.
2619
+ */
2620
+ id: string
2621
+ }
2622
+
2623
+ export interface ContentPostsVersionsOutput {
2624
+ /**
2625
+ * The post these versions belong to.
2626
+ */
2627
+ postId: string
2628
+ /**
2629
+ * Every version, oldest first.
2630
+ */
2631
+ versions: {
2632
+ /**
2633
+ * The text as it stood at this version.
2634
+ */
2635
+ text: string
2636
+ /**
2637
+ * Media references as they stood at this version.
2638
+ */
2639
+ media: string[]
2640
+ /**
2641
+ * Post the version belongs to.
2642
+ */
2643
+ postId: string
2644
+ /**
2645
+ * Version number, starting at 1.
2646
+ */
2647
+ version: number
2648
+ /**
2649
+ * ISO-8601 time the version was recorded.
2650
+ */
2651
+ createdAt: string
2652
+ /**
2653
+ * Identity id of whoever produced this version.
2654
+ */
2655
+ createdBy: string
2656
+ }[]
2657
+ }
2658
+
2659
+ export interface ContentPublicationsCancelInput {
2660
+ /**
2661
+ * The publication id returned by content_publications_schedule.
2662
+ */
2663
+ id: string
2664
+ }
2665
+
2666
+ export interface ContentPublicationsCancelOutput {
2667
+ /**
2668
+ * Publication id.
2669
+ */
2670
+ id: string
2671
+ /**
2672
+ * The per-channel variant of the text that will be published.
2673
+ */
2674
+ text: string
2675
+ /**
2676
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2677
+ */
2678
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2679
+ /**
2680
+ * The post being published.
2681
+ */
2682
+ postId: string
2683
+ /**
2684
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
2685
+ */
2686
+ costUsd: (number | null)
2687
+ /**
2688
+ * How many dispatch attempts have been made.
2689
+ */
2690
+ attempts: number
2691
+ /**
2692
+ * The channel it is published to.
2693
+ */
2694
+ channelId: string
2695
+ /**
2696
+ * Which rate produced costUsd: "plain", "link" or "free".
2697
+ */
2698
+ costBasis: (string | null)
2699
+ /**
2700
+ * ISO-8601 creation time.
2701
+ */
2702
+ createdAt: string
2703
+ /**
2704
+ * The most recent failure, if any.
2705
+ */
2706
+ lastError: (string | null)
2707
+ /**
2708
+ * ISO-8601 time of the last change.
2709
+ */
2710
+ updatedAt: string
2711
+ /**
2712
+ * The network's id for the published post, once known.
2713
+ */
2714
+ externalId: (string | null)
2715
+ /**
2716
+ * URL of the published post, once known.
2717
+ */
2718
+ externalUrl: (string | null)
2719
+ /**
2720
+ * ISO-8601 time it was confirmed published.
2721
+ */
2722
+ publishedAt: (string | null)
2723
+ /**
2724
+ * ISO-8601 time the publication is due.
2725
+ */
2726
+ scheduledAt: string
2727
+ /**
2728
+ * How many reminders have been sent for this publication.
2729
+ */
2730
+ reminderCount: number
2731
+ /**
2732
+ * The key that makes a retry the same publication.
2733
+ */
2734
+ idempotencyKey: string
2735
+ /**
2736
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2737
+ */
2738
+ reminderSentAt: (string | null)
2739
+ }
2740
+
2741
+ export interface ContentPublicationsConfirmInput {
2742
+ /**
2743
+ * The publication id returned by content_publications_schedule.
2744
+ */
2745
+ id: string
2746
+ /**
2747
+ * The network's own id for the post, if known.
2748
+ */
2749
+ externalId?: string
2750
+ /**
2751
+ * URL of the post the person actually published. Worth supplying — it is what identifies the post later.
2752
+ */
2753
+ externalUrl?: string
2754
+ }
2755
+
2756
+ export interface ContentPublicationsConfirmOutput {
2757
+ /**
2758
+ * Publication id.
2759
+ */
2760
+ id: string
2761
+ /**
2762
+ * The per-channel variant of the text that will be published.
2763
+ */
2764
+ text: string
2765
+ /**
2766
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2767
+ */
2768
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2769
+ /**
2770
+ * The post being published.
2771
+ */
2772
+ postId: string
2773
+ /**
2774
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
2775
+ */
2776
+ costUsd: (number | null)
2777
+ /**
2778
+ * How many dispatch attempts have been made.
2779
+ */
2780
+ attempts: number
2781
+ /**
2782
+ * The channel it is published to.
2783
+ */
2784
+ channelId: string
2785
+ /**
2786
+ * Which rate produced costUsd: "plain", "link" or "free".
2787
+ */
2788
+ costBasis: (string | null)
2789
+ /**
2790
+ * ISO-8601 creation time.
2791
+ */
2792
+ createdAt: string
2793
+ /**
2794
+ * The most recent failure, if any.
2795
+ */
2796
+ lastError: (string | null)
2797
+ /**
2798
+ * ISO-8601 time of the last change.
2799
+ */
2800
+ updatedAt: string
2801
+ /**
2802
+ * The network's id for the published post, once known.
2803
+ */
2804
+ externalId: (string | null)
2805
+ /**
2806
+ * URL of the published post, once known.
2807
+ */
2808
+ externalUrl: (string | null)
2809
+ /**
2810
+ * ISO-8601 time it was confirmed published.
2811
+ */
2812
+ publishedAt: (string | null)
2813
+ /**
2814
+ * ISO-8601 time the publication is due.
2815
+ */
2816
+ scheduledAt: string
2817
+ /**
2818
+ * How many reminders have been sent for this publication.
2819
+ */
2820
+ reminderCount: number
2821
+ /**
2822
+ * The key that makes a retry the same publication.
2823
+ */
2824
+ idempotencyKey: string
2825
+ /**
2826
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2827
+ */
2828
+ reminderSentAt: (string | null)
2829
+ }
2830
+
2831
+ export interface ContentPublicationsGetInput {
2832
+ /**
2833
+ * The publication id returned by content_publications_schedule.
2834
+ */
2835
+ id: string
2836
+ }
2837
+
2838
+ export interface ContentPublicationsGetOutput {
2839
+ /**
2840
+ * Publication id.
2841
+ */
2842
+ id: string
2843
+ /**
2844
+ * The per-channel variant of the text that will be published.
2845
+ */
2846
+ text: string
2847
+ /**
2848
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2849
+ */
2850
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2851
+ /**
2852
+ * The post being published.
2853
+ */
2854
+ postId: string
2855
+ /**
2856
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
2857
+ */
2858
+ costUsd: (number | null)
2859
+ /**
2860
+ * How many dispatch attempts have been made.
2861
+ */
2862
+ attempts: number
2863
+ /**
2864
+ * The channel it is published to.
2865
+ */
2866
+ channelId: string
2867
+ /**
2868
+ * Which rate produced costUsd: "plain", "link" or "free".
2869
+ */
2870
+ costBasis: (string | null)
2871
+ /**
2872
+ * ISO-8601 creation time.
2873
+ */
2874
+ createdAt: string
2875
+ /**
2876
+ * The most recent failure, if any.
2877
+ */
2878
+ lastError: (string | null)
2879
+ /**
2880
+ * ISO-8601 time of the last change.
2881
+ */
2882
+ updatedAt: string
2883
+ /**
2884
+ * The network's id for the published post, once known.
2885
+ */
2886
+ externalId: (string | null)
2887
+ /**
2888
+ * URL of the published post, once known.
2889
+ */
2890
+ externalUrl: (string | null)
2891
+ /**
2892
+ * ISO-8601 time it was confirmed published.
2893
+ */
2894
+ publishedAt: (string | null)
2895
+ /**
2896
+ * ISO-8601 time the publication is due.
2897
+ */
2898
+ scheduledAt: string
2899
+ /**
2900
+ * How many reminders have been sent for this publication.
2901
+ */
2902
+ reminderCount: number
2903
+ /**
2904
+ * The key that makes a retry the same publication.
2905
+ */
2906
+ idempotencyKey: string
2907
+ /**
2908
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2909
+ */
2910
+ reminderSentAt: (string | null)
2911
+ }
2912
+
2913
+ export interface ContentPublicationsListInput {
2914
+ /**
2915
+ * Maximum number to return (1-100, default 50).
2916
+ */
2917
+ limit?: number
2918
+ /**
2919
+ * Return only publications in this state.
2920
+ */
2921
+ state?: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2922
+ /**
2923
+ * How many to skip, for paging.
2924
+ */
2925
+ offset?: number
2926
+ /**
2927
+ * Return only publications of this post.
2928
+ */
2929
+ postId?: string
2930
+ /**
2931
+ * Return only publications to this channel.
2932
+ */
2933
+ channelId?: string
2934
+ }
2935
+
2936
+ export interface ContentPublicationsListOutput {
2937
+ /**
2938
+ * Total number of matching publications, ignoring paging.
2939
+ */
2940
+ total: number
2941
+ /**
2942
+ * The page of publications, newest slot first.
2943
+ */
2944
+ publications: {
2945
+ /**
2946
+ * Publication id.
2947
+ */
2948
+ id: string
2949
+ /**
2950
+ * The per-channel variant of the text that will be published.
2951
+ */
2952
+ text: string
2953
+ /**
2954
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2955
+ */
2956
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2957
+ /**
2958
+ * The post being published.
2959
+ */
2960
+ postId: string
2961
+ /**
2962
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
2963
+ */
2964
+ costUsd: (number | null)
2965
+ /**
2966
+ * How many dispatch attempts have been made.
2967
+ */
2968
+ attempts: number
2969
+ /**
2970
+ * The channel it is published to.
2971
+ */
2972
+ channelId: string
2973
+ /**
2974
+ * Which rate produced costUsd: "plain", "link" or "free".
2975
+ */
2976
+ costBasis: (string | null)
2977
+ /**
2978
+ * ISO-8601 creation time.
2979
+ */
2980
+ createdAt: string
2981
+ /**
2982
+ * The most recent failure, if any.
2983
+ */
2984
+ lastError: (string | null)
2985
+ /**
2986
+ * ISO-8601 time of the last change.
2987
+ */
2988
+ updatedAt: string
2989
+ /**
2990
+ * The network's id for the published post, once known.
2991
+ */
2992
+ externalId: (string | null)
2993
+ /**
2994
+ * URL of the published post, once known.
2995
+ */
2996
+ externalUrl: (string | null)
2997
+ /**
2998
+ * ISO-8601 time it was confirmed published.
2999
+ */
3000
+ publishedAt: (string | null)
3001
+ /**
3002
+ * ISO-8601 time the publication is due.
3003
+ */
3004
+ scheduledAt: string
3005
+ /**
3006
+ * How many reminders have been sent for this publication.
3007
+ */
3008
+ reminderCount: number
3009
+ /**
3010
+ * The key that makes a retry the same publication.
3011
+ */
3012
+ idempotencyKey: string
3013
+ /**
3014
+ * ISO-8601 time the most recent reminder went out, or null if none has.
3015
+ */
3016
+ reminderSentAt: (string | null)
3017
+ }[]
3018
+ }
3019
+
3020
+ export interface ContentPublicationsPublishInput {
3021
+ /**
3022
+ * Per-channel variant of the text. Omit to publish the post text as written.
3023
+ */
3024
+ text?: string
3025
+ /**
3026
+ * The post to publish. It must already be approved.
3027
+ */
3028
+ postId: string
3029
+ /**
3030
+ * The channel to publish to.
3031
+ */
3032
+ channelId: string
3033
+ /**
3034
+ * Your own key for this publishing intent, unique within the product. Resending the same key returns the SAME publication instead of creating a second one — a duplicate in a client feed is the worst defect this product can ship. Omit it and one is derived from post, channel and time.
3035
+ */
3036
+ idempotencyKey?: string
3037
+ }
3038
+
3039
+ export interface ContentPublicationsPublishOutput {
3040
+ /**
3041
+ * Publication id.
3042
+ */
3043
+ id: string
3044
+ /**
3045
+ * The per-channel variant of the text that will be published.
3046
+ */
3047
+ text: string
3048
+ /**
3049
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
3050
+ */
3051
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
3052
+ /**
3053
+ * The post being published.
3054
+ */
3055
+ postId: string
3056
+ /**
3057
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
3058
+ */
3059
+ costUsd: (number | null)
3060
+ /**
3061
+ * How many dispatch attempts have been made.
3062
+ */
3063
+ attempts: number
3064
+ /**
3065
+ * The channel it is published to.
3066
+ */
3067
+ channelId: string
3068
+ /**
3069
+ * Which rate produced costUsd: "plain", "link" or "free".
3070
+ */
3071
+ costBasis: (string | null)
3072
+ /**
3073
+ * ISO-8601 creation time.
3074
+ */
3075
+ createdAt: string
3076
+ /**
3077
+ * The most recent failure, if any.
3078
+ */
3079
+ lastError: (string | null)
3080
+ /**
3081
+ * ISO-8601 time of the last change.
3082
+ */
3083
+ updatedAt: string
3084
+ /**
3085
+ * The network's id for the published post, once known.
3086
+ */
3087
+ externalId: (string | null)
3088
+ /**
3089
+ * URL of the published post, once known.
3090
+ */
3091
+ externalUrl: (string | null)
3092
+ /**
3093
+ * ISO-8601 time it was confirmed published.
3094
+ */
3095
+ publishedAt: (string | null)
3096
+ /**
3097
+ * ISO-8601 time the publication is due.
3098
+ */
3099
+ scheduledAt: string
3100
+ /**
3101
+ * How many reminders have been sent for this publication.
3102
+ */
3103
+ reminderCount: number
3104
+ /**
3105
+ * The key that makes a retry the same publication.
3106
+ */
3107
+ idempotencyKey: string
3108
+ /**
3109
+ * ISO-8601 time the most recent reminder went out, or null if none has.
3110
+ */
3111
+ reminderSentAt: (string | null)
3112
+ }
3113
+
3114
+ export interface ContentPublicationsRemindInput {
3115
+ /**
3116
+ * The publication id returned by content_publications_schedule.
3117
+ */
3118
+ id: string
3119
+ }
3120
+
3121
+ export interface ContentPublicationsRemindOutput {
3122
+ /**
3123
+ * Publication id.
3124
+ */
3125
+ id: string
3126
+ /**
3127
+ * The per-channel variant of the text that will be published.
3128
+ */
3129
+ text: string
3130
+ /**
3131
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
3132
+ */
3133
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
3134
+ /**
3135
+ * The post being published.
3136
+ */
3137
+ postId: string
3138
+ /**
3139
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
3140
+ */
3141
+ costUsd: (number | null)
3142
+ /**
3143
+ * How many dispatch attempts have been made.
3144
+ */
3145
+ attempts: number
3146
+ /**
3147
+ * The channel it is published to.
3148
+ */
3149
+ channelId: string
3150
+ /**
3151
+ * Which rate produced costUsd: "plain", "link" or "free".
3152
+ */
3153
+ costBasis: (string | null)
3154
+ /**
3155
+ * ISO-8601 creation time.
3156
+ */
3157
+ createdAt: string
3158
+ /**
3159
+ * The most recent failure, if any.
3160
+ */
3161
+ lastError: (string | null)
3162
+ /**
3163
+ * ISO-8601 time of the last change.
3164
+ */
3165
+ updatedAt: string
3166
+ /**
3167
+ * The network's id for the published post, once known.
3168
+ */
3169
+ externalId: (string | null)
3170
+ /**
3171
+ * URL of the published post, once known.
3172
+ */
3173
+ externalUrl: (string | null)
3174
+ /**
3175
+ * ISO-8601 time it was confirmed published.
3176
+ */
3177
+ publishedAt: (string | null)
3178
+ /**
3179
+ * ISO-8601 time the publication is due.
3180
+ */
3181
+ scheduledAt: string
3182
+ /**
3183
+ * How many reminders have been sent for this publication.
3184
+ */
3185
+ reminderCount: number
3186
+ /**
3187
+ * The key that makes a retry the same publication.
3188
+ */
3189
+ idempotencyKey: string
3190
+ /**
3191
+ * ISO-8601 time the most recent reminder went out, or null if none has.
3192
+ */
3193
+ reminderSentAt: (string | null)
3194
+ }
3195
+
3196
+ export interface ContentPublicationsRescheduleInput {
3197
+ /**
3198
+ * The publication id returned by content_publications_schedule.
3199
+ */
3200
+ id: string
3201
+ /**
3202
+ * New ISO-8601 time. The publication returns to the queue.
3203
+ */
3204
+ scheduledAt: string
3205
+ }
3206
+
3207
+ export interface ContentPublicationsRescheduleOutput {
3208
+ /**
3209
+ * Publication id.
3210
+ */
3211
+ id: string
3212
+ /**
3213
+ * The per-channel variant of the text that will be published.
3214
+ */
3215
+ text: string
3216
+ /**
3217
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
3218
+ */
3219
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
3220
+ /**
3221
+ * The post being published.
3222
+ */
3223
+ postId: string
3224
+ /**
3225
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
3226
+ */
3227
+ costUsd: (number | null)
3228
+ /**
3229
+ * How many dispatch attempts have been made.
3230
+ */
3231
+ attempts: number
3232
+ /**
3233
+ * The channel it is published to.
3234
+ */
3235
+ channelId: string
3236
+ /**
3237
+ * Which rate produced costUsd: "plain", "link" or "free".
3238
+ */
3239
+ costBasis: (string | null)
3240
+ /**
3241
+ * ISO-8601 creation time.
3242
+ */
3243
+ createdAt: string
3244
+ /**
3245
+ * The most recent failure, if any.
3246
+ */
3247
+ lastError: (string | null)
3248
+ /**
3249
+ * ISO-8601 time of the last change.
3250
+ */
3251
+ updatedAt: string
3252
+ /**
3253
+ * The network's id for the published post, once known.
3254
+ */
3255
+ externalId: (string | null)
3256
+ /**
3257
+ * URL of the published post, once known.
3258
+ */
3259
+ externalUrl: (string | null)
3260
+ /**
3261
+ * ISO-8601 time it was confirmed published.
3262
+ */
3263
+ publishedAt: (string | null)
3264
+ /**
3265
+ * ISO-8601 time the publication is due.
3266
+ */
3267
+ scheduledAt: string
3268
+ /**
3269
+ * How many reminders have been sent for this publication.
3270
+ */
3271
+ reminderCount: number
3272
+ /**
3273
+ * The key that makes a retry the same publication.
3274
+ */
3275
+ idempotencyKey: string
3276
+ /**
3277
+ * ISO-8601 time the most recent reminder went out, or null if none has.
3278
+ */
3279
+ reminderSentAt: (string | null)
3280
+ }
3281
+
3282
+ export interface ContentPublicationsScheduleInput {
3283
+ /**
3284
+ * Per-channel variant of the text. Omit to publish the post text as written.
3285
+ */
3286
+ text?: string
3287
+ /**
3288
+ * The post to publish. It must already be approved — an unapproved text never publishes.
3289
+ */
3290
+ postId: string
3291
+ /**
3292
+ * The channel to publish to. Get its character limit from content_channels_get first.
3293
+ */
3294
+ channelId: string
3295
+ /**
3296
+ * ISO-8601 time to publish. In the past means "as soon as the next tick runs".
3297
+ */
3298
+ scheduledAt: string
3299
+ /**
3300
+ * Your own key for this publishing intent, unique within the product. Resending the same key returns the SAME publication instead of creating a second one — a duplicate in a client feed is the worst defect this product can ship. Omit it and one is derived from post, channel and time.
3301
+ */
3302
+ idempotencyKey?: string
3303
+ }
3304
+
3305
+ export interface ContentPublicationsScheduleOutput {
3306
+ /**
3307
+ * Publication id.
3308
+ */
3309
+ id: string
3310
+ /**
3311
+ * The per-channel variant of the text that will be published.
3312
+ */
3313
+ text: string
3314
+ /**
3315
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
3316
+ */
3317
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
3318
+ /**
3319
+ * The post being published.
3320
+ */
3321
+ postId: string
3322
+ /**
3323
+ * What publishing this costs in USD, computed when it was scheduled. On X a post carrying a link costs 13x a plain one. Null means the cost is not known — an auto channel refuses to dispatch it.
3324
+ */
3325
+ costUsd: (number | null)
3326
+ /**
3327
+ * How many dispatch attempts have been made.
3328
+ */
3329
+ attempts: number
3330
+ /**
3331
+ * The channel it is published to.
3332
+ */
3333
+ channelId: string
3334
+ /**
3335
+ * Which rate produced costUsd: "plain", "link" or "free".
3336
+ */
3337
+ costBasis: (string | null)
3338
+ /**
3339
+ * ISO-8601 creation time.
3340
+ */
3341
+ createdAt: string
3342
+ /**
3343
+ * The most recent failure, if any.
3344
+ */
3345
+ lastError: (string | null)
3346
+ /**
3347
+ * ISO-8601 time of the last change.
3348
+ */
3349
+ updatedAt: string
3350
+ /**
3351
+ * The network's id for the published post, once known.
3352
+ */
3353
+ externalId: (string | null)
3354
+ /**
3355
+ * URL of the published post, once known.
3356
+ */
3357
+ externalUrl: (string | null)
3358
+ /**
3359
+ * ISO-8601 time it was confirmed published.
3360
+ */
3361
+ publishedAt: (string | null)
3362
+ /**
3363
+ * ISO-8601 time the publication is due.
3364
+ */
3365
+ scheduledAt: string
3366
+ /**
3367
+ * How many reminders have been sent for this publication.
3368
+ */
3369
+ reminderCount: number
3370
+ /**
3371
+ * The key that makes a retry the same publication.
3372
+ */
3373
+ idempotencyKey: string
3374
+ /**
3375
+ * ISO-8601 time the most recent reminder went out, or null if none has.
3376
+ */
3377
+ reminderSentAt: (string | null)
3378
+ }
3379
+
3380
+ export interface ContentPublicationsValidateInput {
3381
+ /**
3382
+ * The post to check. It does not have to be approved yet — this never publishes.
3383
+ */
3384
+ postId: string
3385
+ /**
3386
+ * One entry per channel you are considering. Check them all in one call.
3387
+ *
3388
+ * @minItems 1
3389
+ * @maxItems 20
3390
+ */
3391
+ channels: [{
3392
+ /**
3393
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3394
+ */
3395
+ text?: string
3396
+ /**
3397
+ * A channel to check this post against.
3398
+ */
3399
+ channelId: string
3400
+ }]|[{
3401
+ /**
3402
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3403
+ */
3404
+ text?: string
3405
+ /**
3406
+ * A channel to check this post against.
3407
+ */
3408
+ channelId: string
3409
+ }, {
3410
+ /**
3411
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3412
+ */
3413
+ text?: string
3414
+ /**
3415
+ * A channel to check this post against.
3416
+ */
3417
+ channelId: string
3418
+ }]|[{
3419
+ /**
3420
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3421
+ */
3422
+ text?: string
3423
+ /**
3424
+ * A channel to check this post against.
3425
+ */
3426
+ channelId: string
3427
+ }, {
3428
+ /**
3429
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3430
+ */
3431
+ text?: string
3432
+ /**
3433
+ * A channel to check this post against.
3434
+ */
3435
+ channelId: string
3436
+ }, {
3437
+ /**
3438
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3439
+ */
3440
+ text?: string
3441
+ /**
3442
+ * A channel to check this post against.
3443
+ */
3444
+ channelId: string
3445
+ }]|[{
3446
+ /**
3447
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3448
+ */
3449
+ text?: string
3450
+ /**
3451
+ * A channel to check this post against.
3452
+ */
3453
+ channelId: string
3454
+ }, {
3455
+ /**
3456
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3457
+ */
3458
+ text?: string
3459
+ /**
3460
+ * A channel to check this post against.
3461
+ */
3462
+ channelId: string
3463
+ }, {
3464
+ /**
3465
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3466
+ */
3467
+ text?: string
3468
+ /**
3469
+ * A channel to check this post against.
3470
+ */
3471
+ channelId: string
3472
+ }, {
3473
+ /**
3474
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3475
+ */
3476
+ text?: string
3477
+ /**
3478
+ * A channel to check this post against.
3479
+ */
3480
+ channelId: string
3481
+ }]|[{
3482
+ /**
3483
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3484
+ */
3485
+ text?: string
3486
+ /**
3487
+ * A channel to check this post against.
3488
+ */
3489
+ channelId: string
3490
+ }, {
3491
+ /**
3492
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3493
+ */
3494
+ text?: string
3495
+ /**
3496
+ * A channel to check this post against.
3497
+ */
3498
+ channelId: string
3499
+ }, {
3500
+ /**
3501
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3502
+ */
3503
+ text?: string
3504
+ /**
3505
+ * A channel to check this post against.
3506
+ */
3507
+ channelId: string
3508
+ }, {
3509
+ /**
3510
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3511
+ */
3512
+ text?: string
3513
+ /**
3514
+ * A channel to check this post against.
3515
+ */
3516
+ channelId: string
3517
+ }, {
3518
+ /**
3519
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3520
+ */
3521
+ text?: string
3522
+ /**
3523
+ * A channel to check this post against.
3524
+ */
3525
+ channelId: string
3526
+ }]|[{
3527
+ /**
3528
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3529
+ */
3530
+ text?: string
3531
+ /**
3532
+ * A channel to check this post against.
3533
+ */
3534
+ channelId: string
3535
+ }, {
3536
+ /**
3537
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3538
+ */
3539
+ text?: string
3540
+ /**
3541
+ * A channel to check this post against.
3542
+ */
3543
+ channelId: string
3544
+ }, {
3545
+ /**
3546
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3547
+ */
3548
+ text?: string
3549
+ /**
3550
+ * A channel to check this post against.
3551
+ */
3552
+ channelId: string
3553
+ }, {
3554
+ /**
3555
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3556
+ */
3557
+ text?: string
3558
+ /**
3559
+ * A channel to check this post against.
3560
+ */
3561
+ channelId: string
3562
+ }, {
3563
+ /**
3564
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3565
+ */
3566
+ text?: string
3567
+ /**
3568
+ * A channel to check this post against.
3569
+ */
3570
+ channelId: string
3571
+ }, {
3572
+ /**
3573
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3574
+ */
3575
+ text?: string
3576
+ /**
3577
+ * A channel to check this post against.
3578
+ */
3579
+ channelId: string
3580
+ }]|[{
3581
+ /**
3582
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3583
+ */
3584
+ text?: string
3585
+ /**
3586
+ * A channel to check this post against.
3587
+ */
3588
+ channelId: string
3589
+ }, {
3590
+ /**
3591
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3592
+ */
3593
+ text?: string
3594
+ /**
3595
+ * A channel to check this post against.
3596
+ */
3597
+ channelId: string
3598
+ }, {
3599
+ /**
3600
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3601
+ */
3602
+ text?: string
3603
+ /**
3604
+ * A channel to check this post against.
3605
+ */
3606
+ channelId: string
3607
+ }, {
3608
+ /**
3609
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3610
+ */
3611
+ text?: string
3612
+ /**
3613
+ * A channel to check this post against.
3614
+ */
3615
+ channelId: string
3616
+ }, {
3617
+ /**
3618
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3619
+ */
3620
+ text?: string
3621
+ /**
3622
+ * A channel to check this post against.
3623
+ */
3624
+ channelId: string
3625
+ }, {
3626
+ /**
3627
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3628
+ */
3629
+ text?: string
3630
+ /**
3631
+ * A channel to check this post against.
3632
+ */
3633
+ channelId: string
3634
+ }, {
3635
+ /**
3636
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3637
+ */
3638
+ text?: string
3639
+ /**
3640
+ * A channel to check this post against.
3641
+ */
3642
+ channelId: string
3643
+ }]|[{
3644
+ /**
3645
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3646
+ */
3647
+ text?: string
3648
+ /**
3649
+ * A channel to check this post against.
3650
+ */
3651
+ channelId: string
3652
+ }, {
3653
+ /**
3654
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3655
+ */
3656
+ text?: string
3657
+ /**
3658
+ * A channel to check this post against.
3659
+ */
3660
+ channelId: string
3661
+ }, {
3662
+ /**
3663
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3664
+ */
3665
+ text?: string
3666
+ /**
3667
+ * A channel to check this post against.
3668
+ */
3669
+ channelId: string
3670
+ }, {
3671
+ /**
3672
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3673
+ */
3674
+ text?: string
3675
+ /**
3676
+ * A channel to check this post against.
3677
+ */
3678
+ channelId: string
3679
+ }, {
3680
+ /**
3681
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3682
+ */
3683
+ text?: string
3684
+ /**
3685
+ * A channel to check this post against.
3686
+ */
3687
+ channelId: string
3688
+ }, {
3689
+ /**
3690
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3691
+ */
3692
+ text?: string
3693
+ /**
3694
+ * A channel to check this post against.
3695
+ */
3696
+ channelId: string
3697
+ }, {
3698
+ /**
3699
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3700
+ */
3701
+ text?: string
3702
+ /**
3703
+ * A channel to check this post against.
3704
+ */
3705
+ channelId: string
3706
+ }, {
3707
+ /**
3708
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3709
+ */
3710
+ text?: string
3711
+ /**
3712
+ * A channel to check this post against.
3713
+ */
3714
+ channelId: string
3715
+ }]|[{
3716
+ /**
3717
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3718
+ */
3719
+ text?: string
3720
+ /**
3721
+ * A channel to check this post against.
3722
+ */
3723
+ channelId: string
3724
+ }, {
3725
+ /**
3726
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3727
+ */
3728
+ text?: string
3729
+ /**
3730
+ * A channel to check this post against.
3731
+ */
3732
+ channelId: string
3733
+ }, {
3734
+ /**
3735
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3736
+ */
3737
+ text?: string
3738
+ /**
3739
+ * A channel to check this post against.
3740
+ */
3741
+ channelId: string
3742
+ }, {
3743
+ /**
3744
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3745
+ */
3746
+ text?: string
3747
+ /**
3748
+ * A channel to check this post against.
3749
+ */
3750
+ channelId: string
3751
+ }, {
3752
+ /**
3753
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3754
+ */
3755
+ text?: string
3756
+ /**
3757
+ * A channel to check this post against.
3758
+ */
3759
+ channelId: string
3760
+ }, {
3761
+ /**
3762
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3763
+ */
3764
+ text?: string
3765
+ /**
3766
+ * A channel to check this post against.
3767
+ */
3768
+ channelId: string
3769
+ }, {
3770
+ /**
3771
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3772
+ */
3773
+ text?: string
3774
+ /**
3775
+ * A channel to check this post against.
3776
+ */
3777
+ channelId: string
3778
+ }, {
3779
+ /**
3780
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3781
+ */
3782
+ text?: string
3783
+ /**
3784
+ * A channel to check this post against.
3785
+ */
3786
+ channelId: string
3787
+ }, {
3788
+ /**
3789
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3790
+ */
3791
+ text?: string
3792
+ /**
3793
+ * A channel to check this post against.
3794
+ */
3795
+ channelId: string
3796
+ }]|[{
3797
+ /**
3798
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3799
+ */
3800
+ text?: string
3801
+ /**
3802
+ * A channel to check this post against.
3803
+ */
3804
+ channelId: string
3805
+ }, {
3806
+ /**
3807
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3808
+ */
3809
+ text?: string
3810
+ /**
3811
+ * A channel to check this post against.
3812
+ */
3813
+ channelId: string
3814
+ }, {
3815
+ /**
3816
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3817
+ */
3818
+ text?: string
3819
+ /**
3820
+ * A channel to check this post against.
3821
+ */
3822
+ channelId: string
3823
+ }, {
3824
+ /**
3825
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3826
+ */
3827
+ text?: string
3828
+ /**
3829
+ * A channel to check this post against.
3830
+ */
3831
+ channelId: string
3832
+ }, {
3833
+ /**
3834
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3835
+ */
3836
+ text?: string
3837
+ /**
3838
+ * A channel to check this post against.
3839
+ */
3840
+ channelId: string
3841
+ }, {
3842
+ /**
3843
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3844
+ */
3845
+ text?: string
3846
+ /**
3847
+ * A channel to check this post against.
3848
+ */
3849
+ channelId: string
3850
+ }, {
3851
+ /**
3852
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3853
+ */
3854
+ text?: string
3855
+ /**
3856
+ * A channel to check this post against.
3857
+ */
3858
+ channelId: string
3859
+ }, {
3860
+ /**
3861
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3862
+ */
3863
+ text?: string
3864
+ /**
3865
+ * A channel to check this post against.
3866
+ */
3867
+ channelId: string
3868
+ }, {
3869
+ /**
3870
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3871
+ */
3872
+ text?: string
3873
+ /**
3874
+ * A channel to check this post against.
3875
+ */
3876
+ channelId: string
3877
+ }, {
3878
+ /**
3879
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3880
+ */
3881
+ text?: string
3882
+ /**
3883
+ * A channel to check this post against.
3884
+ */
3885
+ channelId: string
3886
+ }]|[{
3887
+ /**
3888
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3889
+ */
3890
+ text?: string
3891
+ /**
3892
+ * A channel to check this post against.
3893
+ */
3894
+ channelId: string
3895
+ }, {
3896
+ /**
3897
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3898
+ */
3899
+ text?: string
3900
+ /**
3901
+ * A channel to check this post against.
3902
+ */
3903
+ channelId: string
3904
+ }, {
3905
+ /**
3906
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3907
+ */
3908
+ text?: string
3909
+ /**
3910
+ * A channel to check this post against.
3911
+ */
3912
+ channelId: string
3913
+ }, {
3914
+ /**
3915
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3916
+ */
3917
+ text?: string
3918
+ /**
3919
+ * A channel to check this post against.
3920
+ */
3921
+ channelId: string
3922
+ }, {
3923
+ /**
3924
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3925
+ */
3926
+ text?: string
3927
+ /**
3928
+ * A channel to check this post against.
3929
+ */
3930
+ channelId: string
3931
+ }, {
3932
+ /**
3933
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3934
+ */
3935
+ text?: string
3936
+ /**
3937
+ * A channel to check this post against.
3938
+ */
3939
+ channelId: string
3940
+ }, {
3941
+ /**
3942
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3943
+ */
3944
+ text?: string
3945
+ /**
3946
+ * A channel to check this post against.
3947
+ */
3948
+ channelId: string
3949
+ }, {
3950
+ /**
3951
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3952
+ */
3953
+ text?: string
3954
+ /**
3955
+ * A channel to check this post against.
3956
+ */
3957
+ channelId: string
3958
+ }, {
3959
+ /**
3960
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3961
+ */
3962
+ text?: string
3963
+ /**
3964
+ * A channel to check this post against.
3965
+ */
3966
+ channelId: string
3967
+ }, {
3968
+ /**
3969
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3970
+ */
3971
+ text?: string
3972
+ /**
3973
+ * A channel to check this post against.
3974
+ */
3975
+ channelId: string
3976
+ }, {
3977
+ /**
3978
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3979
+ */
3980
+ text?: string
3981
+ /**
3982
+ * A channel to check this post against.
3983
+ */
3984
+ channelId: string
3985
+ }]|[{
3986
+ /**
3987
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3988
+ */
3989
+ text?: string
3990
+ /**
3991
+ * A channel to check this post against.
3992
+ */
3993
+ channelId: string
3994
+ }, {
3995
+ /**
3996
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
3997
+ */
3998
+ text?: string
3999
+ /**
4000
+ * A channel to check this post against.
4001
+ */
4002
+ channelId: string
4003
+ }, {
4004
+ /**
4005
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4006
+ */
4007
+ text?: string
4008
+ /**
4009
+ * A channel to check this post against.
4010
+ */
4011
+ channelId: string
4012
+ }, {
4013
+ /**
4014
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4015
+ */
4016
+ text?: string
4017
+ /**
4018
+ * A channel to check this post against.
4019
+ */
4020
+ channelId: string
4021
+ }, {
4022
+ /**
4023
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4024
+ */
4025
+ text?: string
4026
+ /**
4027
+ * A channel to check this post against.
4028
+ */
4029
+ channelId: string
4030
+ }, {
4031
+ /**
4032
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4033
+ */
4034
+ text?: string
4035
+ /**
4036
+ * A channel to check this post against.
4037
+ */
4038
+ channelId: string
4039
+ }, {
4040
+ /**
4041
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4042
+ */
4043
+ text?: string
4044
+ /**
4045
+ * A channel to check this post against.
4046
+ */
4047
+ channelId: string
4048
+ }, {
4049
+ /**
4050
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4051
+ */
4052
+ text?: string
4053
+ /**
4054
+ * A channel to check this post against.
4055
+ */
4056
+ channelId: string
4057
+ }, {
4058
+ /**
4059
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4060
+ */
4061
+ text?: string
4062
+ /**
4063
+ * A channel to check this post against.
4064
+ */
4065
+ channelId: string
4066
+ }, {
4067
+ /**
4068
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4069
+ */
4070
+ text?: string
4071
+ /**
4072
+ * A channel to check this post against.
4073
+ */
4074
+ channelId: string
4075
+ }, {
4076
+ /**
4077
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4078
+ */
4079
+ text?: string
4080
+ /**
4081
+ * A channel to check this post against.
4082
+ */
4083
+ channelId: string
4084
+ }, {
4085
+ /**
4086
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4087
+ */
4088
+ text?: string
4089
+ /**
4090
+ * A channel to check this post against.
4091
+ */
4092
+ channelId: string
4093
+ }]|[{
4094
+ /**
4095
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4096
+ */
4097
+ text?: string
4098
+ /**
4099
+ * A channel to check this post against.
4100
+ */
4101
+ channelId: string
4102
+ }, {
4103
+ /**
4104
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4105
+ */
4106
+ text?: string
4107
+ /**
4108
+ * A channel to check this post against.
4109
+ */
4110
+ channelId: string
4111
+ }, {
4112
+ /**
4113
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4114
+ */
4115
+ text?: string
4116
+ /**
4117
+ * A channel to check this post against.
4118
+ */
4119
+ channelId: string
4120
+ }, {
4121
+ /**
4122
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4123
+ */
4124
+ text?: string
4125
+ /**
4126
+ * A channel to check this post against.
4127
+ */
4128
+ channelId: string
4129
+ }, {
4130
+ /**
4131
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4132
+ */
4133
+ text?: string
4134
+ /**
4135
+ * A channel to check this post against.
4136
+ */
4137
+ channelId: string
4138
+ }, {
4139
+ /**
4140
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4141
+ */
4142
+ text?: string
4143
+ /**
4144
+ * A channel to check this post against.
4145
+ */
4146
+ channelId: string
4147
+ }, {
4148
+ /**
4149
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4150
+ */
4151
+ text?: string
4152
+ /**
4153
+ * A channel to check this post against.
4154
+ */
4155
+ channelId: string
4156
+ }, {
4157
+ /**
4158
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4159
+ */
4160
+ text?: string
4161
+ /**
4162
+ * A channel to check this post against.
4163
+ */
4164
+ channelId: string
4165
+ }, {
4166
+ /**
4167
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4168
+ */
4169
+ text?: string
4170
+ /**
4171
+ * A channel to check this post against.
4172
+ */
4173
+ channelId: string
4174
+ }, {
4175
+ /**
4176
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4177
+ */
4178
+ text?: string
4179
+ /**
4180
+ * A channel to check this post against.
4181
+ */
4182
+ channelId: string
4183
+ }, {
4184
+ /**
4185
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4186
+ */
4187
+ text?: string
4188
+ /**
4189
+ * A channel to check this post against.
4190
+ */
4191
+ channelId: string
4192
+ }, {
4193
+ /**
4194
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4195
+ */
4196
+ text?: string
4197
+ /**
4198
+ * A channel to check this post against.
4199
+ */
4200
+ channelId: string
4201
+ }, {
4202
+ /**
4203
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4204
+ */
4205
+ text?: string
4206
+ /**
4207
+ * A channel to check this post against.
4208
+ */
4209
+ channelId: string
4210
+ }]|[{
4211
+ /**
4212
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4213
+ */
4214
+ text?: string
4215
+ /**
4216
+ * A channel to check this post against.
4217
+ */
4218
+ channelId: string
4219
+ }, {
4220
+ /**
4221
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4222
+ */
4223
+ text?: string
4224
+ /**
4225
+ * A channel to check this post against.
4226
+ */
4227
+ channelId: string
4228
+ }, {
4229
+ /**
4230
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4231
+ */
4232
+ text?: string
4233
+ /**
4234
+ * A channel to check this post against.
4235
+ */
4236
+ channelId: string
4237
+ }, {
4238
+ /**
4239
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4240
+ */
4241
+ text?: string
4242
+ /**
4243
+ * A channel to check this post against.
4244
+ */
4245
+ channelId: string
4246
+ }, {
4247
+ /**
4248
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4249
+ */
4250
+ text?: string
4251
+ /**
4252
+ * A channel to check this post against.
4253
+ */
4254
+ channelId: string
4255
+ }, {
4256
+ /**
4257
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4258
+ */
4259
+ text?: string
4260
+ /**
4261
+ * A channel to check this post against.
4262
+ */
4263
+ channelId: string
4264
+ }, {
4265
+ /**
4266
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4267
+ */
4268
+ text?: string
4269
+ /**
4270
+ * A channel to check this post against.
4271
+ */
4272
+ channelId: string
4273
+ }, {
4274
+ /**
4275
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4276
+ */
4277
+ text?: string
4278
+ /**
4279
+ * A channel to check this post against.
4280
+ */
4281
+ channelId: string
4282
+ }, {
4283
+ /**
4284
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4285
+ */
4286
+ text?: string
4287
+ /**
4288
+ * A channel to check this post against.
4289
+ */
4290
+ channelId: string
4291
+ }, {
4292
+ /**
4293
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4294
+ */
4295
+ text?: string
4296
+ /**
4297
+ * A channel to check this post against.
4298
+ */
4299
+ channelId: string
4300
+ }, {
4301
+ /**
4302
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4303
+ */
4304
+ text?: string
4305
+ /**
4306
+ * A channel to check this post against.
4307
+ */
4308
+ channelId: string
4309
+ }, {
4310
+ /**
4311
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4312
+ */
4313
+ text?: string
4314
+ /**
4315
+ * A channel to check this post against.
4316
+ */
4317
+ channelId: string
4318
+ }, {
4319
+ /**
4320
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4321
+ */
4322
+ text?: string
4323
+ /**
4324
+ * A channel to check this post against.
4325
+ */
4326
+ channelId: string
4327
+ }, {
4328
+ /**
4329
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4330
+ */
4331
+ text?: string
4332
+ /**
4333
+ * A channel to check this post against.
4334
+ */
4335
+ channelId: string
4336
+ }]|[{
4337
+ /**
4338
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4339
+ */
4340
+ text?: string
4341
+ /**
4342
+ * A channel to check this post against.
4343
+ */
4344
+ channelId: string
4345
+ }, {
4346
+ /**
4347
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4348
+ */
4349
+ text?: string
4350
+ /**
4351
+ * A channel to check this post against.
4352
+ */
4353
+ channelId: string
4354
+ }, {
4355
+ /**
4356
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4357
+ */
4358
+ text?: string
4359
+ /**
4360
+ * A channel to check this post against.
4361
+ */
4362
+ channelId: string
4363
+ }, {
4364
+ /**
4365
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4366
+ */
4367
+ text?: string
4368
+ /**
4369
+ * A channel to check this post against.
4370
+ */
4371
+ channelId: string
4372
+ }, {
4373
+ /**
4374
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4375
+ */
4376
+ text?: string
4377
+ /**
4378
+ * A channel to check this post against.
4379
+ */
4380
+ channelId: string
4381
+ }, {
4382
+ /**
4383
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4384
+ */
4385
+ text?: string
4386
+ /**
4387
+ * A channel to check this post against.
4388
+ */
4389
+ channelId: string
4390
+ }, {
4391
+ /**
4392
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4393
+ */
4394
+ text?: string
4395
+ /**
4396
+ * A channel to check this post against.
4397
+ */
4398
+ channelId: string
4399
+ }, {
4400
+ /**
4401
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4402
+ */
4403
+ text?: string
4404
+ /**
4405
+ * A channel to check this post against.
4406
+ */
4407
+ channelId: string
4408
+ }, {
4409
+ /**
4410
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4411
+ */
4412
+ text?: string
4413
+ /**
4414
+ * A channel to check this post against.
4415
+ */
4416
+ channelId: string
4417
+ }, {
4418
+ /**
4419
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4420
+ */
4421
+ text?: string
4422
+ /**
4423
+ * A channel to check this post against.
4424
+ */
4425
+ channelId: string
4426
+ }, {
4427
+ /**
4428
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4429
+ */
4430
+ text?: string
4431
+ /**
4432
+ * A channel to check this post against.
4433
+ */
4434
+ channelId: string
4435
+ }, {
4436
+ /**
4437
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4438
+ */
4439
+ text?: string
4440
+ /**
4441
+ * A channel to check this post against.
4442
+ */
4443
+ channelId: string
4444
+ }, {
4445
+ /**
4446
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4447
+ */
4448
+ text?: string
4449
+ /**
4450
+ * A channel to check this post against.
4451
+ */
4452
+ channelId: string
4453
+ }, {
4454
+ /**
4455
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4456
+ */
4457
+ text?: string
4458
+ /**
4459
+ * A channel to check this post against.
4460
+ */
4461
+ channelId: string
4462
+ }, {
4463
+ /**
4464
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4465
+ */
4466
+ text?: string
4467
+ /**
4468
+ * A channel to check this post against.
4469
+ */
4470
+ channelId: string
4471
+ }]|[{
4472
+ /**
4473
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4474
+ */
4475
+ text?: string
4476
+ /**
4477
+ * A channel to check this post against.
4478
+ */
4479
+ channelId: string
4480
+ }, {
4481
+ /**
4482
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4483
+ */
4484
+ text?: string
4485
+ /**
4486
+ * A channel to check this post against.
4487
+ */
4488
+ channelId: string
4489
+ }, {
4490
+ /**
4491
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4492
+ */
4493
+ text?: string
4494
+ /**
4495
+ * A channel to check this post against.
4496
+ */
4497
+ channelId: string
4498
+ }, {
4499
+ /**
4500
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4501
+ */
4502
+ text?: string
4503
+ /**
4504
+ * A channel to check this post against.
4505
+ */
4506
+ channelId: string
4507
+ }, {
4508
+ /**
4509
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4510
+ */
4511
+ text?: string
4512
+ /**
4513
+ * A channel to check this post against.
4514
+ */
4515
+ channelId: string
4516
+ }, {
4517
+ /**
4518
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4519
+ */
4520
+ text?: string
4521
+ /**
4522
+ * A channel to check this post against.
4523
+ */
4524
+ channelId: string
4525
+ }, {
4526
+ /**
4527
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4528
+ */
4529
+ text?: string
4530
+ /**
4531
+ * A channel to check this post against.
4532
+ */
4533
+ channelId: string
4534
+ }, {
4535
+ /**
4536
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4537
+ */
4538
+ text?: string
4539
+ /**
4540
+ * A channel to check this post against.
4541
+ */
4542
+ channelId: string
4543
+ }, {
4544
+ /**
4545
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4546
+ */
4547
+ text?: string
4548
+ /**
4549
+ * A channel to check this post against.
4550
+ */
4551
+ channelId: string
4552
+ }, {
4553
+ /**
4554
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4555
+ */
4556
+ text?: string
4557
+ /**
4558
+ * A channel to check this post against.
4559
+ */
4560
+ channelId: string
4561
+ }, {
4562
+ /**
4563
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4564
+ */
4565
+ text?: string
4566
+ /**
4567
+ * A channel to check this post against.
4568
+ */
4569
+ channelId: string
4570
+ }, {
4571
+ /**
4572
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4573
+ */
4574
+ text?: string
4575
+ /**
4576
+ * A channel to check this post against.
4577
+ */
4578
+ channelId: string
4579
+ }, {
4580
+ /**
4581
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4582
+ */
4583
+ text?: string
4584
+ /**
4585
+ * A channel to check this post against.
4586
+ */
4587
+ channelId: string
4588
+ }, {
4589
+ /**
4590
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4591
+ */
4592
+ text?: string
4593
+ /**
4594
+ * A channel to check this post against.
4595
+ */
4596
+ channelId: string
4597
+ }, {
4598
+ /**
4599
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4600
+ */
4601
+ text?: string
4602
+ /**
4603
+ * A channel to check this post against.
4604
+ */
4605
+ channelId: string
4606
+ }, {
4607
+ /**
4608
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4609
+ */
4610
+ text?: string
4611
+ /**
4612
+ * A channel to check this post against.
4613
+ */
4614
+ channelId: string
4615
+ }]|[{
4616
+ /**
4617
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4618
+ */
4619
+ text?: string
4620
+ /**
4621
+ * A channel to check this post against.
4622
+ */
4623
+ channelId: string
4624
+ }, {
4625
+ /**
4626
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4627
+ */
4628
+ text?: string
4629
+ /**
4630
+ * A channel to check this post against.
4631
+ */
4632
+ channelId: string
4633
+ }, {
4634
+ /**
4635
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4636
+ */
4637
+ text?: string
4638
+ /**
4639
+ * A channel to check this post against.
4640
+ */
4641
+ channelId: string
4642
+ }, {
4643
+ /**
4644
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4645
+ */
4646
+ text?: string
4647
+ /**
4648
+ * A channel to check this post against.
4649
+ */
4650
+ channelId: string
4651
+ }, {
4652
+ /**
4653
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4654
+ */
4655
+ text?: string
4656
+ /**
4657
+ * A channel to check this post against.
4658
+ */
4659
+ channelId: string
4660
+ }, {
4661
+ /**
4662
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4663
+ */
4664
+ text?: string
4665
+ /**
4666
+ * A channel to check this post against.
4667
+ */
4668
+ channelId: string
4669
+ }, {
4670
+ /**
4671
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4672
+ */
4673
+ text?: string
4674
+ /**
4675
+ * A channel to check this post against.
4676
+ */
4677
+ channelId: string
4678
+ }, {
4679
+ /**
4680
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4681
+ */
4682
+ text?: string
4683
+ /**
4684
+ * A channel to check this post against.
4685
+ */
4686
+ channelId: string
4687
+ }, {
4688
+ /**
4689
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4690
+ */
4691
+ text?: string
4692
+ /**
4693
+ * A channel to check this post against.
4694
+ */
4695
+ channelId: string
4696
+ }, {
4697
+ /**
4698
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4699
+ */
4700
+ text?: string
4701
+ /**
4702
+ * A channel to check this post against.
4703
+ */
4704
+ channelId: string
4705
+ }, {
4706
+ /**
4707
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4708
+ */
4709
+ text?: string
4710
+ /**
4711
+ * A channel to check this post against.
4712
+ */
4713
+ channelId: string
4714
+ }, {
4715
+ /**
4716
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4717
+ */
4718
+ text?: string
4719
+ /**
4720
+ * A channel to check this post against.
4721
+ */
4722
+ channelId: string
4723
+ }, {
4724
+ /**
4725
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4726
+ */
4727
+ text?: string
4728
+ /**
4729
+ * A channel to check this post against.
4730
+ */
4731
+ channelId: string
4732
+ }, {
4733
+ /**
4734
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4735
+ */
4736
+ text?: string
4737
+ /**
4738
+ * A channel to check this post against.
4739
+ */
4740
+ channelId: string
4741
+ }, {
4742
+ /**
4743
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4744
+ */
4745
+ text?: string
4746
+ /**
4747
+ * A channel to check this post against.
4748
+ */
4749
+ channelId: string
4750
+ }, {
4751
+ /**
4752
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4753
+ */
4754
+ text?: string
4755
+ /**
4756
+ * A channel to check this post against.
4757
+ */
4758
+ channelId: string
4759
+ }, {
4760
+ /**
4761
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4762
+ */
4763
+ text?: string
4764
+ /**
4765
+ * A channel to check this post against.
4766
+ */
4767
+ channelId: string
4768
+ }]|[{
4769
+ /**
4770
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4771
+ */
4772
+ text?: string
4773
+ /**
4774
+ * A channel to check this post against.
4775
+ */
4776
+ channelId: string
4777
+ }, {
4778
+ /**
4779
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4780
+ */
4781
+ text?: string
4782
+ /**
4783
+ * A channel to check this post against.
4784
+ */
4785
+ channelId: string
4786
+ }, {
4787
+ /**
4788
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4789
+ */
4790
+ text?: string
4791
+ /**
4792
+ * A channel to check this post against.
4793
+ */
4794
+ channelId: string
4795
+ }, {
4796
+ /**
4797
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4798
+ */
4799
+ text?: string
4800
+ /**
4801
+ * A channel to check this post against.
4802
+ */
4803
+ channelId: string
4804
+ }, {
4805
+ /**
4806
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4807
+ */
4808
+ text?: string
4809
+ /**
4810
+ * A channel to check this post against.
4811
+ */
4812
+ channelId: string
4813
+ }, {
4814
+ /**
4815
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4816
+ */
4817
+ text?: string
4818
+ /**
4819
+ * A channel to check this post against.
4820
+ */
4821
+ channelId: string
4822
+ }, {
4823
+ /**
4824
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4825
+ */
4826
+ text?: string
4827
+ /**
4828
+ * A channel to check this post against.
4829
+ */
4830
+ channelId: string
4831
+ }, {
4832
+ /**
4833
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4834
+ */
4835
+ text?: string
4836
+ /**
4837
+ * A channel to check this post against.
4838
+ */
4839
+ channelId: string
4840
+ }, {
4841
+ /**
4842
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4843
+ */
4844
+ text?: string
4845
+ /**
4846
+ * A channel to check this post against.
4847
+ */
4848
+ channelId: string
4849
+ }, {
4850
+ /**
4851
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4852
+ */
4853
+ text?: string
4854
+ /**
4855
+ * A channel to check this post against.
4856
+ */
4857
+ channelId: string
4858
+ }, {
4859
+ /**
4860
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4861
+ */
4862
+ text?: string
4863
+ /**
4864
+ * A channel to check this post against.
4865
+ */
4866
+ channelId: string
4867
+ }, {
4868
+ /**
4869
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4870
+ */
4871
+ text?: string
4872
+ /**
4873
+ * A channel to check this post against.
4874
+ */
4875
+ channelId: string
4876
+ }, {
4877
+ /**
4878
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4879
+ */
4880
+ text?: string
4881
+ /**
4882
+ * A channel to check this post against.
4883
+ */
4884
+ channelId: string
4885
+ }, {
4886
+ /**
4887
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4888
+ */
4889
+ text?: string
4890
+ /**
4891
+ * A channel to check this post against.
4892
+ */
4893
+ channelId: string
4894
+ }, {
4895
+ /**
4896
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4897
+ */
4898
+ text?: string
4899
+ /**
4900
+ * A channel to check this post against.
4901
+ */
4902
+ channelId: string
4903
+ }, {
4904
+ /**
4905
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4906
+ */
4907
+ text?: string
4908
+ /**
4909
+ * A channel to check this post against.
4910
+ */
4911
+ channelId: string
4912
+ }, {
4913
+ /**
4914
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4915
+ */
4916
+ text?: string
4917
+ /**
4918
+ * A channel to check this post against.
4919
+ */
4920
+ channelId: string
4921
+ }, {
4922
+ /**
4923
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4924
+ */
4925
+ text?: string
4926
+ /**
4927
+ * A channel to check this post against.
4928
+ */
4929
+ channelId: string
4930
+ }]|[{
4931
+ /**
4932
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4933
+ */
4934
+ text?: string
4935
+ /**
4936
+ * A channel to check this post against.
4937
+ */
4938
+ channelId: string
4939
+ }, {
4940
+ /**
4941
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4942
+ */
4943
+ text?: string
4944
+ /**
4945
+ * A channel to check this post against.
4946
+ */
4947
+ channelId: string
4948
+ }, {
4949
+ /**
4950
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4951
+ */
4952
+ text?: string
4953
+ /**
4954
+ * A channel to check this post against.
4955
+ */
4956
+ channelId: string
4957
+ }, {
4958
+ /**
4959
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4960
+ */
4961
+ text?: string
4962
+ /**
4963
+ * A channel to check this post against.
4964
+ */
4965
+ channelId: string
4966
+ }, {
4967
+ /**
4968
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4969
+ */
4970
+ text?: string
4971
+ /**
4972
+ * A channel to check this post against.
4973
+ */
4974
+ channelId: string
4975
+ }, {
4976
+ /**
4977
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4978
+ */
4979
+ text?: string
4980
+ /**
4981
+ * A channel to check this post against.
4982
+ */
4983
+ channelId: string
4984
+ }, {
4985
+ /**
4986
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4987
+ */
4988
+ text?: string
4989
+ /**
4990
+ * A channel to check this post against.
4991
+ */
4992
+ channelId: string
4993
+ }, {
4994
+ /**
4995
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
4996
+ */
4997
+ text?: string
4998
+ /**
4999
+ * A channel to check this post against.
5000
+ */
5001
+ channelId: string
5002
+ }, {
5003
+ /**
5004
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
5005
+ */
5006
+ text?: string
5007
+ /**
5008
+ * A channel to check this post against.
5009
+ */
5010
+ channelId: string
5011
+ }, {
5012
+ /**
5013
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
5014
+ */
5015
+ text?: string
5016
+ /**
5017
+ * A channel to check this post against.
5018
+ */
5019
+ channelId: string
5020
+ }, {
5021
+ /**
5022
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2290
5023
  */
2291
- id: string
5024
+ text?: string
2292
5025
  /**
2293
- * The per-channel variant of the text that will be published.
5026
+ * A channel to check this post against.
2294
5027
  */
2295
- text: string
5028
+ channelId: string
5029
+ }, {
2296
5030
  /**
2297
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
5031
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2298
5032
  */
2299
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
5033
+ text?: string
2300
5034
  /**
2301
- * The post being published.
5035
+ * A channel to check this post against.
2302
5036
  */
2303
- postId: string
5037
+ channelId: string
5038
+ }, {
2304
5039
  /**
2305
- * How many dispatch attempts have been made.
5040
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2306
5041
  */
2307
- attempts: number
5042
+ text?: string
2308
5043
  /**
2309
- * The channel it is published to.
5044
+ * A channel to check this post against.
2310
5045
  */
2311
5046
  channelId: string
5047
+ }, {
2312
5048
  /**
2313
- * ISO-8601 creation time.
5049
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2314
5050
  */
2315
- createdAt: string
5051
+ text?: string
2316
5052
  /**
2317
- * The most recent failure, if any.
5053
+ * A channel to check this post against.
2318
5054
  */
2319
- lastError: (string | null)
5055
+ channelId: string
5056
+ }, {
2320
5057
  /**
2321
- * ISO-8601 time of the last change.
5058
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2322
5059
  */
2323
- updatedAt: string
5060
+ text?: string
2324
5061
  /**
2325
- * The network's id for the published post, once known.
5062
+ * A channel to check this post against.
2326
5063
  */
2327
- externalId: (string | null)
5064
+ channelId: string
5065
+ }, {
2328
5066
  /**
2329
- * URL of the published post, once known.
5067
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2330
5068
  */
2331
- externalUrl: (string | null)
5069
+ text?: string
2332
5070
  /**
2333
- * ISO-8601 time it was confirmed published.
5071
+ * A channel to check this post against.
2334
5072
  */
2335
- publishedAt: (string | null)
5073
+ channelId: string
5074
+ }, {
2336
5075
  /**
2337
- * ISO-8601 time the publication is due.
5076
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2338
5077
  */
2339
- scheduledAt: string
5078
+ text?: string
2340
5079
  /**
2341
- * How many reminders have been sent for this publication.
5080
+ * A channel to check this post against.
2342
5081
  */
2343
- reminderCount: number
5082
+ channelId: string
5083
+ }, {
2344
5084
  /**
2345
- * The key that makes a retry the same publication.
5085
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2346
5086
  */
2347
- idempotencyKey: string
5087
+ text?: string
2348
5088
  /**
2349
- * ISO-8601 time the most recent reminder went out, or null if none has.
5089
+ * A channel to check this post against.
2350
5090
  */
2351
- reminderSentAt: (string | null)
2352
- }
2353
-
2354
- export interface ContentPublicationsRemindInput {
5091
+ channelId: string
5092
+ }, {
2355
5093
  /**
2356
- * The publication id returned by content_publications_schedule.
5094
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2357
5095
  */
2358
- id: string
2359
- }
2360
-
2361
- export interface ContentPublicationsRemindOutput {
5096
+ text?: string
2362
5097
  /**
2363
- * Publication id.
5098
+ * A channel to check this post against.
2364
5099
  */
2365
- id: string
5100
+ channelId: string
5101
+ }]|[{
2366
5102
  /**
2367
- * The per-channel variant of the text that will be published.
5103
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2368
5104
  */
2369
- text: string
5105
+ text?: string
2370
5106
  /**
2371
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
5107
+ * A channel to check this post against.
2372
5108
  */
2373
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
5109
+ channelId: string
5110
+ }, {
2374
5111
  /**
2375
- * The post being published.
5112
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2376
5113
  */
2377
- postId: string
5114
+ text?: string
2378
5115
  /**
2379
- * How many dispatch attempts have been made.
5116
+ * A channel to check this post against.
2380
5117
  */
2381
- attempts: number
5118
+ channelId: string
5119
+ }, {
2382
5120
  /**
2383
- * The channel it is published to.
5121
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
5122
+ */
5123
+ text?: string
5124
+ /**
5125
+ * A channel to check this post against.
2384
5126
  */
2385
5127
  channelId: string
5128
+ }, {
2386
5129
  /**
2387
- * ISO-8601 creation time.
5130
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2388
5131
  */
2389
- createdAt: string
5132
+ text?: string
2390
5133
  /**
2391
- * The most recent failure, if any.
5134
+ * A channel to check this post against.
2392
5135
  */
2393
- lastError: (string | null)
5136
+ channelId: string
5137
+ }, {
2394
5138
  /**
2395
- * ISO-8601 time of the last change.
5139
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2396
5140
  */
2397
- updatedAt: string
5141
+ text?: string
2398
5142
  /**
2399
- * The network's id for the published post, once known.
5143
+ * A channel to check this post against.
2400
5144
  */
2401
- externalId: (string | null)
5145
+ channelId: string
5146
+ }, {
2402
5147
  /**
2403
- * URL of the published post, once known.
5148
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2404
5149
  */
2405
- externalUrl: (string | null)
5150
+ text?: string
2406
5151
  /**
2407
- * ISO-8601 time it was confirmed published.
5152
+ * A channel to check this post against.
2408
5153
  */
2409
- publishedAt: (string | null)
5154
+ channelId: string
5155
+ }, {
2410
5156
  /**
2411
- * ISO-8601 time the publication is due.
5157
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2412
5158
  */
2413
- scheduledAt: string
5159
+ text?: string
2414
5160
  /**
2415
- * How many reminders have been sent for this publication.
5161
+ * A channel to check this post against.
2416
5162
  */
2417
- reminderCount: number
5163
+ channelId: string
5164
+ }, {
2418
5165
  /**
2419
- * The key that makes a retry the same publication.
5166
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2420
5167
  */
2421
- idempotencyKey: string
5168
+ text?: string
2422
5169
  /**
2423
- * ISO-8601 time the most recent reminder went out, or null if none has.
5170
+ * A channel to check this post against.
2424
5171
  */
2425
- reminderSentAt: (string | null)
2426
- }
2427
-
2428
- export interface ContentPublicationsRescheduleInput {
5172
+ channelId: string
5173
+ }, {
2429
5174
  /**
2430
- * The publication id returned by content_publications_schedule.
5175
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2431
5176
  */
2432
- id: string
5177
+ text?: string
2433
5178
  /**
2434
- * New ISO-8601 time. The publication returns to the queue.
5179
+ * A channel to check this post against.
2435
5180
  */
2436
- scheduledAt: string
2437
- }
2438
-
2439
- export interface ContentPublicationsRescheduleOutput {
5181
+ channelId: string
5182
+ }, {
2440
5183
  /**
2441
- * Publication id.
5184
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2442
5185
  */
2443
- id: string
5186
+ text?: string
2444
5187
  /**
2445
- * The per-channel variant of the text that will be published.
5188
+ * A channel to check this post against.
2446
5189
  */
2447
- text: string
5190
+ channelId: string
5191
+ }, {
2448
5192
  /**
2449
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
5193
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2450
5194
  */
2451
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
5195
+ text?: string
2452
5196
  /**
2453
- * The post being published.
5197
+ * A channel to check this post against.
2454
5198
  */
2455
- postId: string
5199
+ channelId: string
5200
+ }, {
2456
5201
  /**
2457
- * How many dispatch attempts have been made.
5202
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2458
5203
  */
2459
- attempts: number
5204
+ text?: string
2460
5205
  /**
2461
- * The channel it is published to.
5206
+ * A channel to check this post against.
2462
5207
  */
2463
5208
  channelId: string
5209
+ }, {
2464
5210
  /**
2465
- * ISO-8601 creation time.
5211
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2466
5212
  */
2467
- createdAt: string
5213
+ text?: string
2468
5214
  /**
2469
- * The most recent failure, if any.
5215
+ * A channel to check this post against.
2470
5216
  */
2471
- lastError: (string | null)
5217
+ channelId: string
5218
+ }, {
2472
5219
  /**
2473
- * ISO-8601 time of the last change.
5220
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2474
5221
  */
2475
- updatedAt: string
5222
+ text?: string
2476
5223
  /**
2477
- * The network's id for the published post, once known.
5224
+ * A channel to check this post against.
2478
5225
  */
2479
- externalId: (string | null)
5226
+ channelId: string
5227
+ }, {
2480
5228
  /**
2481
- * URL of the published post, once known.
5229
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2482
5230
  */
2483
- externalUrl: (string | null)
5231
+ text?: string
2484
5232
  /**
2485
- * ISO-8601 time it was confirmed published.
5233
+ * A channel to check this post against.
2486
5234
  */
2487
- publishedAt: (string | null)
5235
+ channelId: string
5236
+ }, {
2488
5237
  /**
2489
- * ISO-8601 time the publication is due.
5238
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2490
5239
  */
2491
- scheduledAt: string
5240
+ text?: string
2492
5241
  /**
2493
- * How many reminders have been sent for this publication.
5242
+ * A channel to check this post against.
2494
5243
  */
2495
- reminderCount: number
5244
+ channelId: string
5245
+ }, {
2496
5246
  /**
2497
- * The key that makes a retry the same publication.
5247
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2498
5248
  */
2499
- idempotencyKey: string
5249
+ text?: string
2500
5250
  /**
2501
- * ISO-8601 time the most recent reminder went out, or null if none has.
5251
+ * A channel to check this post against.
2502
5252
  */
2503
- reminderSentAt: (string | null)
2504
- }
2505
-
2506
- export interface ContentPublicationsScheduleInput {
5253
+ channelId: string
5254
+ }, {
2507
5255
  /**
2508
- * Per-channel variant of the text. Omit to publish the post text as written.
5256
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2509
5257
  */
2510
5258
  text?: string
2511
5259
  /**
2512
- * The post to publish. It must already be approved — an unapproved text never publishes.
5260
+ * A channel to check this post against.
2513
5261
  */
2514
- postId: string
5262
+ channelId: string
5263
+ }, {
2515
5264
  /**
2516
- * The channel to publish to. Get its character limit from content_channels_get first.
5265
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
5266
+ */
5267
+ text?: string
5268
+ /**
5269
+ * A channel to check this post against.
2517
5270
  */
2518
5271
  channelId: string
5272
+ }, {
2519
5273
  /**
2520
- * ISO-8601 time to publish. In the past means "as soon as the next tick runs".
5274
+ * The per-channel variant you intend to schedule. Omit to check the post text as written.
2521
5275
  */
2522
- scheduledAt: string
5276
+ text?: string
2523
5277
  /**
2524
- * Your own key for this publishing intent, unique within the product. Resending the same key returns the SAME publication instead of creating a second one — a duplicate in a client feed is the worst defect this product can ship. Omit it and one is derived from post, channel and time.
5278
+ * A channel to check this post against.
2525
5279
  */
2526
- idempotencyKey?: string
5280
+ channelId: string
5281
+ }]
5282
+ /**
5283
+ * The slot you intend to use, ISO-8601. Only the daily ceiling depends on it; omit for "now".
5284
+ */
5285
+ scheduledAt?: string
2527
5286
  }
2528
5287
 
2529
- export interface ContentPublicationsScheduleOutput {
5288
+ export interface ContentPublicationsValidateOutput {
2530
5289
  /**
2531
- * Publication id.
5290
+ * The post that was checked.
2532
5291
  */
2533
- id: string
5292
+ postId: string
2534
5293
  /**
2535
- * The per-channel variant of the text that will be published.
5294
+ * One result per requested channel, in the order they were given.
5295
+ */
5296
+ channels: {
5297
+ /**
5298
+ * The exact text that would be published to this channel.
2536
5299
  */
2537
5300
  text: string
2538
5301
  /**
2539
- * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
5302
+ * Everything wrong, all at once. Any entry with severity "error" means scheduling this would be refused there is no separate flag to disagree with the list.
2540
5303
  */
2541
- state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
5304
+ issues: {
2542
5305
  /**
2543
- * The post being published.
5306
+ * Stable machine code: text_empty, text_too_long, too_many_media, link_not_supported, media_missing, media_not_ready, media_not_supported, cost_unknown, daily_ceiling_exceeded.
2544
5307
  */
2545
- postId: string
5308
+ code: string
2546
5309
  /**
2547
- * How many dispatch attempts have been made.
5310
+ * Which input the issue is about, when it is about one.
2548
5311
  */
2549
- attempts: number
5312
+ field?: string
2550
5313
  /**
2551
- * The channel it is published to.
5314
+ * What is wrong, in a sentence you can show a person.
2552
5315
  */
2553
- channelId: string
5316
+ message: string
2554
5317
  /**
2555
- * ISO-8601 creation time.
5318
+ * `error` means scheduling would be refused or the publication would not go out. `warning` is advisory.
2556
5319
  */
2557
- createdAt: string
5320
+ severity: ("error" | "warning")
5321
+ }[]
2558
5322
  /**
2559
- * The most recent failure, if any.
5323
+ * The daily ceiling that was checked, or null when nothing knows one.
2560
5324
  */
2561
- lastError: (string | null)
5325
+ ceiling: ({
2562
5326
  /**
2563
- * ISO-8601 time of the last change.
5327
+ * How many publications this channel already has in that day, queued or done.
2564
5328
  */
2565
- updatedAt: string
5329
+ used: number
2566
5330
  /**
2567
- * The network's id for the published post, once known.
5331
+ * Published posts this channel allows per day, or null when no figure is known.
2568
5332
  */
2569
- externalId: (string | null)
5333
+ limit: (number | null)
2570
5334
  /**
2571
- * URL of the published post, once known.
5335
+ * Where the limit came from: `channel` an operator override, `adapter` a live figure from the network, `catalog` the built-in constant (INV-053).
2572
5336
  */
2573
- externalUrl: (string | null)
5337
+ source: ("channel" | "adapter" | "catalog")
5338
+ } | null)
2574
5339
  /**
2575
- * ISO-8601 time it was confirmed published.
5340
+ * What this publication would cost in USD. On X a post carrying a link costs 13x a plain one ($0.20 against $0.015). Null means the cost cannot be computed, which blocks publishing.
2576
5341
  */
2577
- publishedAt: (string | null)
5342
+ costUsd: (number | null)
2578
5343
  /**
2579
- * ISO-8601 time the publication is due.
5344
+ * The network behind that channel.
2580
5345
  */
2581
- scheduledAt: string
5346
+ network: string
2582
5347
  /**
2583
- * How many reminders have been sent for this publication.
5348
+ * The channel this result is for.
2584
5349
  */
2585
- reminderCount: number
5350
+ channelId: string
2586
5351
  /**
2587
- * The key that makes a retry the same publication.
5352
+ * Which rate produced costUsd: "plain", "link" or "free".
2588
5353
  */
2589
- idempotencyKey: string
5354
+ costBasis: (string | null)
2590
5355
  /**
2591
- * ISO-8601 time the most recent reminder went out, or null if none has.
5356
+ * The channel as a person sees it.
2592
5357
  */
2593
- reminderSentAt: (string | null)
5358
+ displayName: string
5359
+ }[]
2594
5360
  }
2595
5361
 
2596
5362
  export interface DeploymentAlertCreateInput {
@@ -2852,6 +5618,7 @@ memory?: string
2852
5618
  }
2853
5619
  }
2854
5620
  updatedAt: string
5621
+ autoDeploy?: boolean
2855
5622
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
2856
5623
  idleMinutes: number
2857
5624
  scaleToZero: boolean
@@ -3814,7 +6581,7 @@ baseEnvironmentId: (string | null)
3814
6581
  }
3815
6582
 
3816
6583
  export interface DeploymentEventsListByEnvironmentInput {
3817
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
6584
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted" | "managed-service.port-leak-healed")
3818
6585
  limit?: number
3819
6586
  since?: string
3820
6587
  until?: string
@@ -3823,7 +6590,7 @@ environmentId: string
3823
6590
 
3824
6591
  export type DeploymentEventsListByEnvironmentOutput = {
3825
6592
  id: string
3826
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
6593
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted" | "managed-service.port-leak-healed")
3827
6594
  payload: {
3828
6595
  [k: string]: unknown
3829
6596
  }
@@ -3836,7 +6603,7 @@ environmentId: (string | null)
3836
6603
  }[]
3837
6604
 
3838
6605
  export interface DeploymentEventsListByServiceInput {
3839
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
6606
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted" | "managed-service.port-leak-healed")
3840
6607
  limit?: number
3841
6608
  since?: string
3842
6609
  until?: string
@@ -3846,7 +6613,7 @@ deploymentId?: string
3846
6613
 
3847
6614
  export type DeploymentEventsListByServiceOutput = {
3848
6615
  id: string
3849
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
6616
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted" | "managed-service.port-leak-healed")
3850
6617
  payload: {
3851
6618
  [k: string]: unknown
3852
6619
  }
@@ -4410,6 +7177,7 @@ memory?: string
4410
7177
  }
4411
7178
  }
4412
7179
  updatedAt: string
7180
+ autoDeploy?: boolean
4413
7181
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
4414
7182
  idleMinutes: number
4415
7183
  scaleToZero: boolean
@@ -4516,6 +7284,7 @@ memory?: string
4516
7284
  }
4517
7285
  }
4518
7286
  updatedAt: string
7287
+ autoDeploy?: boolean
4519
7288
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
4520
7289
  idleMinutes: number
4521
7290
  scaleToZero: boolean
@@ -4589,6 +7358,7 @@ memory?: string
4589
7358
  }
4590
7359
  }
4591
7360
  updatedAt: string
7361
+ autoDeploy?: boolean
4592
7362
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
4593
7363
  idleMinutes: number
4594
7364
  scaleToZero: boolean
@@ -4739,6 +7509,7 @@ memory?: string
4739
7509
  }
4740
7510
  }
4741
7511
  updatedAt: string
7512
+ autoDeploy?: boolean
4742
7513
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
4743
7514
  idleMinutes: number
4744
7515
  scaleToZero: boolean
@@ -4807,6 +7578,10 @@ cpu?: string
4807
7578
  memory?: string
4808
7579
  }
4809
7580
  }
7581
+ /**
7582
+ * Whether a push to this service's repo+branch queues a deploy. Default true. Turning it off suppresses push-triggered deploys only — manual and API-triggered deploys still work. Applies to git and static sources alike; the UI toggle is currently git-only, so a static service is switched through this field.
7583
+ */
7584
+ autoDeploy?: boolean
4810
7585
  idleMinutes?: number
4811
7586
  scaleToZero?: boolean
4812
7587
  containerPort?: number
@@ -4868,6 +7643,7 @@ memory?: string
4868
7643
  }
4869
7644
  }
4870
7645
  updatedAt: string
7646
+ autoDeploy?: boolean
4871
7647
  sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
4872
7648
  idleMinutes: number
4873
7649
  scaleToZero: boolean