@lessly/sdk-app 43.0.0 → 44.1.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 (47) 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-BE8VaNrU.d.cts → client.gen-DlCqQAIZ.d.cts} +1175 -1
  6. package/dist/{client.gen-BE8VaNrU.d.ts → client.gen-DlCqQAIZ.d.ts} +1175 -1
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/content/index.cjs +96 -0
  10. package/dist/content/index.cjs.map +1 -0
  11. package/dist/content/index.d.cts +76 -0
  12. package/dist/content/index.d.ts +76 -0
  13. package/dist/content/index.js +77 -0
  14. package/dist/content/index.js.map +1 -0
  15. package/dist/deployment/index.d.cts +1 -1
  16. package/dist/deployment/index.d.ts +1 -1
  17. package/dist/index.cjs +302 -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 +302 -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 +7 -2
  42. package/src/gen/bindings.gen.ts +302 -0
  43. package/src/gen/client.gen.ts +62 -0
  44. package/src/gen/content/index.ts +3 -0
  45. package/src/gen/content/queryOptions.gen.ts +119 -0
  46. package/src/gen/manifest.gen.ts +1 -1
  47. package/src/gen/types.gen.ts +1184 -0
@@ -1409,6 +1409,1190 @@ deny_all_pct: number
1409
1409
  accept_all_pct: number
1410
1410
  }
1411
1411
 
1412
+ export interface ContentChannelsGetInput {
1413
+ /**
1414
+ * The channel id returned by content_channels_list.
1415
+ */
1416
+ id: string
1417
+ }
1418
+
1419
+ export interface ContentChannelsGetOutput {
1420
+ /**
1421
+ * Channel id — pass this to content_publications_schedule.
1422
+ */
1423
+ id: string
1424
+ /**
1425
+ * Social network: linkedin, x, youtube, instagram or reddit.
1426
+ */
1427
+ network: string
1428
+ /**
1429
+ * ISO-8601 creation time.
1430
+ */
1431
+ createdAt: string
1432
+ /**
1433
+ * ISO-8601 time of the last change.
1434
+ */
1435
+ updatedAt: string
1436
+ /**
1437
+ * Human label for the channel.
1438
+ */
1439
+ displayName: string
1440
+ /**
1441
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1442
+ */
1443
+ subjectType: ("member" | "organization")
1444
+ /**
1445
+ * 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.
1446
+ */
1447
+ capabilities: {
1448
+ [k: string]: unknown
1449
+ }
1450
+ /**
1451
+ * Platform connector connection backing this channel, or null for a reminder channel that needs none. This toolkit never holds social credentials.
1452
+ */
1453
+ connectionId: (string | null)
1454
+ /**
1455
+ * 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
+ */
1457
+ deliveryMode: ("auto" | "reminder")
1458
+ }
1459
+
1460
+ export interface ContentChannelsListInput {
1461
+ /**
1462
+ * Maximum number of channels to return (1-100, default 50).
1463
+ */
1464
+ limit?: number
1465
+ /**
1466
+ * How many channels to skip, for paging.
1467
+ */
1468
+ offset?: number
1469
+ /**
1470
+ * Return only channels on this network.
1471
+ */
1472
+ network?: ("linkedin" | "x" | "youtube" | "instagram" | "reddit")
1473
+ }
1474
+
1475
+ export interface ContentChannelsListOutput {
1476
+ /**
1477
+ * Total number of matching channels, ignoring paging.
1478
+ */
1479
+ total: number
1480
+ /**
1481
+ * The page of channels, ordered by network.
1482
+ */
1483
+ channels: {
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 creation time.
1494
+ */
1495
+ createdAt: string
1496
+ /**
1497
+ * ISO-8601 time of the last change.
1498
+ */
1499
+ updatedAt: string
1500
+ /**
1501
+ * Human label for the channel.
1502
+ */
1503
+ displayName: string
1504
+ /**
1505
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1506
+ */
1507
+ subjectType: ("member" | "organization")
1508
+ /**
1509
+ * 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.
1510
+ */
1511
+ capabilities: {
1512
+ [k: string]: unknown
1513
+ }
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
+ /**
1519
+ * 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
+ */
1521
+ deliveryMode: ("auto" | "reminder")
1522
+ }[]
1523
+ }
1524
+
1525
+ export interface ContentChannelsUpdateInput {
1526
+ /**
1527
+ * The channel id returned by content_channels_list.
1528
+ */
1529
+ 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
+ }
1545
+
1546
+ export interface ContentChannelsUpdateOutput {
1547
+ /**
1548
+ * Channel id — pass this to content_publications_schedule.
1549
+ */
1550
+ id: string
1551
+ /**
1552
+ * Social network: linkedin, x, youtube, instagram or reddit.
1553
+ */
1554
+ network: string
1555
+ /**
1556
+ * ISO-8601 creation time.
1557
+ */
1558
+ createdAt: string
1559
+ /**
1560
+ * ISO-8601 time of the last change.
1561
+ */
1562
+ updatedAt: string
1563
+ /**
1564
+ * Human label for the channel.
1565
+ */
1566
+ displayName: string
1567
+ /**
1568
+ * Who publishes: member (a personal account) or organization (a company page). Phase 1 channels are all member accounts.
1569
+ */
1570
+ subjectType: ("member" | "organization")
1571
+ /**
1572
+ * 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.
1573
+ */
1574
+ capabilities: {
1575
+ [k: string]: unknown
1576
+ }
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
+ /**
1582
+ * 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
+ */
1584
+ deliveryMode: ("auto" | "reminder")
1585
+ }
1586
+
1587
+ export interface ContentPostsApproveInput {
1588
+ /**
1589
+ * The post id returned by content_posts_create.
1590
+ */
1591
+ id: string
1592
+ }
1593
+
1594
+ export interface ContentPostsApproveOutput {
1595
+ /**
1596
+ * Post id.
1597
+ */
1598
+ id: string
1599
+ /**
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.
1609
+ */
1610
+ author: string
1611
+ /**
1612
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1613
+ */
1614
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1615
+ /**
1616
+ * ISO-8601 creation time.
1617
+ */
1618
+ createdAt: string
1619
+ /**
1620
+ * ISO-8601 time of the last change.
1621
+ */
1622
+ updatedAt: string
1623
+ /**
1624
+ * Version number of the current text.
1625
+ */
1626
+ currentVersion: number
1627
+ /**
1628
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1629
+ */
1630
+ approvedVersion: (number | null)
1631
+ }
1632
+
1633
+ export interface ContentPostsCreateInput {
1634
+ /**
1635
+ * The post text, channel-independent. Per-channel variants come later, at publish time.
1636
+ */
1637
+ text: string
1638
+ /**
1639
+ * Media references attached to the post, in display order. Opaque strings — the toolkit does not upload or resolve them.
1640
+ *
1641
+ * @maxItems 20
1642
+ */
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]
1644
+ }
1645
+
1646
+ export interface ContentPostsCreateOutput {
1647
+ /**
1648
+ * Post id.
1649
+ */
1650
+ id: string
1651
+ /**
1652
+ * The current text of the post.
1653
+ */
1654
+ text: string
1655
+ /**
1656
+ * Media references attached to the current version.
1657
+ */
1658
+ media: string[]
1659
+ /**
1660
+ * Identity id of whoever composed the post.
1661
+ */
1662
+ author: string
1663
+ /**
1664
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1665
+ */
1666
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1667
+ /**
1668
+ * ISO-8601 creation time.
1669
+ */
1670
+ createdAt: string
1671
+ /**
1672
+ * ISO-8601 time of the last change.
1673
+ */
1674
+ updatedAt: string
1675
+ /**
1676
+ * Version number of the current text.
1677
+ */
1678
+ currentVersion: number
1679
+ /**
1680
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1681
+ */
1682
+ approvedVersion: (number | null)
1683
+ }
1684
+
1685
+ export interface ContentPostsGetInput {
1686
+ /**
1687
+ * The post id returned by content_posts_create.
1688
+ */
1689
+ id: string
1690
+ }
1691
+
1692
+ export interface ContentPostsGetOutput {
1693
+ /**
1694
+ * Post id.
1695
+ */
1696
+ id: string
1697
+ /**
1698
+ * The current text of the post.
1699
+ */
1700
+ text: string
1701
+ /**
1702
+ * Media references attached to the current version.
1703
+ */
1704
+ media: string[]
1705
+ /**
1706
+ * Identity id of whoever composed the post.
1707
+ */
1708
+ author: string
1709
+ /**
1710
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1711
+ */
1712
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1713
+ /**
1714
+ * ISO-8601 creation time.
1715
+ */
1716
+ createdAt: string
1717
+ /**
1718
+ * ISO-8601 time of the last change.
1719
+ */
1720
+ updatedAt: string
1721
+ /**
1722
+ * Version number of the current text.
1723
+ */
1724
+ currentVersion: number
1725
+ /**
1726
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1727
+ */
1728
+ approvedVersion: (number | null)
1729
+ }
1730
+
1731
+ export interface ContentPostsListInput {
1732
+ /**
1733
+ * Maximum number of posts to return (1-100, default 50).
1734
+ */
1735
+ limit?: number
1736
+ /**
1737
+ * How many posts to skip, for paging.
1738
+ */
1739
+ offset?: number
1740
+ /**
1741
+ * Return only posts in this status.
1742
+ */
1743
+ status?: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1744
+ }
1745
+
1746
+ export interface ContentPostsListOutput {
1747
+ /**
1748
+ * The page of posts, newest first.
1749
+ */
1750
+ posts: {
1751
+ /**
1752
+ * Post id.
1753
+ */
1754
+ id: string
1755
+ /**
1756
+ * The current text of the post.
1757
+ */
1758
+ text: string
1759
+ /**
1760
+ * Media references attached to the current version.
1761
+ */
1762
+ media: string[]
1763
+ /**
1764
+ * Identity id of whoever composed the post.
1765
+ */
1766
+ author: string
1767
+ /**
1768
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1769
+ */
1770
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1771
+ /**
1772
+ * ISO-8601 creation time.
1773
+ */
1774
+ createdAt: string
1775
+ /**
1776
+ * ISO-8601 time of the last change.
1777
+ */
1778
+ updatedAt: string
1779
+ /**
1780
+ * Version number of the current text.
1781
+ */
1782
+ currentVersion: number
1783
+ /**
1784
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1785
+ */
1786
+ approvedVersion: (number | null)
1787
+ }[]
1788
+ /**
1789
+ * Total number of matching posts, ignoring paging.
1790
+ */
1791
+ total: number
1792
+ }
1793
+
1794
+ export interface ContentPostsSubmitInput {
1795
+ /**
1796
+ * The post id returned by content_posts_create.
1797
+ */
1798
+ id: string
1799
+ }
1800
+
1801
+ export interface ContentPostsSubmitOutput {
1802
+ /**
1803
+ * Post id.
1804
+ */
1805
+ id: string
1806
+ /**
1807
+ * The current text of the post.
1808
+ */
1809
+ text: string
1810
+ /**
1811
+ * Media references attached to the current version.
1812
+ */
1813
+ media: string[]
1814
+ /**
1815
+ * Identity id of whoever composed the post.
1816
+ */
1817
+ author: string
1818
+ /**
1819
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1820
+ */
1821
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1822
+ /**
1823
+ * ISO-8601 creation time.
1824
+ */
1825
+ createdAt: string
1826
+ /**
1827
+ * ISO-8601 time of the last change.
1828
+ */
1829
+ updatedAt: string
1830
+ /**
1831
+ * Version number of the current text.
1832
+ */
1833
+ currentVersion: number
1834
+ /**
1835
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1836
+ */
1837
+ approvedVersion: (number | null)
1838
+ }
1839
+
1840
+ export interface ContentPostsUpdateInput {
1841
+ /**
1842
+ * The post id returned by content_posts_create.
1843
+ */
1844
+ id: string
1845
+ /**
1846
+ * Replacement text. Omit to keep the current text.
1847
+ */
1848
+ text?: string
1849
+ /**
1850
+ * Replacement media list (replaces, never merges). Omit to keep the current media.
1851
+ *
1852
+ * @maxItems 20
1853
+ */
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]
1855
+ }
1856
+
1857
+ export interface ContentPostsUpdateOutput {
1858
+ /**
1859
+ * Post id.
1860
+ */
1861
+ id: string
1862
+ /**
1863
+ * The current text of the post.
1864
+ */
1865
+ text: string
1866
+ /**
1867
+ * Media references attached to the current version.
1868
+ */
1869
+ media: string[]
1870
+ /**
1871
+ * Identity id of whoever composed the post.
1872
+ */
1873
+ author: string
1874
+ /**
1875
+ * Post lifecycle status: draft (being written) -> pending_approval (submitted) -> approved (cleared to publish); scheduled/published/failed are set by the publishing pipeline.
1876
+ */
1877
+ status: ("draft" | "pending_approval" | "approved" | "scheduled" | "published" | "failed")
1878
+ /**
1879
+ * ISO-8601 creation time.
1880
+ */
1881
+ createdAt: string
1882
+ /**
1883
+ * ISO-8601 time of the last change.
1884
+ */
1885
+ updatedAt: string
1886
+ /**
1887
+ * Version number of the current text.
1888
+ */
1889
+ currentVersion: number
1890
+ /**
1891
+ * The version an approval binds to, or null. Cleared on every edit: approving one text never covers another.
1892
+ */
1893
+ approvedVersion: (number | null)
1894
+ }
1895
+
1896
+ export interface ContentPostsVersionsInput {
1897
+ /**
1898
+ * The post id returned by content_posts_create.
1899
+ */
1900
+ id: string
1901
+ }
1902
+
1903
+ export interface ContentPostsVersionsOutput {
1904
+ /**
1905
+ * The post these versions belong to.
1906
+ */
1907
+ postId: string
1908
+ /**
1909
+ * Every version, oldest first.
1910
+ */
1911
+ versions: {
1912
+ /**
1913
+ * The text as it stood at this version.
1914
+ */
1915
+ text: string
1916
+ /**
1917
+ * Media references as they stood at this version.
1918
+ */
1919
+ media: string[]
1920
+ /**
1921
+ * Post the version belongs to.
1922
+ */
1923
+ postId: string
1924
+ /**
1925
+ * Version number, starting at 1.
1926
+ */
1927
+ version: number
1928
+ /**
1929
+ * ISO-8601 time the version was recorded.
1930
+ */
1931
+ createdAt: string
1932
+ /**
1933
+ * Identity id of whoever produced this version.
1934
+ */
1935
+ createdBy: string
1936
+ }[]
1937
+ }
1938
+
1939
+ export interface ContentPublicationsCancelInput {
1940
+ /**
1941
+ * The publication id returned by content_publications_schedule.
1942
+ */
1943
+ id: string
1944
+ }
1945
+
1946
+ export interface ContentPublicationsCancelOutput {
1947
+ /**
1948
+ * Publication id.
1949
+ */
1950
+ id: string
1951
+ /**
1952
+ * The per-channel variant of the text that will be published.
1953
+ */
1954
+ text: string
1955
+ /**
1956
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
1957
+ */
1958
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
1959
+ /**
1960
+ * The post being published.
1961
+ */
1962
+ postId: string
1963
+ /**
1964
+ * How many dispatch attempts have been made.
1965
+ */
1966
+ attempts: number
1967
+ /**
1968
+ * The channel it is published to.
1969
+ */
1970
+ channelId: string
1971
+ /**
1972
+ * ISO-8601 creation time.
1973
+ */
1974
+ createdAt: string
1975
+ /**
1976
+ * The most recent failure, if any.
1977
+ */
1978
+ lastError: (string | null)
1979
+ /**
1980
+ * ISO-8601 time of the last change.
1981
+ */
1982
+ updatedAt: string
1983
+ /**
1984
+ * The network's id for the published post, once known.
1985
+ */
1986
+ externalId: (string | null)
1987
+ /**
1988
+ * URL of the published post, once known.
1989
+ */
1990
+ externalUrl: (string | null)
1991
+ /**
1992
+ * ISO-8601 time it was confirmed published.
1993
+ */
1994
+ publishedAt: (string | null)
1995
+ /**
1996
+ * ISO-8601 time the publication is due.
1997
+ */
1998
+ scheduledAt: string
1999
+ /**
2000
+ * How many reminders have been sent for this publication.
2001
+ */
2002
+ reminderCount: number
2003
+ /**
2004
+ * The key that makes a retry the same publication.
2005
+ */
2006
+ idempotencyKey: string
2007
+ /**
2008
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2009
+ */
2010
+ reminderSentAt: (string | null)
2011
+ }
2012
+
2013
+ export interface ContentPublicationsConfirmInput {
2014
+ /**
2015
+ * The publication id returned by content_publications_schedule.
2016
+ */
2017
+ id: string
2018
+ /**
2019
+ * The network's own id for the post, if known.
2020
+ */
2021
+ externalId?: string
2022
+ /**
2023
+ * URL of the post the person actually published. Worth supplying — it is what identifies the post later.
2024
+ */
2025
+ externalUrl?: string
2026
+ }
2027
+
2028
+ export interface ContentPublicationsConfirmOutput {
2029
+ /**
2030
+ * Publication id.
2031
+ */
2032
+ id: string
2033
+ /**
2034
+ * The per-channel variant of the text that will be published.
2035
+ */
2036
+ text: string
2037
+ /**
2038
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2039
+ */
2040
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2041
+ /**
2042
+ * The post being published.
2043
+ */
2044
+ postId: string
2045
+ /**
2046
+ * How many dispatch attempts have been made.
2047
+ */
2048
+ attempts: number
2049
+ /**
2050
+ * The channel it is published to.
2051
+ */
2052
+ channelId: string
2053
+ /**
2054
+ * ISO-8601 creation time.
2055
+ */
2056
+ createdAt: string
2057
+ /**
2058
+ * The most recent failure, if any.
2059
+ */
2060
+ lastError: (string | null)
2061
+ /**
2062
+ * ISO-8601 time of the last change.
2063
+ */
2064
+ updatedAt: string
2065
+ /**
2066
+ * The network's id for the published post, once known.
2067
+ */
2068
+ externalId: (string | null)
2069
+ /**
2070
+ * URL of the published post, once known.
2071
+ */
2072
+ externalUrl: (string | null)
2073
+ /**
2074
+ * ISO-8601 time it was confirmed published.
2075
+ */
2076
+ publishedAt: (string | null)
2077
+ /**
2078
+ * ISO-8601 time the publication is due.
2079
+ */
2080
+ scheduledAt: string
2081
+ /**
2082
+ * How many reminders have been sent for this publication.
2083
+ */
2084
+ reminderCount: number
2085
+ /**
2086
+ * The key that makes a retry the same publication.
2087
+ */
2088
+ idempotencyKey: string
2089
+ /**
2090
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2091
+ */
2092
+ reminderSentAt: (string | null)
2093
+ }
2094
+
2095
+ export interface ContentPublicationsGetInput {
2096
+ /**
2097
+ * The publication id returned by content_publications_schedule.
2098
+ */
2099
+ id: string
2100
+ }
2101
+
2102
+ export interface ContentPublicationsGetOutput {
2103
+ /**
2104
+ * Publication id.
2105
+ */
2106
+ id: string
2107
+ /**
2108
+ * The per-channel variant of the text that will be published.
2109
+ */
2110
+ text: string
2111
+ /**
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.
2117
+ */
2118
+ postId: string
2119
+ /**
2120
+ * How many dispatch attempts have been made.
2121
+ */
2122
+ attempts: number
2123
+ /**
2124
+ * The channel it is published to.
2125
+ */
2126
+ channelId: string
2127
+ /**
2128
+ * ISO-8601 creation time.
2129
+ */
2130
+ createdAt: string
2131
+ /**
2132
+ * The most recent failure, if any.
2133
+ */
2134
+ lastError: (string | null)
2135
+ /**
2136
+ * ISO-8601 time of the last change.
2137
+ */
2138
+ updatedAt: string
2139
+ /**
2140
+ * The network's id for the published post, once known.
2141
+ */
2142
+ externalId: (string | null)
2143
+ /**
2144
+ * URL of the published post, once known.
2145
+ */
2146
+ externalUrl: (string | null)
2147
+ /**
2148
+ * ISO-8601 time it was confirmed published.
2149
+ */
2150
+ publishedAt: (string | null)
2151
+ /**
2152
+ * ISO-8601 time the publication is due.
2153
+ */
2154
+ scheduledAt: string
2155
+ /**
2156
+ * How many reminders have been sent for this publication.
2157
+ */
2158
+ reminderCount: number
2159
+ /**
2160
+ * The key that makes a retry the same publication.
2161
+ */
2162
+ idempotencyKey: string
2163
+ /**
2164
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2165
+ */
2166
+ reminderSentAt: (string | null)
2167
+ }
2168
+
2169
+ export interface ContentPublicationsListInput {
2170
+ /**
2171
+ * Maximum number to return (1-100, default 50).
2172
+ */
2173
+ limit?: number
2174
+ /**
2175
+ * Return only publications in this state.
2176
+ */
2177
+ state?: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2178
+ /**
2179
+ * How many to skip, for paging.
2180
+ */
2181
+ offset?: number
2182
+ /**
2183
+ * Return only publications of this post.
2184
+ */
2185
+ postId?: string
2186
+ /**
2187
+ * Return only publications to this channel.
2188
+ */
2189
+ channelId?: string
2190
+ }
2191
+
2192
+ export interface ContentPublicationsListOutput {
2193
+ /**
2194
+ * Total number of matching publications, ignoring paging.
2195
+ */
2196
+ total: number
2197
+ /**
2198
+ * The page of publications, newest slot first.
2199
+ */
2200
+ publications: {
2201
+ /**
2202
+ * Publication id.
2203
+ */
2204
+ id: string
2205
+ /**
2206
+ * The per-channel variant of the text that will be published.
2207
+ */
2208
+ text: string
2209
+ /**
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.
2215
+ */
2216
+ postId: string
2217
+ /**
2218
+ * How many dispatch attempts have been made.
2219
+ */
2220
+ attempts: number
2221
+ /**
2222
+ * The channel it is published to.
2223
+ */
2224
+ channelId: string
2225
+ /**
2226
+ * ISO-8601 creation time.
2227
+ */
2228
+ createdAt: string
2229
+ /**
2230
+ * The most recent failure, if any.
2231
+ */
2232
+ lastError: (string | null)
2233
+ /**
2234
+ * ISO-8601 time of the last change.
2235
+ */
2236
+ updatedAt: string
2237
+ /**
2238
+ * The network's id for the published post, once known.
2239
+ */
2240
+ externalId: (string | null)
2241
+ /**
2242
+ * URL of the published post, once known.
2243
+ */
2244
+ externalUrl: (string | null)
2245
+ /**
2246
+ * ISO-8601 time it was confirmed published.
2247
+ */
2248
+ publishedAt: (string | null)
2249
+ /**
2250
+ * ISO-8601 time the publication is due.
2251
+ */
2252
+ scheduledAt: string
2253
+ /**
2254
+ * How many reminders have been sent for this publication.
2255
+ */
2256
+ reminderCount: number
2257
+ /**
2258
+ * The key that makes a retry the same publication.
2259
+ */
2260
+ idempotencyKey: string
2261
+ /**
2262
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2263
+ */
2264
+ reminderSentAt: (string | null)
2265
+ }[]
2266
+ }
2267
+
2268
+ export interface ContentPublicationsPublishInput {
2269
+ /**
2270
+ * Per-channel variant of the text. Omit to publish the post text as written.
2271
+ */
2272
+ text?: string
2273
+ /**
2274
+ * The post to publish. It must already be approved.
2275
+ */
2276
+ postId: string
2277
+ /**
2278
+ * The channel to publish to.
2279
+ */
2280
+ channelId: string
2281
+ /**
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.
2283
+ */
2284
+ idempotencyKey?: string
2285
+ }
2286
+
2287
+ export interface ContentPublicationsPublishOutput {
2288
+ /**
2289
+ * Publication id.
2290
+ */
2291
+ id: string
2292
+ /**
2293
+ * The per-channel variant of the text that will be published.
2294
+ */
2295
+ text: string
2296
+ /**
2297
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2298
+ */
2299
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2300
+ /**
2301
+ * The post being published.
2302
+ */
2303
+ postId: string
2304
+ /**
2305
+ * How many dispatch attempts have been made.
2306
+ */
2307
+ attempts: number
2308
+ /**
2309
+ * The channel it is published to.
2310
+ */
2311
+ channelId: string
2312
+ /**
2313
+ * ISO-8601 creation time.
2314
+ */
2315
+ createdAt: string
2316
+ /**
2317
+ * The most recent failure, if any.
2318
+ */
2319
+ lastError: (string | null)
2320
+ /**
2321
+ * ISO-8601 time of the last change.
2322
+ */
2323
+ updatedAt: string
2324
+ /**
2325
+ * The network's id for the published post, once known.
2326
+ */
2327
+ externalId: (string | null)
2328
+ /**
2329
+ * URL of the published post, once known.
2330
+ */
2331
+ externalUrl: (string | null)
2332
+ /**
2333
+ * ISO-8601 time it was confirmed published.
2334
+ */
2335
+ publishedAt: (string | null)
2336
+ /**
2337
+ * ISO-8601 time the publication is due.
2338
+ */
2339
+ scheduledAt: string
2340
+ /**
2341
+ * How many reminders have been sent for this publication.
2342
+ */
2343
+ reminderCount: number
2344
+ /**
2345
+ * The key that makes a retry the same publication.
2346
+ */
2347
+ idempotencyKey: string
2348
+ /**
2349
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2350
+ */
2351
+ reminderSentAt: (string | null)
2352
+ }
2353
+
2354
+ export interface ContentPublicationsRemindInput {
2355
+ /**
2356
+ * The publication id returned by content_publications_schedule.
2357
+ */
2358
+ id: string
2359
+ }
2360
+
2361
+ export interface ContentPublicationsRemindOutput {
2362
+ /**
2363
+ * Publication id.
2364
+ */
2365
+ id: string
2366
+ /**
2367
+ * The per-channel variant of the text that will be published.
2368
+ */
2369
+ text: string
2370
+ /**
2371
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2372
+ */
2373
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2374
+ /**
2375
+ * The post being published.
2376
+ */
2377
+ postId: string
2378
+ /**
2379
+ * How many dispatch attempts have been made.
2380
+ */
2381
+ attempts: number
2382
+ /**
2383
+ * The channel it is published to.
2384
+ */
2385
+ channelId: string
2386
+ /**
2387
+ * ISO-8601 creation time.
2388
+ */
2389
+ createdAt: string
2390
+ /**
2391
+ * The most recent failure, if any.
2392
+ */
2393
+ lastError: (string | null)
2394
+ /**
2395
+ * ISO-8601 time of the last change.
2396
+ */
2397
+ updatedAt: string
2398
+ /**
2399
+ * The network's id for the published post, once known.
2400
+ */
2401
+ externalId: (string | null)
2402
+ /**
2403
+ * URL of the published post, once known.
2404
+ */
2405
+ externalUrl: (string | null)
2406
+ /**
2407
+ * ISO-8601 time it was confirmed published.
2408
+ */
2409
+ publishedAt: (string | null)
2410
+ /**
2411
+ * ISO-8601 time the publication is due.
2412
+ */
2413
+ scheduledAt: string
2414
+ /**
2415
+ * How many reminders have been sent for this publication.
2416
+ */
2417
+ reminderCount: number
2418
+ /**
2419
+ * The key that makes a retry the same publication.
2420
+ */
2421
+ idempotencyKey: string
2422
+ /**
2423
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2424
+ */
2425
+ reminderSentAt: (string | null)
2426
+ }
2427
+
2428
+ export interface ContentPublicationsRescheduleInput {
2429
+ /**
2430
+ * The publication id returned by content_publications_schedule.
2431
+ */
2432
+ id: string
2433
+ /**
2434
+ * New ISO-8601 time. The publication returns to the queue.
2435
+ */
2436
+ scheduledAt: string
2437
+ }
2438
+
2439
+ export interface ContentPublicationsRescheduleOutput {
2440
+ /**
2441
+ * Publication id.
2442
+ */
2443
+ id: string
2444
+ /**
2445
+ * The per-channel variant of the text that will be published.
2446
+ */
2447
+ text: string
2448
+ /**
2449
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2450
+ */
2451
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2452
+ /**
2453
+ * The post being published.
2454
+ */
2455
+ postId: string
2456
+ /**
2457
+ * How many dispatch attempts have been made.
2458
+ */
2459
+ attempts: number
2460
+ /**
2461
+ * The channel it is published to.
2462
+ */
2463
+ channelId: string
2464
+ /**
2465
+ * ISO-8601 creation time.
2466
+ */
2467
+ createdAt: string
2468
+ /**
2469
+ * The most recent failure, if any.
2470
+ */
2471
+ lastError: (string | null)
2472
+ /**
2473
+ * ISO-8601 time of the last change.
2474
+ */
2475
+ updatedAt: string
2476
+ /**
2477
+ * The network's id for the published post, once known.
2478
+ */
2479
+ externalId: (string | null)
2480
+ /**
2481
+ * URL of the published post, once known.
2482
+ */
2483
+ externalUrl: (string | null)
2484
+ /**
2485
+ * ISO-8601 time it was confirmed published.
2486
+ */
2487
+ publishedAt: (string | null)
2488
+ /**
2489
+ * ISO-8601 time the publication is due.
2490
+ */
2491
+ scheduledAt: string
2492
+ /**
2493
+ * How many reminders have been sent for this publication.
2494
+ */
2495
+ reminderCount: number
2496
+ /**
2497
+ * The key that makes a retry the same publication.
2498
+ */
2499
+ idempotencyKey: string
2500
+ /**
2501
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2502
+ */
2503
+ reminderSentAt: (string | null)
2504
+ }
2505
+
2506
+ export interface ContentPublicationsScheduleInput {
2507
+ /**
2508
+ * Per-channel variant of the text. Omit to publish the post text as written.
2509
+ */
2510
+ text?: string
2511
+ /**
2512
+ * The post to publish. It must already be approved — an unapproved text never publishes.
2513
+ */
2514
+ postId: string
2515
+ /**
2516
+ * The channel to publish to. Get its character limit from content_channels_get first.
2517
+ */
2518
+ channelId: string
2519
+ /**
2520
+ * ISO-8601 time to publish. In the past means "as soon as the next tick runs".
2521
+ */
2522
+ scheduledAt: string
2523
+ /**
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.
2525
+ */
2526
+ idempotencyKey?: string
2527
+ }
2528
+
2529
+ export interface ContentPublicationsScheduleOutput {
2530
+ /**
2531
+ * Publication id.
2532
+ */
2533
+ id: string
2534
+ /**
2535
+ * The per-channel variant of the text that will be published.
2536
+ */
2537
+ text: string
2538
+ /**
2539
+ * pending (queued) -> publishing (the reminder was sent; a person is publishing by hand) -> published (confirmed) | failed | cancelled.
2540
+ */
2541
+ state: ("pending" | "publishing" | "published" | "failed" | "cancelled")
2542
+ /**
2543
+ * The post being published.
2544
+ */
2545
+ postId: string
2546
+ /**
2547
+ * How many dispatch attempts have been made.
2548
+ */
2549
+ attempts: number
2550
+ /**
2551
+ * The channel it is published to.
2552
+ */
2553
+ channelId: string
2554
+ /**
2555
+ * ISO-8601 creation time.
2556
+ */
2557
+ createdAt: string
2558
+ /**
2559
+ * The most recent failure, if any.
2560
+ */
2561
+ lastError: (string | null)
2562
+ /**
2563
+ * ISO-8601 time of the last change.
2564
+ */
2565
+ updatedAt: string
2566
+ /**
2567
+ * The network's id for the published post, once known.
2568
+ */
2569
+ externalId: (string | null)
2570
+ /**
2571
+ * URL of the published post, once known.
2572
+ */
2573
+ externalUrl: (string | null)
2574
+ /**
2575
+ * ISO-8601 time it was confirmed published.
2576
+ */
2577
+ publishedAt: (string | null)
2578
+ /**
2579
+ * ISO-8601 time the publication is due.
2580
+ */
2581
+ scheduledAt: string
2582
+ /**
2583
+ * How many reminders have been sent for this publication.
2584
+ */
2585
+ reminderCount: number
2586
+ /**
2587
+ * The key that makes a retry the same publication.
2588
+ */
2589
+ idempotencyKey: string
2590
+ /**
2591
+ * ISO-8601 time the most recent reminder went out, or null if none has.
2592
+ */
2593
+ reminderSentAt: (string | null)
2594
+ }
2595
+
1412
2596
  export interface DeploymentAlertCreateInput {
1413
2597
  metric: ("cpu" | "memory" | "net_in" | "net_out" | "disk")
1414
2598
  enabled?: boolean