@getlatedev/node 0.1.0 → 0.1.2

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.
@@ -289,6 +289,14 @@ export type InstagramPlatformData = {
289
289
  *
290
290
  */
291
291
  audioName?: string;
292
+ /**
293
+ * Millisecond offset from the start of the video to use as the Reel thumbnail.
294
+ * Only applies to Reels (video posts). If a custom thumbnail URL (instagramThumbnail
295
+ * in mediaItems) is provided, it takes priority and this offset is ignored.
296
+ * Defaults to 0 (first frame).
297
+ *
298
+ */
299
+ thumbOffset?: number;
292
300
  };
293
301
 
294
302
  /**
@@ -1268,7 +1276,7 @@ export type Webhook = {
1268
1276
  /**
1269
1277
  * Events subscribed to
1270
1278
  */
1271
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
1279
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
1272
1280
  /**
1273
1281
  * Whether webhook delivery is enabled
1274
1282
  */
@@ -1302,7 +1310,7 @@ export type WebhookLog = {
1302
1310
  * Name of the webhook that was triggered
1303
1311
  */
1304
1312
  webhookName?: string;
1305
- event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
1313
+ event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
1306
1314
  url?: string;
1307
1315
  status?: 'success' | 'failed';
1308
1316
  /**
@@ -1334,10 +1342,33 @@ export type WebhookLog = {
1334
1342
  createdAt?: string;
1335
1343
  };
1336
1344
 
1337
- export type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
1345
+ export type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
1338
1346
 
1339
1347
  export type status5 = 'success' | 'failed';
1340
1348
 
1349
+ /**
1350
+ * Webhook payload for account connected events
1351
+ */
1352
+ export type WebhookPayloadAccountConnected = {
1353
+ event?: 'account.connected';
1354
+ account?: {
1355
+ /**
1356
+ * The account's unique identifier (same as used in /v1/accounts/{accountId})
1357
+ */
1358
+ accountId?: string;
1359
+ /**
1360
+ * The profile's unique identifier this account belongs to
1361
+ */
1362
+ profileId?: string;
1363
+ platform?: string;
1364
+ username?: string;
1365
+ displayName?: string;
1366
+ };
1367
+ timestamp?: string;
1368
+ };
1369
+
1370
+ export type event2 = 'account.connected';
1371
+
1341
1372
  /**
1342
1373
  * Webhook payload for account disconnected events
1343
1374
  */
@@ -1367,7 +1398,7 @@ export type WebhookPayloadAccountDisconnected = {
1367
1398
  timestamp?: string;
1368
1399
  };
1369
1400
 
1370
- export type event2 = 'account.disconnected';
1401
+ export type event3 = 'account.disconnected';
1371
1402
 
1372
1403
  /**
1373
1404
  * Whether the disconnection was intentional (user action) or unintentional (token expired/revoked)
@@ -1395,7 +1426,7 @@ export type WebhookPayloadPost = {
1395
1426
  timestamp?: string;
1396
1427
  };
1397
1428
 
1398
- export type event3 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial';
1429
+ export type event4 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial';
1399
1430
 
1400
1431
  export type YouTubeDailyViewsResponse = {
1401
1432
  success?: boolean;
@@ -1486,7 +1517,7 @@ export type YouTubeScopeMissingResponse = {
1486
1517
  };
1487
1518
  };
1488
1519
 
1489
- export type GetV1ToolsYoutubeDownloadData = {
1520
+ export type DownloadYouTubeVideoData = {
1490
1521
  query: {
1491
1522
  /**
1492
1523
  * Action to perform: 'download' returns download URL, 'formats' lists available formats
@@ -1511,7 +1542,7 @@ export type GetV1ToolsYoutubeDownloadData = {
1511
1542
  };
1512
1543
  };
1513
1544
 
1514
- export type GetV1ToolsYoutubeDownloadResponse = ({
1545
+ export type DownloadYouTubeVideoResponse = ({
1515
1546
  success?: boolean;
1516
1547
  title?: string;
1517
1548
  downloadUrl?: string;
@@ -1525,11 +1556,11 @@ export type GetV1ToolsYoutubeDownloadResponse = ({
1525
1556
  }>;
1526
1557
  });
1527
1558
 
1528
- export type GetV1ToolsYoutubeDownloadError = ({
1559
+ export type DownloadYouTubeVideoError = ({
1529
1560
  error?: string;
1530
1561
  } | unknown);
1531
1562
 
1532
- export type GetV1ToolsYoutubeTranscriptData = {
1563
+ export type GetYouTubeTranscriptData = {
1533
1564
  query: {
1534
1565
  /**
1535
1566
  * Language code for transcript
@@ -1542,7 +1573,7 @@ export type GetV1ToolsYoutubeTranscriptData = {
1542
1573
  };
1543
1574
  };
1544
1575
 
1545
- export type GetV1ToolsYoutubeTranscriptResponse = ({
1576
+ export type GetYouTubeTranscriptResponse = ({
1546
1577
  success?: boolean;
1547
1578
  videoId?: string;
1548
1579
  language?: string;
@@ -1554,9 +1585,9 @@ export type GetV1ToolsYoutubeTranscriptResponse = ({
1554
1585
  }>;
1555
1586
  });
1556
1587
 
1557
- export type GetV1ToolsYoutubeTranscriptError = (unknown);
1588
+ export type GetYouTubeTranscriptError = (unknown);
1558
1589
 
1559
- export type GetV1ToolsInstagramDownloadData = {
1590
+ export type DownloadInstagramMediaData = {
1560
1591
  query: {
1561
1592
  /**
1562
1593
  * Instagram reel or post URL
@@ -1565,21 +1596,21 @@ export type GetV1ToolsInstagramDownloadData = {
1565
1596
  };
1566
1597
  };
1567
1598
 
1568
- export type GetV1ToolsInstagramDownloadResponse = ({
1599
+ export type DownloadInstagramMediaResponse = ({
1569
1600
  success?: boolean;
1570
1601
  title?: string;
1571
1602
  downloadUrl?: string;
1572
1603
  });
1573
1604
 
1574
- export type GetV1ToolsInstagramDownloadError = unknown;
1605
+ export type DownloadInstagramMediaError = unknown;
1575
1606
 
1576
- export type PostV1ToolsInstagramHashtagCheckerData = {
1607
+ export type CheckInstagramHashtagsData = {
1577
1608
  body: {
1578
1609
  hashtags: Array<(string)>;
1579
1610
  };
1580
1611
  };
1581
1612
 
1582
- export type PostV1ToolsInstagramHashtagCheckerResponse = ({
1613
+ export type CheckInstagramHashtagsResponse = ({
1583
1614
  success?: boolean;
1584
1615
  results?: Array<{
1585
1616
  hashtag?: string;
@@ -1594,9 +1625,9 @@ export type PostV1ToolsInstagramHashtagCheckerResponse = ({
1594
1625
  };
1595
1626
  });
1596
1627
 
1597
- export type PostV1ToolsInstagramHashtagCheckerError = unknown;
1628
+ export type CheckInstagramHashtagsError = unknown;
1598
1629
 
1599
- export type GetV1ToolsTiktokDownloadData = {
1630
+ export type DownloadTikTokVideoData = {
1600
1631
  query: {
1601
1632
  /**
1602
1633
  * 'formats' to list available formats
@@ -1613,7 +1644,7 @@ export type GetV1ToolsTiktokDownloadData = {
1613
1644
  };
1614
1645
  };
1615
1646
 
1616
- export type GetV1ToolsTiktokDownloadResponse = ({
1647
+ export type DownloadTikTokVideoResponse = ({
1617
1648
  success?: boolean;
1618
1649
  title?: string;
1619
1650
  downloadUrl?: string;
@@ -1624,9 +1655,9 @@ export type GetV1ToolsTiktokDownloadResponse = ({
1624
1655
  }>;
1625
1656
  });
1626
1657
 
1627
- export type GetV1ToolsTiktokDownloadError = unknown;
1658
+ export type DownloadTikTokVideoError = unknown;
1628
1659
 
1629
- export type GetV1ToolsTwitterDownloadData = {
1660
+ export type DownloadTwitterMediaData = {
1630
1661
  query: {
1631
1662
  action?: 'download' | 'formats';
1632
1663
  formatId?: string;
@@ -1637,15 +1668,15 @@ export type GetV1ToolsTwitterDownloadData = {
1637
1668
  };
1638
1669
  };
1639
1670
 
1640
- export type GetV1ToolsTwitterDownloadResponse = ({
1671
+ export type DownloadTwitterMediaResponse = ({
1641
1672
  success?: boolean;
1642
1673
  title?: string;
1643
1674
  downloadUrl?: string;
1644
1675
  });
1645
1676
 
1646
- export type GetV1ToolsTwitterDownloadError = unknown;
1677
+ export type DownloadTwitterMediaError = unknown;
1647
1678
 
1648
- export type GetV1ToolsFacebookDownloadData = {
1679
+ export type DownloadFacebookVideoData = {
1649
1680
  query: {
1650
1681
  /**
1651
1682
  * Facebook video or reel URL
@@ -1654,16 +1685,16 @@ export type GetV1ToolsFacebookDownloadData = {
1654
1685
  };
1655
1686
  };
1656
1687
 
1657
- export type GetV1ToolsFacebookDownloadResponse = ({
1688
+ export type DownloadFacebookVideoResponse = ({
1658
1689
  success?: boolean;
1659
1690
  title?: string;
1660
1691
  downloadUrl?: string;
1661
1692
  thumbnail?: string;
1662
1693
  });
1663
1694
 
1664
- export type GetV1ToolsFacebookDownloadError = unknown;
1695
+ export type DownloadFacebookVideoError = unknown;
1665
1696
 
1666
- export type GetV1ToolsLinkedinDownloadData = {
1697
+ export type DownloadLinkedInVideoData = {
1667
1698
  query: {
1668
1699
  /**
1669
1700
  * LinkedIn post URL
@@ -1672,15 +1703,15 @@ export type GetV1ToolsLinkedinDownloadData = {
1672
1703
  };
1673
1704
  };
1674
1705
 
1675
- export type GetV1ToolsLinkedinDownloadResponse = ({
1706
+ export type DownloadLinkedInVideoResponse = ({
1676
1707
  success?: boolean;
1677
1708
  title?: string;
1678
1709
  downloadUrl?: string;
1679
1710
  });
1680
1711
 
1681
- export type GetV1ToolsLinkedinDownloadError = unknown;
1712
+ export type DownloadLinkedInVideoError = unknown;
1682
1713
 
1683
- export type GetV1ToolsBlueskyDownloadData = {
1714
+ export type DownloadBlueskyMediaData = {
1684
1715
  query: {
1685
1716
  /**
1686
1717
  * Bluesky post URL
@@ -1689,7 +1720,7 @@ export type GetV1ToolsBlueskyDownloadData = {
1689
1720
  };
1690
1721
  };
1691
1722
 
1692
- export type GetV1ToolsBlueskyDownloadResponse = ({
1723
+ export type DownloadBlueskyMediaResponse = ({
1693
1724
  success?: boolean;
1694
1725
  title?: string;
1695
1726
  text?: string;
@@ -1697,9 +1728,9 @@ export type GetV1ToolsBlueskyDownloadResponse = ({
1697
1728
  thumbnail?: string;
1698
1729
  });
1699
1730
 
1700
- export type GetV1ToolsBlueskyDownloadError = unknown;
1731
+ export type DownloadBlueskyMediaError = unknown;
1701
1732
 
1702
- export type GetV1AnalyticsData = {
1733
+ export type GetAnalyticsData = {
1703
1734
  query?: {
1704
1735
  /**
1705
1736
  * Inclusive lower bound
@@ -1743,16 +1774,16 @@ export type GetV1AnalyticsData = {
1743
1774
  };
1744
1775
  };
1745
1776
 
1746
- export type GetV1AnalyticsResponse = ((AnalyticsSinglePostResponse | AnalyticsListResponse));
1777
+ export type GetAnalyticsResponse = ((AnalyticsSinglePostResponse | AnalyticsListResponse));
1747
1778
 
1748
- export type GetV1AnalyticsError = ({
1779
+ export type GetAnalyticsError = ({
1749
1780
  error?: string;
1750
1781
  } | {
1751
1782
  error?: string;
1752
1783
  code?: string;
1753
1784
  } | ErrorResponse);
1754
1785
 
1755
- export type GetV1AnalyticsYoutubeDailyViewsData = {
1786
+ export type GetYouTubeDailyViewsData = {
1756
1787
  query: {
1757
1788
  /**
1758
1789
  * The Late account ID for the YouTube account
@@ -1773,9 +1804,9 @@ export type GetV1AnalyticsYoutubeDailyViewsData = {
1773
1804
  };
1774
1805
  };
1775
1806
 
1776
- export type GetV1AnalyticsYoutubeDailyViewsResponse = (YouTubeDailyViewsResponse);
1807
+ export type GetYouTubeDailyViewsResponse = (YouTubeDailyViewsResponse);
1777
1808
 
1778
- export type GetV1AnalyticsYoutubeDailyViewsError = ({
1809
+ export type GetYouTubeDailyViewsError = ({
1779
1810
  error?: string;
1780
1811
  } | {
1781
1812
  error?: string;
@@ -1785,7 +1816,7 @@ export type GetV1AnalyticsYoutubeDailyViewsError = ({
1785
1816
  error?: string;
1786
1817
  });
1787
1818
 
1788
- export type GetV1AccountGroupsResponse = ({
1819
+ export type ListAccountGroupsResponse = ({
1789
1820
  groups?: Array<{
1790
1821
  _id?: string;
1791
1822
  name?: string;
@@ -1793,18 +1824,18 @@ export type GetV1AccountGroupsResponse = ({
1793
1824
  }>;
1794
1825
  });
1795
1826
 
1796
- export type GetV1AccountGroupsError = ({
1827
+ export type ListAccountGroupsError = ({
1797
1828
  error?: string;
1798
1829
  });
1799
1830
 
1800
- export type PostV1AccountGroupsData = {
1831
+ export type CreateAccountGroupData = {
1801
1832
  body: {
1802
1833
  name: string;
1803
1834
  accountIds: Array<(string)>;
1804
1835
  };
1805
1836
  };
1806
1837
 
1807
- export type PostV1AccountGroupsResponse = ({
1838
+ export type CreateAccountGroupResponse = ({
1808
1839
  message?: string;
1809
1840
  group?: {
1810
1841
  _id?: string;
@@ -1813,11 +1844,11 @@ export type PostV1AccountGroupsResponse = ({
1813
1844
  };
1814
1845
  });
1815
1846
 
1816
- export type PostV1AccountGroupsError = (unknown | {
1847
+ export type CreateAccountGroupError = (unknown | {
1817
1848
  error?: string;
1818
1849
  });
1819
1850
 
1820
- export type PutV1AccountGroupsByGroupIdData = {
1851
+ export type UpdateAccountGroupData = {
1821
1852
  body: {
1822
1853
  name?: string;
1823
1854
  accountIds?: Array<(string)>;
@@ -1827,32 +1858,32 @@ export type PutV1AccountGroupsByGroupIdData = {
1827
1858
  };
1828
1859
  };
1829
1860
 
1830
- export type PutV1AccountGroupsByGroupIdResponse = ({
1861
+ export type UpdateAccountGroupResponse = ({
1831
1862
  message?: string;
1832
1863
  group?: {
1833
1864
  [key: string]: unknown;
1834
1865
  };
1835
1866
  });
1836
1867
 
1837
- export type PutV1AccountGroupsByGroupIdError = ({
1868
+ export type UpdateAccountGroupError = ({
1838
1869
  error?: string;
1839
1870
  } | unknown);
1840
1871
 
1841
- export type DeleteV1AccountGroupsByGroupIdData = {
1872
+ export type DeleteAccountGroupData = {
1842
1873
  path: {
1843
1874
  groupId: string;
1844
1875
  };
1845
1876
  };
1846
1877
 
1847
- export type DeleteV1AccountGroupsByGroupIdResponse = ({
1878
+ export type DeleteAccountGroupResponse = ({
1848
1879
  message?: string;
1849
1880
  });
1850
1881
 
1851
- export type DeleteV1AccountGroupsByGroupIdError = ({
1882
+ export type DeleteAccountGroupError = ({
1852
1883
  error?: string;
1853
1884
  });
1854
1885
 
1855
- export type PostV1MediaPresignData = {
1886
+ export type GetMediaPresignedUrlData = {
1856
1887
  body: {
1857
1888
  /**
1858
1889
  * Name of the file to upload
@@ -1869,7 +1900,7 @@ export type PostV1MediaPresignData = {
1869
1900
  };
1870
1901
  };
1871
1902
 
1872
- export type PostV1MediaPresignResponse = ({
1903
+ export type GetMediaPresignedUrlResponse = ({
1873
1904
  /**
1874
1905
  * Presigned URL to PUT your file to (expires in 1 hour)
1875
1906
  */
@@ -1888,11 +1919,11 @@ export type PostV1MediaPresignResponse = ({
1888
1919
  type?: 'image' | 'video' | 'document';
1889
1920
  });
1890
1921
 
1891
- export type PostV1MediaPresignError = ({
1922
+ export type GetMediaPresignedUrlError = ({
1892
1923
  error?: string;
1893
1924
  });
1894
1925
 
1895
- export type GetV1RedditSearchData = {
1926
+ export type SearchRedditData = {
1896
1927
  query: {
1897
1928
  accountId: string;
1898
1929
  after?: string;
@@ -1904,7 +1935,7 @@ export type GetV1RedditSearchData = {
1904
1935
  };
1905
1936
  };
1906
1937
 
1907
- export type GetV1RedditSearchResponse = ({
1938
+ export type SearchRedditResponse = ({
1908
1939
  posts?: Array<{
1909
1940
  id?: string;
1910
1941
  title?: string;
@@ -1919,11 +1950,11 @@ export type GetV1RedditSearchResponse = ({
1919
1950
  after?: string;
1920
1951
  });
1921
1952
 
1922
- export type GetV1RedditSearchError = (unknown | {
1953
+ export type SearchRedditError = (unknown | {
1923
1954
  error?: string;
1924
1955
  });
1925
1956
 
1926
- export type GetV1RedditFeedData = {
1957
+ export type GetRedditFeedData = {
1927
1958
  query: {
1928
1959
  accountId: string;
1929
1960
  after?: string;
@@ -1934,24 +1965,24 @@ export type GetV1RedditFeedData = {
1934
1965
  };
1935
1966
  };
1936
1967
 
1937
- export type GetV1RedditFeedResponse = ({
1968
+ export type GetRedditFeedResponse = ({
1938
1969
  posts?: Array<{
1939
1970
  [key: string]: unknown;
1940
1971
  }>;
1941
1972
  after?: string;
1942
1973
  });
1943
1974
 
1944
- export type GetV1RedditFeedError = (unknown | {
1975
+ export type GetRedditFeedError = (unknown | {
1945
1976
  error?: string;
1946
1977
  });
1947
1978
 
1948
- export type GetV1UsageStatsResponse = (UsageStats);
1979
+ export type GetUsageStatsResponse = (UsageStats);
1949
1980
 
1950
- export type GetV1UsageStatsError = ({
1981
+ export type GetUsageStatsError = ({
1951
1982
  error?: string;
1952
1983
  });
1953
1984
 
1954
- export type GetV1PostsData = {
1985
+ export type ListPostsData = {
1955
1986
  query?: {
1956
1987
  createdBy?: string;
1957
1988
  dateFrom?: string;
@@ -1971,13 +2002,13 @@ export type GetV1PostsData = {
1971
2002
  };
1972
2003
  };
1973
2004
 
1974
- export type GetV1PostsResponse = (PostsListResponse);
2005
+ export type ListPostsResponse = (PostsListResponse);
1975
2006
 
1976
- export type GetV1PostsError = ({
2007
+ export type ListPostsError = ({
1977
2008
  error?: string;
1978
2009
  });
1979
2010
 
1980
- export type PostV1PostsData = {
2011
+ export type CreatePostData = {
1981
2012
  body: {
1982
2013
  title?: string;
1983
2014
  content?: string;
@@ -2034,25 +2065,25 @@ export type PostV1PostsData = {
2034
2065
  };
2035
2066
  };
2036
2067
 
2037
- export type PostV1PostsResponse = (PostCreateResponse);
2068
+ export type CreatePostResponse = (PostCreateResponse);
2038
2069
 
2039
- export type PostV1PostsError = ({
2070
+ export type CreatePostError = ({
2040
2071
  error?: string;
2041
2072
  });
2042
2073
 
2043
- export type GetV1PostsByPostIdData = {
2074
+ export type GetPostData = {
2044
2075
  path: {
2045
2076
  postId: string;
2046
2077
  };
2047
2078
  };
2048
2079
 
2049
- export type GetV1PostsByPostIdResponse = (PostGetResponse);
2080
+ export type GetPostResponse = (PostGetResponse);
2050
2081
 
2051
- export type GetV1PostsByPostIdError = ({
2082
+ export type GetPostError = ({
2052
2083
  error?: string;
2053
2084
  } | unknown);
2054
2085
 
2055
- export type PutV1PostsByPostIdData = {
2086
+ export type UpdatePostData = {
2056
2087
  body: {
2057
2088
  [key: string]: unknown;
2058
2089
  };
@@ -2061,25 +2092,25 @@ export type PutV1PostsByPostIdData = {
2061
2092
  };
2062
2093
  };
2063
2094
 
2064
- export type PutV1PostsByPostIdResponse = (PostUpdateResponse | unknown);
2095
+ export type UpdatePostResponse = (PostUpdateResponse | unknown);
2065
2096
 
2066
- export type PutV1PostsByPostIdError = (unknown | {
2097
+ export type UpdatePostError = (unknown | {
2067
2098
  error?: string;
2068
2099
  });
2069
2100
 
2070
- export type DeleteV1PostsByPostIdData = {
2101
+ export type DeletePostData = {
2071
2102
  path: {
2072
2103
  postId: string;
2073
2104
  };
2074
2105
  };
2075
2106
 
2076
- export type DeleteV1PostsByPostIdResponse = (PostDeleteResponse);
2107
+ export type DeletePostResponse = (PostDeleteResponse);
2077
2108
 
2078
- export type DeleteV1PostsByPostIdError = (unknown | {
2109
+ export type DeletePostError = (unknown | {
2079
2110
  error?: string;
2080
2111
  });
2081
2112
 
2082
- export type PostV1PostsBulkUploadData = {
2113
+ export type BulkUploadPostsData = {
2083
2114
  body: {
2084
2115
  file?: (Blob | File);
2085
2116
  };
@@ -2088,7 +2119,7 @@ export type PostV1PostsBulkUploadData = {
2088
2119
  };
2089
2120
  };
2090
2121
 
2091
- export type PostV1PostsBulkUploadResponse = ({
2122
+ export type BulkUploadPostsResponse = ({
2092
2123
  success?: boolean;
2093
2124
  totalRows?: number;
2094
2125
  created?: number;
@@ -2100,23 +2131,23 @@ export type PostV1PostsBulkUploadResponse = ({
2100
2131
  posts?: Array<Post>;
2101
2132
  } | unknown);
2102
2133
 
2103
- export type PostV1PostsBulkUploadError = (unknown | {
2134
+ export type BulkUploadPostsError = (unknown | {
2104
2135
  error?: string;
2105
2136
  });
2106
2137
 
2107
- export type PostV1PostsByPostIdRetryData = {
2138
+ export type RetryPostData = {
2108
2139
  path: {
2109
2140
  postId: string;
2110
2141
  };
2111
2142
  };
2112
2143
 
2113
- export type PostV1PostsByPostIdRetryResponse = (PostRetryResponse | unknown);
2144
+ export type RetryPostResponse = (PostRetryResponse | unknown);
2114
2145
 
2115
- export type PostV1PostsByPostIdRetryError = (unknown | {
2146
+ export type RetryPostError = (unknown | {
2116
2147
  error?: string;
2117
2148
  });
2118
2149
 
2119
- export type GetV1UsersResponse = ({
2150
+ export type ListUsersResponse = ({
2120
2151
  currentUserId?: string;
2121
2152
  users?: Array<{
2122
2153
  _id?: string;
@@ -2129,17 +2160,17 @@ export type GetV1UsersResponse = ({
2129
2160
  }>;
2130
2161
  });
2131
2162
 
2132
- export type GetV1UsersError = ({
2163
+ export type ListUsersError = ({
2133
2164
  error?: string;
2134
2165
  });
2135
2166
 
2136
- export type GetV1UsersByUserIdData = {
2167
+ export type GetUserData = {
2137
2168
  path: {
2138
2169
  userId: string;
2139
2170
  };
2140
2171
  };
2141
2172
 
2142
- export type GetV1UsersByUserIdResponse = ({
2173
+ export type GetUserResponse = ({
2143
2174
  user?: {
2144
2175
  _id?: string;
2145
2176
  name?: string;
@@ -2150,11 +2181,11 @@ export type GetV1UsersByUserIdResponse = ({
2150
2181
  };
2151
2182
  });
2152
2183
 
2153
- export type GetV1UsersByUserIdError = ({
2184
+ export type GetUserError = ({
2154
2185
  error?: string;
2155
2186
  } | unknown);
2156
2187
 
2157
- export type GetV1ProfilesData = {
2188
+ export type ListProfilesData = {
2158
2189
  query?: {
2159
2190
  /**
2160
2191
  * When true, includes profiles that exceed the user's plan limit.
@@ -2166,13 +2197,13 @@ export type GetV1ProfilesData = {
2166
2197
  };
2167
2198
  };
2168
2199
 
2169
- export type GetV1ProfilesResponse = (ProfilesListResponse);
2200
+ export type ListProfilesResponse = (ProfilesListResponse);
2170
2201
 
2171
- export type GetV1ProfilesError = ({
2202
+ export type ListProfilesError = ({
2172
2203
  error?: string;
2173
2204
  });
2174
2205
 
2175
- export type PostV1ProfilesData = {
2206
+ export type CreateProfileData = {
2176
2207
  body: {
2177
2208
  name: string;
2178
2209
  description?: string;
@@ -2180,27 +2211,27 @@ export type PostV1ProfilesData = {
2180
2211
  };
2181
2212
  };
2182
2213
 
2183
- export type PostV1ProfilesResponse = (ProfileCreateResponse);
2214
+ export type CreateProfileResponse = (ProfileCreateResponse);
2184
2215
 
2185
- export type PostV1ProfilesError = (unknown | {
2216
+ export type CreateProfileError = (unknown | {
2186
2217
  error?: string;
2187
2218
  });
2188
2219
 
2189
- export type GetV1ProfilesByProfileIdData = {
2220
+ export type GetProfileData = {
2190
2221
  path: {
2191
2222
  profileId: string;
2192
2223
  };
2193
2224
  };
2194
2225
 
2195
- export type GetV1ProfilesByProfileIdResponse = ({
2226
+ export type GetProfileResponse = ({
2196
2227
  profile?: Profile;
2197
2228
  });
2198
2229
 
2199
- export type GetV1ProfilesByProfileIdError = ({
2230
+ export type GetProfileError = ({
2200
2231
  error?: string;
2201
2232
  });
2202
2233
 
2203
- export type PutV1ProfilesByProfileIdData = {
2234
+ export type UpdateProfileData = {
2204
2235
  body: {
2205
2236
  name?: string;
2206
2237
  description?: string;
@@ -2212,30 +2243,30 @@ export type PutV1ProfilesByProfileIdData = {
2212
2243
  };
2213
2244
  };
2214
2245
 
2215
- export type PutV1ProfilesByProfileIdResponse = ({
2246
+ export type UpdateProfileResponse = ({
2216
2247
  message?: string;
2217
2248
  profile?: Profile;
2218
2249
  });
2219
2250
 
2220
- export type PutV1ProfilesByProfileIdError = ({
2251
+ export type UpdateProfileError = ({
2221
2252
  error?: string;
2222
2253
  });
2223
2254
 
2224
- export type DeleteV1ProfilesByProfileIdData = {
2255
+ export type DeleteProfileData = {
2225
2256
  path: {
2226
2257
  profileId: string;
2227
2258
  };
2228
2259
  };
2229
2260
 
2230
- export type DeleteV1ProfilesByProfileIdResponse = ({
2261
+ export type DeleteProfileResponse = ({
2231
2262
  message?: string;
2232
2263
  });
2233
2264
 
2234
- export type DeleteV1ProfilesByProfileIdError = (unknown | {
2265
+ export type DeleteProfileError = (unknown | {
2235
2266
  error?: string;
2236
2267
  });
2237
2268
 
2238
- export type GetV1AccountsData = {
2269
+ export type ListAccountsData = {
2239
2270
  query?: {
2240
2271
  /**
2241
2272
  * When true, includes accounts from profiles that exceed the user's plan limit.
@@ -2250,7 +2281,7 @@ export type GetV1AccountsData = {
2250
2281
  };
2251
2282
  };
2252
2283
 
2253
- export type GetV1AccountsResponse = ({
2284
+ export type ListAccountsResponse = ({
2254
2285
  accounts?: Array<SocialAccount>;
2255
2286
  /**
2256
2287
  * Whether user has analytics add-on access
@@ -2258,11 +2289,11 @@ export type GetV1AccountsResponse = ({
2258
2289
  hasAnalyticsAccess?: boolean;
2259
2290
  });
2260
2291
 
2261
- export type GetV1AccountsError = ({
2292
+ export type ListAccountsError = ({
2262
2293
  error?: string;
2263
2294
  });
2264
2295
 
2265
- export type GetV1AccountsFollowerStatsData = {
2296
+ export type GetFollowerStatsData = {
2266
2297
  query?: {
2267
2298
  /**
2268
2299
  * Comma-separated list of account IDs (optional, defaults to all user's accounts)
@@ -2287,7 +2318,7 @@ export type GetV1AccountsFollowerStatsData = {
2287
2318
  };
2288
2319
  };
2289
2320
 
2290
- export type GetV1AccountsFollowerStatsResponse = ({
2321
+ export type GetFollowerStatsResponse = ({
2291
2322
  accounts?: Array<AccountWithFollowerStats>;
2292
2323
  stats?: {
2293
2324
  [key: string]: Array<{
@@ -2302,7 +2333,7 @@ export type GetV1AccountsFollowerStatsResponse = ({
2302
2333
  granularity?: string;
2303
2334
  });
2304
2335
 
2305
- export type GetV1AccountsFollowerStatsError = ({
2336
+ export type GetFollowerStatsError = ({
2306
2337
  error?: string;
2307
2338
  } | {
2308
2339
  error?: string;
@@ -2310,7 +2341,7 @@ export type GetV1AccountsFollowerStatsError = ({
2310
2341
  requiresAddon?: boolean;
2311
2342
  });
2312
2343
 
2313
- export type PutV1AccountsByAccountIdData = {
2344
+ export type UpdateAccountData = {
2314
2345
  body: {
2315
2346
  username?: string;
2316
2347
  displayName?: string;
@@ -2320,31 +2351,31 @@ export type PutV1AccountsByAccountIdData = {
2320
2351
  };
2321
2352
  };
2322
2353
 
2323
- export type PutV1AccountsByAccountIdResponse = ({
2354
+ export type UpdateAccountResponse = ({
2324
2355
  message?: string;
2325
2356
  username?: string;
2326
2357
  displayName?: string;
2327
2358
  });
2328
2359
 
2329
- export type PutV1AccountsByAccountIdError = (unknown | {
2360
+ export type UpdateAccountError = (unknown | {
2330
2361
  error?: string;
2331
2362
  });
2332
2363
 
2333
- export type DeleteV1AccountsByAccountIdData = {
2364
+ export type DeleteAccountData = {
2334
2365
  path: {
2335
2366
  accountId: string;
2336
2367
  };
2337
2368
  };
2338
2369
 
2339
- export type DeleteV1AccountsByAccountIdResponse = ({
2370
+ export type DeleteAccountResponse = ({
2340
2371
  message?: string;
2341
2372
  });
2342
2373
 
2343
- export type DeleteV1AccountsByAccountIdError = ({
2374
+ export type DeleteAccountError = ({
2344
2375
  error?: string;
2345
2376
  });
2346
2377
 
2347
- export type GetV1AccountsHealthData = {
2378
+ export type GetAllAccountsHealthData = {
2348
2379
  query?: {
2349
2380
  /**
2350
2381
  * Filter by platform
@@ -2361,7 +2392,7 @@ export type GetV1AccountsHealthData = {
2361
2392
  };
2362
2393
  };
2363
2394
 
2364
- export type GetV1AccountsHealthResponse = ({
2395
+ export type GetAllAccountsHealthResponse = ({
2365
2396
  summary?: {
2366
2397
  /**
2367
2398
  * Total number of accounts
@@ -2400,11 +2431,11 @@ export type GetV1AccountsHealthResponse = ({
2400
2431
  }>;
2401
2432
  });
2402
2433
 
2403
- export type GetV1AccountsHealthError = ({
2434
+ export type GetAllAccountsHealthError = ({
2404
2435
  error?: string;
2405
2436
  });
2406
2437
 
2407
- export type GetV1AccountsByAccountIdHealthData = {
2438
+ export type GetAccountHealthData = {
2408
2439
  path: {
2409
2440
  /**
2410
2441
  * The account ID to check
@@ -2413,7 +2444,7 @@ export type GetV1AccountsByAccountIdHealthData = {
2413
2444
  };
2414
2445
  };
2415
2446
 
2416
- export type GetV1AccountsByAccountIdHealthResponse = ({
2447
+ export type GetAccountHealthResponse = ({
2417
2448
  accountId?: string;
2418
2449
  platform?: string;
2419
2450
  username?: string;
@@ -2467,19 +2498,19 @@ export type GetV1AccountsByAccountIdHealthResponse = ({
2467
2498
  recommendations?: Array<(string)>;
2468
2499
  });
2469
2500
 
2470
- export type GetV1AccountsByAccountIdHealthError = ({
2501
+ export type GetAccountHealthError = ({
2471
2502
  error?: string;
2472
2503
  });
2473
2504
 
2474
- export type GetV1ApiKeysResponse = ({
2505
+ export type ListApiKeysResponse = ({
2475
2506
  apiKeys?: Array<ApiKey>;
2476
2507
  });
2477
2508
 
2478
- export type GetV1ApiKeysError = ({
2509
+ export type ListApiKeysError = ({
2479
2510
  error?: string;
2480
2511
  });
2481
2512
 
2482
- export type PostV1ApiKeysData = {
2513
+ export type CreateApiKeyData = {
2483
2514
  body: {
2484
2515
  name: string;
2485
2516
  /**
@@ -2489,30 +2520,30 @@ export type PostV1ApiKeysData = {
2489
2520
  };
2490
2521
  };
2491
2522
 
2492
- export type PostV1ApiKeysResponse = ({
2523
+ export type CreateApiKeyResponse = ({
2493
2524
  message?: string;
2494
2525
  apiKey?: ApiKey;
2495
2526
  });
2496
2527
 
2497
- export type PostV1ApiKeysError = (unknown | {
2528
+ export type CreateApiKeyError = (unknown | {
2498
2529
  error?: string;
2499
2530
  });
2500
2531
 
2501
- export type DeleteV1ApiKeysByKeyIdData = {
2532
+ export type DeleteApiKeyData = {
2502
2533
  path: {
2503
2534
  keyId: string;
2504
2535
  };
2505
2536
  };
2506
2537
 
2507
- export type DeleteV1ApiKeysByKeyIdResponse = ({
2538
+ export type DeleteApiKeyResponse = ({
2508
2539
  message?: string;
2509
2540
  });
2510
2541
 
2511
- export type DeleteV1ApiKeysByKeyIdError = ({
2542
+ export type DeleteApiKeyError = ({
2512
2543
  error?: string;
2513
2544
  });
2514
2545
 
2515
- export type PostV1InviteTokensData = {
2546
+ export type CreateInviteTokenData = {
2516
2547
  body: {
2517
2548
  /**
2518
2549
  * 'all' grants access to all profiles, 'profiles' restricts to specific profiles
@@ -2525,7 +2556,7 @@ export type PostV1InviteTokensData = {
2525
2556
  };
2526
2557
  };
2527
2558
 
2528
- export type PostV1InviteTokensResponse = ({
2559
+ export type CreateInviteTokenResponse = ({
2529
2560
  token?: string;
2530
2561
  scope?: string;
2531
2562
  invitedProfileIds?: Array<(string)>;
@@ -2533,101 +2564,11 @@ export type PostV1InviteTokensResponse = ({
2533
2564
  inviteUrl?: string;
2534
2565
  });
2535
2566
 
2536
- export type PostV1InviteTokensError = (unknown | {
2537
- error?: string;
2538
- });
2539
-
2540
- export type GetV1PlatformInvitesData = {
2541
- query?: {
2542
- /**
2543
- * Optional. Filter invites by profile ID
2544
- */
2545
- profileId?: string;
2546
- };
2547
- };
2548
-
2549
- export type GetV1PlatformInvitesResponse = ({
2550
- invites?: Array<{
2551
- _id?: string;
2552
- token?: string;
2553
- userId?: string;
2554
- /**
2555
- * Populated profile object (not a string ID)
2556
- */
2557
- profileId?: {
2558
- _id?: string;
2559
- name?: string;
2560
- };
2561
- platform?: string;
2562
- inviterName?: string;
2563
- inviterEmail?: string;
2564
- expiresAt?: string;
2565
- isUsed?: boolean;
2566
- createdAt?: string;
2567
- }>;
2568
- });
2569
-
2570
- export type GetV1PlatformInvitesError = ({
2571
- error?: string;
2572
- });
2573
-
2574
- export type PostV1PlatformInvitesData = {
2575
- body: {
2576
- /**
2577
- * Profile ID to connect the account to
2578
- */
2579
- profileId: string;
2580
- /**
2581
- * Platform to connect
2582
- */
2583
- platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'threads' | 'tiktok' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
2584
- };
2585
- };
2586
-
2587
- export type PostV1PlatformInvitesResponse = ({
2588
- invite?: {
2589
- _id?: string;
2590
- token?: string;
2591
- userId?: string;
2592
- /**
2593
- * Populated profile object (not a string ID)
2594
- */
2595
- profileId?: {
2596
- _id?: string;
2597
- name?: string;
2598
- };
2599
- platform?: string;
2600
- inviterName?: string;
2601
- inviterEmail?: string;
2602
- expiresAt?: string;
2603
- isUsed?: boolean;
2604
- createdAt?: string;
2605
- inviteUrl?: string;
2606
- };
2607
- });
2608
-
2609
- export type PostV1PlatformInvitesError = (unknown | {
2610
- error?: string;
2611
- });
2612
-
2613
- export type DeleteV1PlatformInvitesData = {
2614
- query: {
2615
- /**
2616
- * Invite ID to revoke
2617
- */
2618
- id: string;
2619
- };
2620
- };
2621
-
2622
- export type DeleteV1PlatformInvitesResponse = ({
2623
- message?: string;
2624
- });
2625
-
2626
- export type DeleteV1PlatformInvitesError = (unknown | {
2567
+ export type CreateInviteTokenError = (unknown | {
2627
2568
  error?: string;
2628
2569
  });
2629
2570
 
2630
- export type GetV1ConnectByPlatformData = {
2571
+ export type GetConnectUrlData = {
2631
2572
  path: {
2632
2573
  /**
2633
2574
  * Social media platform to connect
@@ -2677,7 +2618,7 @@ export type GetV1ConnectByPlatformData = {
2677
2618
  };
2678
2619
  };
2679
2620
 
2680
- export type GetV1ConnectByPlatformResponse = ({
2621
+ export type GetConnectUrlResponse = ({
2681
2622
  /**
2682
2623
  * URL to redirect your user to for OAuth authorization
2683
2624
  */
@@ -2688,11 +2629,11 @@ export type GetV1ConnectByPlatformResponse = ({
2688
2629
  state?: string;
2689
2630
  });
2690
2631
 
2691
- export type GetV1ConnectByPlatformError = (unknown | {
2632
+ export type GetConnectUrlError = (unknown | {
2692
2633
  error?: string;
2693
2634
  });
2694
2635
 
2695
- export type PostV1ConnectByPlatformData = {
2636
+ export type HandleOAuthCallbackData = {
2696
2637
  body: {
2697
2638
  code: string;
2698
2639
  state: string;
@@ -2703,13 +2644,13 @@ export type PostV1ConnectByPlatformData = {
2703
2644
  };
2704
2645
  };
2705
2646
 
2706
- export type PostV1ConnectByPlatformResponse = (unknown);
2647
+ export type HandleOAuthCallbackResponse = (unknown);
2707
2648
 
2708
- export type PostV1ConnectByPlatformError = (unknown | {
2649
+ export type HandleOAuthCallbackError = (unknown | {
2709
2650
  error?: string;
2710
2651
  });
2711
2652
 
2712
- export type GetV1ConnectFacebookSelectPageData = {
2653
+ export type ListFacebookPagesData = {
2713
2654
  query: {
2714
2655
  /**
2715
2656
  * Profile ID from your connection flow
@@ -2722,7 +2663,7 @@ export type GetV1ConnectFacebookSelectPageData = {
2722
2663
  };
2723
2664
  };
2724
2665
 
2725
- export type GetV1ConnectFacebookSelectPageResponse = ({
2666
+ export type ListFacebookPagesResponse = ({
2726
2667
  pages?: Array<{
2727
2668
  /**
2728
2669
  * Facebook Page ID
@@ -2751,11 +2692,11 @@ export type GetV1ConnectFacebookSelectPageResponse = ({
2751
2692
  }>;
2752
2693
  });
2753
2694
 
2754
- export type GetV1ConnectFacebookSelectPageError = (unknown | {
2695
+ export type ListFacebookPagesError = (unknown | {
2755
2696
  error?: string;
2756
2697
  });
2757
2698
 
2758
- export type PostV1ConnectFacebookSelectPageData = {
2699
+ export type SelectFacebookPageData = {
2759
2700
  body: {
2760
2701
  /**
2761
2702
  * Profile ID from your connection flow
@@ -2784,7 +2725,7 @@ export type PostV1ConnectFacebookSelectPageData = {
2784
2725
  };
2785
2726
  };
2786
2727
 
2787
- export type PostV1ConnectFacebookSelectPageResponse = ({
2728
+ export type SelectFacebookPageResponse = ({
2788
2729
  message?: string;
2789
2730
  /**
2790
2731
  * Redirect URL if custom redirect_url was provided
@@ -2800,11 +2741,11 @@ export type PostV1ConnectFacebookSelectPageResponse = ({
2800
2741
  };
2801
2742
  });
2802
2743
 
2803
- export type PostV1ConnectFacebookSelectPageError = (unknown | {
2744
+ export type SelectFacebookPageError = (unknown | {
2804
2745
  error?: string;
2805
2746
  });
2806
2747
 
2807
- export type GetV1ConnectGooglebusinessLocationsData = {
2748
+ export type ListGoogleBusinessLocationsData = {
2808
2749
  query: {
2809
2750
  /**
2810
2751
  * Profile ID from your connection flow
@@ -2817,7 +2758,7 @@ export type GetV1ConnectGooglebusinessLocationsData = {
2817
2758
  };
2818
2759
  };
2819
2760
 
2820
- export type GetV1ConnectGooglebusinessLocationsResponse = ({
2761
+ export type ListGoogleBusinessLocationsResponse = ({
2821
2762
  locations?: Array<{
2822
2763
  /**
2823
2764
  * Location ID
@@ -2846,11 +2787,11 @@ export type GetV1ConnectGooglebusinessLocationsResponse = ({
2846
2787
  }>;
2847
2788
  });
2848
2789
 
2849
- export type GetV1ConnectGooglebusinessLocationsError = (unknown | {
2790
+ export type ListGoogleBusinessLocationsError = (unknown | {
2850
2791
  error?: string;
2851
2792
  });
2852
2793
 
2853
- export type PostV1ConnectGooglebusinessSelectLocationData = {
2794
+ export type SelectGoogleBusinessLocationData = {
2854
2795
  body: {
2855
2796
  /**
2856
2797
  * Profile ID from your connection flow
@@ -2892,7 +2833,7 @@ export type PostV1ConnectGooglebusinessSelectLocationData = {
2892
2833
  };
2893
2834
  };
2894
2835
 
2895
- export type PostV1ConnectGooglebusinessSelectLocationResponse = ({
2836
+ export type SelectGoogleBusinessLocationResponse = ({
2896
2837
  message?: string;
2897
2838
  /**
2898
2839
  * Redirect URL if custom redirect_url was provided
@@ -2908,11 +2849,11 @@ export type PostV1ConnectGooglebusinessSelectLocationResponse = ({
2908
2849
  };
2909
2850
  });
2910
2851
 
2911
- export type PostV1ConnectGooglebusinessSelectLocationError = (unknown | {
2852
+ export type SelectGoogleBusinessLocationError = (unknown | {
2912
2853
  error?: string;
2913
2854
  });
2914
2855
 
2915
- export type GetV1AccountsByAccountIdGmbReviewsData = {
2856
+ export type GetGoogleBusinessReviewsData = {
2916
2857
  path: {
2917
2858
  /**
2918
2859
  * The Late account ID (from /v1/accounts)
@@ -2931,7 +2872,7 @@ export type GetV1AccountsByAccountIdGmbReviewsData = {
2931
2872
  };
2932
2873
  };
2933
2874
 
2934
- export type GetV1AccountsByAccountIdGmbReviewsResponse = ({
2875
+ export type GetGoogleBusinessReviewsResponse = ({
2935
2876
  success?: boolean;
2936
2877
  accountId?: string;
2937
2878
  locationId?: string;
@@ -2985,11 +2926,11 @@ export type GetV1AccountsByAccountIdGmbReviewsResponse = ({
2985
2926
  nextPageToken?: (string) | null;
2986
2927
  });
2987
2928
 
2988
- export type GetV1AccountsByAccountIdGmbReviewsError = (ErrorResponse | {
2929
+ export type GetGoogleBusinessReviewsError = (ErrorResponse | {
2989
2930
  error?: string;
2990
2931
  });
2991
2932
 
2992
- export type GetV1ConnectLinkedinOrganizationsData = {
2933
+ export type ListLinkedInOrganizationsData = {
2993
2934
  query: {
2994
2935
  /**
2995
2936
  * Comma-separated list of organization IDs to fetch details for (max 100)
@@ -3002,7 +2943,7 @@ export type GetV1ConnectLinkedinOrganizationsData = {
3002
2943
  };
3003
2944
  };
3004
2945
 
3005
- export type GetV1ConnectLinkedinOrganizationsResponse = ({
2946
+ export type ListLinkedInOrganizationsResponse = ({
3006
2947
  organizations?: Array<{
3007
2948
  /**
3008
2949
  * Organization ID
@@ -3031,11 +2972,11 @@ export type GetV1ConnectLinkedinOrganizationsResponse = ({
3031
2972
  }>;
3032
2973
  });
3033
2974
 
3034
- export type GetV1ConnectLinkedinOrganizationsError = ({
2975
+ export type ListLinkedInOrganizationsError = ({
3035
2976
  error?: string;
3036
2977
  } | unknown);
3037
2978
 
3038
- export type PostV1ConnectLinkedinSelectOrganizationData = {
2979
+ export type SelectLinkedInOrganizationData = {
3039
2980
  body: {
3040
2981
  profileId: string;
3041
2982
  tempToken: string;
@@ -3050,16 +2991,16 @@ export type PostV1ConnectLinkedinSelectOrganizationData = {
3050
2991
  };
3051
2992
  };
3052
2993
 
3053
- export type PostV1ConnectLinkedinSelectOrganizationResponse = ({
2994
+ export type SelectLinkedInOrganizationResponse = ({
3054
2995
  message?: string;
3055
2996
  account?: SocialAccount;
3056
2997
  });
3057
2998
 
3058
- export type PostV1ConnectLinkedinSelectOrganizationError = (unknown | {
2999
+ export type SelectLinkedInOrganizationError = (unknown | {
3059
3000
  error?: string;
3060
3001
  });
3061
3002
 
3062
- export type GetV1ConnectPinterestSelectBoardData = {
3003
+ export type ListPinterestBoardsForSelectionData = {
3063
3004
  headers: {
3064
3005
  /**
3065
3006
  * Short-lived connect token from the OAuth redirect
@@ -3078,7 +3019,7 @@ export type GetV1ConnectPinterestSelectBoardData = {
3078
3019
  };
3079
3020
  };
3080
3021
 
3081
- export type GetV1ConnectPinterestSelectBoardResponse = ({
3022
+ export type ListPinterestBoardsForSelectionResponse = ({
3082
3023
  boards?: Array<{
3083
3024
  /**
3084
3025
  * Pinterest Board ID
@@ -3099,11 +3040,11 @@ export type GetV1ConnectPinterestSelectBoardResponse = ({
3099
3040
  }>;
3100
3041
  });
3101
3042
 
3102
- export type GetV1ConnectPinterestSelectBoardError = (unknown | {
3043
+ export type ListPinterestBoardsForSelectionError = (unknown | {
3103
3044
  error?: string;
3104
3045
  });
3105
3046
 
3106
- export type PostV1ConnectPinterestSelectBoardData = {
3047
+ export type SelectPinterestBoardData = {
3107
3048
  body: {
3108
3049
  /**
3109
3050
  * Your Late profile ID
@@ -3142,7 +3083,7 @@ export type PostV1ConnectPinterestSelectBoardData = {
3142
3083
  };
3143
3084
  };
3144
3085
 
3145
- export type PostV1ConnectPinterestSelectBoardResponse = ({
3086
+ export type SelectPinterestBoardResponse = ({
3146
3087
  message?: string;
3147
3088
  /**
3148
3089
  * Redirect URL with connection params (if provided)
@@ -3158,11 +3099,11 @@ export type PostV1ConnectPinterestSelectBoardResponse = ({
3158
3099
  };
3159
3100
  });
3160
3101
 
3161
- export type PostV1ConnectPinterestSelectBoardError = (unknown | {
3102
+ export type SelectPinterestBoardError = (unknown | {
3162
3103
  error?: string;
3163
3104
  });
3164
3105
 
3165
- export type GetV1ConnectSnapchatSelectProfileData = {
3106
+ export type ListSnapchatProfilesData = {
3166
3107
  headers: {
3167
3108
  /**
3168
3109
  * Short-lived connect token from the OAuth redirect
@@ -3181,7 +3122,7 @@ export type GetV1ConnectSnapchatSelectProfileData = {
3181
3122
  };
3182
3123
  };
3183
3124
 
3184
- export type GetV1ConnectSnapchatSelectProfileResponse = ({
3125
+ export type ListSnapchatProfilesResponse = ({
3185
3126
  publicProfiles?: Array<{
3186
3127
  /**
3187
3128
  * Snapchat Public Profile ID
@@ -3206,11 +3147,11 @@ export type GetV1ConnectSnapchatSelectProfileResponse = ({
3206
3147
  }>;
3207
3148
  });
3208
3149
 
3209
- export type GetV1ConnectSnapchatSelectProfileError = (unknown | {
3150
+ export type ListSnapchatProfilesError = (unknown | {
3210
3151
  error?: string;
3211
3152
  });
3212
3153
 
3213
- export type PostV1ConnectSnapchatSelectProfileData = {
3154
+ export type SelectSnapchatProfileData = {
3214
3155
  body: {
3215
3156
  /**
3216
3157
  * Your Late profile ID
@@ -3272,7 +3213,7 @@ export type PostV1ConnectSnapchatSelectProfileData = {
3272
3213
  };
3273
3214
  };
3274
3215
 
3275
- export type PostV1ConnectSnapchatSelectProfileResponse = ({
3216
+ export type SelectSnapchatProfileResponse = ({
3276
3217
  message?: string;
3277
3218
  /**
3278
3219
  * Redirect URL with connection params (if provided in request)
@@ -3288,11 +3229,11 @@ export type PostV1ConnectSnapchatSelectProfileResponse = ({
3288
3229
  };
3289
3230
  });
3290
3231
 
3291
- export type PostV1ConnectSnapchatSelectProfileError = (unknown | {
3232
+ export type SelectSnapchatProfileError = (unknown | {
3292
3233
  error?: string;
3293
3234
  });
3294
3235
 
3295
- export type PostV1ConnectBlueskyCredentialsData = {
3236
+ export type ConnectBlueskyCredentialsData = {
3296
3237
  body: {
3297
3238
  /**
3298
3239
  * Your Bluesky handle (e.g. user.bsky.social) or email address
@@ -3316,16 +3257,16 @@ export type PostV1ConnectBlueskyCredentialsData = {
3316
3257
  };
3317
3258
  };
3318
3259
 
3319
- export type PostV1ConnectBlueskyCredentialsResponse = ({
3260
+ export type ConnectBlueskyCredentialsResponse = ({
3320
3261
  message?: string;
3321
3262
  account?: SocialAccount;
3322
3263
  });
3323
3264
 
3324
- export type PostV1ConnectBlueskyCredentialsError = (unknown | {
3265
+ export type ConnectBlueskyCredentialsError = (unknown | {
3325
3266
  error?: string;
3326
3267
  });
3327
3268
 
3328
- export type GetV1ConnectTelegramData = {
3269
+ export type GetTelegramConnectStatusData = {
3329
3270
  query: {
3330
3271
  /**
3331
3272
  * The profile ID to connect the Telegram account to
@@ -3334,7 +3275,7 @@ export type GetV1ConnectTelegramData = {
3334
3275
  };
3335
3276
  };
3336
3277
 
3337
- export type GetV1ConnectTelegramResponse = ({
3278
+ export type GetTelegramConnectStatusResponse = ({
3338
3279
  /**
3339
3280
  * The access code to send to the Telegram bot
3340
3281
  */
@@ -3357,11 +3298,11 @@ export type GetV1ConnectTelegramResponse = ({
3357
3298
  instructions?: Array<(string)>;
3358
3299
  });
3359
3300
 
3360
- export type GetV1ConnectTelegramError = (unknown | {
3301
+ export type GetTelegramConnectStatusError = (unknown | {
3361
3302
  error?: string;
3362
3303
  });
3363
3304
 
3364
- export type PostV1ConnectTelegramData = {
3305
+ export type InitiateTelegramConnectData = {
3365
3306
  body: {
3366
3307
  /**
3367
3308
  * The Telegram chat ID. Can be:
@@ -3377,7 +3318,7 @@ export type PostV1ConnectTelegramData = {
3377
3318
  };
3378
3319
  };
3379
3320
 
3380
- export type PostV1ConnectTelegramResponse = ({
3321
+ export type InitiateTelegramConnectResponse = ({
3381
3322
  message?: string;
3382
3323
  account?: {
3383
3324
  _id?: string;
@@ -3389,11 +3330,11 @@ export type PostV1ConnectTelegramResponse = ({
3389
3330
  };
3390
3331
  });
3391
3332
 
3392
- export type PostV1ConnectTelegramError = (unknown | {
3333
+ export type InitiateTelegramConnectError = (unknown | {
3393
3334
  error?: string;
3394
3335
  });
3395
3336
 
3396
- export type PatchV1ConnectTelegramData = {
3337
+ export type CompleteTelegramConnectData = {
3397
3338
  query: {
3398
3339
  /**
3399
3340
  * The access code to check status for
@@ -3402,7 +3343,7 @@ export type PatchV1ConnectTelegramData = {
3402
3343
  };
3403
3344
  };
3404
3345
 
3405
- export type PatchV1ConnectTelegramResponse = (({
3346
+ export type CompleteTelegramConnectResponse = (({
3406
3347
  status?: 'pending';
3407
3348
  expiresAt?: string;
3408
3349
  /**
@@ -3425,11 +3366,11 @@ export type PatchV1ConnectTelegramResponse = (({
3425
3366
  message?: string;
3426
3367
  }));
3427
3368
 
3428
- export type PatchV1ConnectTelegramError = ({
3369
+ export type CompleteTelegramConnectError = ({
3429
3370
  error?: string;
3430
3371
  } | unknown);
3431
3372
 
3432
- export type PutV1AccountsByAccountIdFacebookPageData = {
3373
+ export type UpdateFacebookPageData = {
3433
3374
  body: {
3434
3375
  selectedPageId: string;
3435
3376
  };
@@ -3438,22 +3379,22 @@ export type PutV1AccountsByAccountIdFacebookPageData = {
3438
3379
  };
3439
3380
  };
3440
3381
 
3441
- export type PutV1AccountsByAccountIdFacebookPageResponse = ({
3382
+ export type UpdateFacebookPageResponse = ({
3442
3383
  message?: string;
3443
3384
  account?: SocialAccount;
3444
3385
  });
3445
3386
 
3446
- export type PutV1AccountsByAccountIdFacebookPageError = (unknown | {
3387
+ export type UpdateFacebookPageError = (unknown | {
3447
3388
  error?: string;
3448
3389
  });
3449
3390
 
3450
- export type GetV1AccountsByAccountIdLinkedinOrganizationsData = {
3391
+ export type GetLinkedInOrganizationsData = {
3451
3392
  path: {
3452
3393
  accountId: string;
3453
3394
  };
3454
3395
  };
3455
3396
 
3456
- export type GetV1AccountsByAccountIdLinkedinOrganizationsResponse = ({
3397
+ export type GetLinkedInOrganizationsResponse = ({
3457
3398
  organizations?: Array<{
3458
3399
  id?: string;
3459
3400
  name?: string;
@@ -3462,11 +3403,11 @@ export type GetV1AccountsByAccountIdLinkedinOrganizationsResponse = ({
3462
3403
  }>;
3463
3404
  });
3464
3405
 
3465
- export type GetV1AccountsByAccountIdLinkedinOrganizationsError = ({
3406
+ export type GetLinkedInOrganizationsError = ({
3466
3407
  error?: string;
3467
3408
  } | unknown);
3468
3409
 
3469
- export type GetV1AccountsByAccountIdLinkedinAggregateAnalyticsData = {
3410
+ export type GetLinkedInAggregateAnalyticsData = {
3470
3411
  path: {
3471
3412
  /**
3472
3413
  * The ID of the LinkedIn personal account
@@ -3505,9 +3446,9 @@ export type GetV1AccountsByAccountIdLinkedinAggregateAnalyticsData = {
3505
3446
  };
3506
3447
  };
3507
3448
 
3508
- export type GetV1AccountsByAccountIdLinkedinAggregateAnalyticsResponse = ((LinkedInAggregateAnalyticsTotalResponse | LinkedInAggregateAnalyticsDailyResponse));
3449
+ export type GetLinkedInAggregateAnalyticsResponse = ((LinkedInAggregateAnalyticsTotalResponse | LinkedInAggregateAnalyticsDailyResponse));
3509
3450
 
3510
- export type GetV1AccountsByAccountIdLinkedinAggregateAnalyticsError = ({
3451
+ export type GetLinkedInAggregateAnalyticsError = ({
3511
3452
  error?: string;
3512
3453
  code?: string;
3513
3454
  validOptions?: Array<(string)>;
@@ -3523,7 +3464,7 @@ export type GetV1AccountsByAccountIdLinkedinAggregateAnalyticsError = ({
3523
3464
  action?: string;
3524
3465
  } | unknown);
3525
3466
 
3526
- export type GetV1AccountsByAccountIdLinkedinPostAnalyticsData = {
3467
+ export type GetLinkedInPostAnalyticsData = {
3527
3468
  path: {
3528
3469
  /**
3529
3470
  * The ID of the LinkedIn account
@@ -3538,7 +3479,7 @@ export type GetV1AccountsByAccountIdLinkedinPostAnalyticsData = {
3538
3479
  };
3539
3480
  };
3540
3481
 
3541
- export type GetV1AccountsByAccountIdLinkedinPostAnalyticsResponse = ({
3482
+ export type GetLinkedInPostAnalyticsResponse = ({
3542
3483
  accountId?: string;
3543
3484
  platform?: string;
3544
3485
  accountType?: 'personal' | 'organization';
@@ -3581,7 +3522,7 @@ export type GetV1AccountsByAccountIdLinkedinPostAnalyticsResponse = ({
3581
3522
  lastUpdated?: string;
3582
3523
  });
3583
3524
 
3584
- export type GetV1AccountsByAccountIdLinkedinPostAnalyticsError = ({
3525
+ export type GetLinkedInPostAnalyticsError = ({
3585
3526
  error?: string;
3586
3527
  code?: 'missing_urn' | 'invalid_urn' | 'invalid_platform';
3587
3528
  } | {
@@ -3596,7 +3537,7 @@ export type GetV1AccountsByAccountIdLinkedinPostAnalyticsError = ({
3596
3537
  code?: string;
3597
3538
  });
3598
3539
 
3599
- export type PutV1AccountsByAccountIdLinkedinOrganizationData = {
3540
+ export type UpdateLinkedInOrganizationData = {
3600
3541
  body: {
3601
3542
  accountType: 'personal' | 'organization';
3602
3543
  selectedOrganization?: {
@@ -3608,16 +3549,16 @@ export type PutV1AccountsByAccountIdLinkedinOrganizationData = {
3608
3549
  };
3609
3550
  };
3610
3551
 
3611
- export type PutV1AccountsByAccountIdLinkedinOrganizationResponse = ({
3552
+ export type UpdateLinkedInOrganizationResponse = ({
3612
3553
  message?: string;
3613
3554
  account?: SocialAccount;
3614
3555
  });
3615
3556
 
3616
- export type PutV1AccountsByAccountIdLinkedinOrganizationError = (unknown | {
3557
+ export type UpdateLinkedInOrganizationError = (unknown | {
3617
3558
  error?: string;
3618
3559
  });
3619
3560
 
3620
- export type GetV1AccountsByAccountIdLinkedinMentionsData = {
3561
+ export type GetLinkedInMentionsData = {
3621
3562
  path: {
3622
3563
  /**
3623
3564
  * The LinkedIn account ID
@@ -3642,7 +3583,7 @@ export type GetV1AccountsByAccountIdLinkedinMentionsData = {
3642
3583
  };
3643
3584
  };
3644
3585
 
3645
- export type GetV1AccountsByAccountIdLinkedinMentionsResponse = ({
3586
+ export type GetLinkedInMentionsResponse = ({
3646
3587
  /**
3647
3588
  * The LinkedIn URN (person or organization)
3648
3589
  */
@@ -3669,17 +3610,17 @@ export type GetV1AccountsByAccountIdLinkedinMentionsResponse = ({
3669
3610
  warning?: string;
3670
3611
  });
3671
3612
 
3672
- export type GetV1AccountsByAccountIdLinkedinMentionsError = ({
3613
+ export type GetLinkedInMentionsError = ({
3673
3614
  error?: string;
3674
3615
  });
3675
3616
 
3676
- export type GetV1AccountsByAccountIdPinterestBoardsData = {
3617
+ export type GetPinterestBoardsData = {
3677
3618
  path: {
3678
3619
  accountId: string;
3679
3620
  };
3680
3621
  };
3681
3622
 
3682
- export type GetV1AccountsByAccountIdPinterestBoardsResponse = ({
3623
+ export type GetPinterestBoardsResponse = ({
3683
3624
  boards?: Array<{
3684
3625
  id?: string;
3685
3626
  name?: string;
@@ -3688,11 +3629,11 @@ export type GetV1AccountsByAccountIdPinterestBoardsResponse = ({
3688
3629
  }>;
3689
3630
  });
3690
3631
 
3691
- export type GetV1AccountsByAccountIdPinterestBoardsError = (unknown | {
3632
+ export type GetPinterestBoardsError = (unknown | {
3692
3633
  error?: string;
3693
3634
  });
3694
3635
 
3695
- export type PutV1AccountsByAccountIdPinterestBoardsData = {
3636
+ export type UpdatePinterestBoardsData = {
3696
3637
  body: {
3697
3638
  defaultBoardId: string;
3698
3639
  defaultBoardName?: string;
@@ -3702,22 +3643,22 @@ export type PutV1AccountsByAccountIdPinterestBoardsData = {
3702
3643
  };
3703
3644
  };
3704
3645
 
3705
- export type PutV1AccountsByAccountIdPinterestBoardsResponse = ({
3646
+ export type UpdatePinterestBoardsResponse = ({
3706
3647
  message?: string;
3707
3648
  account?: SocialAccount;
3708
3649
  });
3709
3650
 
3710
- export type PutV1AccountsByAccountIdPinterestBoardsError = (unknown | {
3651
+ export type UpdatePinterestBoardsError = (unknown | {
3711
3652
  error?: string;
3712
3653
  });
3713
3654
 
3714
- export type GetV1AccountsByAccountIdRedditSubredditsData = {
3655
+ export type GetRedditSubredditsData = {
3715
3656
  path: {
3716
3657
  accountId: string;
3717
3658
  };
3718
3659
  };
3719
3660
 
3720
- export type GetV1AccountsByAccountIdRedditSubredditsResponse = ({
3661
+ export type GetRedditSubredditsResponse = ({
3721
3662
  subreddits?: Array<{
3722
3663
  name?: string;
3723
3664
  displayName?: string;
@@ -3726,11 +3667,11 @@ export type GetV1AccountsByAccountIdRedditSubredditsResponse = ({
3726
3667
  }>;
3727
3668
  });
3728
3669
 
3729
- export type GetV1AccountsByAccountIdRedditSubredditsError = (unknown | {
3670
+ export type GetRedditSubredditsError = (unknown | {
3730
3671
  error?: string;
3731
3672
  });
3732
3673
 
3733
- export type PutV1AccountsByAccountIdRedditSubredditsData = {
3674
+ export type UpdateRedditSubredditsData = {
3734
3675
  body: {
3735
3676
  defaultSubreddit: string;
3736
3677
  };
@@ -3739,16 +3680,16 @@ export type PutV1AccountsByAccountIdRedditSubredditsData = {
3739
3680
  };
3740
3681
  };
3741
3682
 
3742
- export type PutV1AccountsByAccountIdRedditSubredditsResponse = ({
3683
+ export type UpdateRedditSubredditsResponse = ({
3743
3684
  message?: string;
3744
3685
  account?: SocialAccount;
3745
3686
  });
3746
3687
 
3747
- export type PutV1AccountsByAccountIdRedditSubredditsError = (unknown | {
3688
+ export type UpdateRedditSubredditsError = (unknown | {
3748
3689
  error?: string;
3749
3690
  });
3750
3691
 
3751
- export type GetV1QueueSlotsData = {
3692
+ export type ListQueueSlotsData = {
3752
3693
  query: {
3753
3694
  /**
3754
3695
  * Set to 'true' to list all queues for the profile
@@ -3765,7 +3706,7 @@ export type GetV1QueueSlotsData = {
3765
3706
  };
3766
3707
  };
3767
3708
 
3768
- export type GetV1QueueSlotsResponse = (({
3709
+ export type ListQueueSlotsResponse = (({
3769
3710
  exists?: boolean;
3770
3711
  schedule?: QueueSchedule;
3771
3712
  nextSlots?: Array<(string)>;
@@ -3774,11 +3715,11 @@ export type GetV1QueueSlotsResponse = (({
3774
3715
  count?: number;
3775
3716
  }));
3776
3717
 
3777
- export type GetV1QueueSlotsError = (unknown | {
3718
+ export type ListQueueSlotsError = (unknown | {
3778
3719
  error?: string;
3779
3720
  });
3780
3721
 
3781
- export type PostV1QueueSlotsData = {
3722
+ export type CreateQueueSlotData = {
3782
3723
  body: {
3783
3724
  /**
3784
3725
  * Profile ID
@@ -3797,17 +3738,17 @@ export type PostV1QueueSlotsData = {
3797
3738
  };
3798
3739
  };
3799
3740
 
3800
- export type PostV1QueueSlotsResponse = ({
3741
+ export type CreateQueueSlotResponse = ({
3801
3742
  success?: boolean;
3802
3743
  schedule?: QueueSchedule;
3803
3744
  nextSlots?: Array<(string)>;
3804
3745
  });
3805
3746
 
3806
- export type PostV1QueueSlotsError = (unknown | {
3747
+ export type CreateQueueSlotError = (unknown | {
3807
3748
  error?: string;
3808
3749
  });
3809
3750
 
3810
- export type PutV1QueueSlotsData = {
3751
+ export type UpdateQueueSlotData = {
3811
3752
  body: {
3812
3753
  profileId: string;
3813
3754
  /**
@@ -3832,18 +3773,18 @@ export type PutV1QueueSlotsData = {
3832
3773
  };
3833
3774
  };
3834
3775
 
3835
- export type PutV1QueueSlotsResponse = ({
3776
+ export type UpdateQueueSlotResponse = ({
3836
3777
  success?: boolean;
3837
3778
  schedule?: QueueSchedule;
3838
3779
  nextSlots?: Array<(string)>;
3839
3780
  reshuffledCount?: number;
3840
3781
  });
3841
3782
 
3842
- export type PutV1QueueSlotsError = (unknown | {
3783
+ export type UpdateQueueSlotError = (unknown | {
3843
3784
  error?: string;
3844
3785
  });
3845
3786
 
3846
- export type DeleteV1QueueSlotsData = {
3787
+ export type DeleteQueueSlotData = {
3847
3788
  query: {
3848
3789
  profileId: string;
3849
3790
  /**
@@ -3853,33 +3794,33 @@ export type DeleteV1QueueSlotsData = {
3853
3794
  };
3854
3795
  };
3855
3796
 
3856
- export type DeleteV1QueueSlotsResponse = ({
3797
+ export type DeleteQueueSlotResponse = ({
3857
3798
  success?: boolean;
3858
3799
  deleted?: boolean;
3859
3800
  });
3860
3801
 
3861
- export type DeleteV1QueueSlotsError = (unknown | {
3802
+ export type DeleteQueueSlotError = (unknown | {
3862
3803
  error?: string;
3863
3804
  });
3864
3805
 
3865
- export type GetV1QueuePreviewData = {
3806
+ export type PreviewQueueData = {
3866
3807
  query: {
3867
3808
  count?: number;
3868
3809
  profileId: string;
3869
3810
  };
3870
3811
  };
3871
3812
 
3872
- export type GetV1QueuePreviewResponse = ({
3813
+ export type PreviewQueueResponse = ({
3873
3814
  profileId?: string;
3874
3815
  count?: number;
3875
3816
  slots?: Array<(string)>;
3876
3817
  });
3877
3818
 
3878
- export type GetV1QueuePreviewError = (unknown | {
3819
+ export type PreviewQueueError = (unknown | {
3879
3820
  error?: string;
3880
3821
  });
3881
3822
 
3882
- export type GetV1QueueNextSlotData = {
3823
+ export type GetNextQueueSlotData = {
3883
3824
  query: {
3884
3825
  profileId: string;
3885
3826
  /**
@@ -3889,7 +3830,7 @@ export type GetV1QueueNextSlotData = {
3889
3830
  };
3890
3831
  };
3891
3832
 
3892
- export type GetV1QueueNextSlotResponse = ({
3833
+ export type GetNextQueueSlotResponse = ({
3893
3834
  profileId?: string;
3894
3835
  nextSlot?: string;
3895
3836
  timezone?: string;
@@ -3903,19 +3844,19 @@ export type GetV1QueueNextSlotResponse = ({
3903
3844
  queueName?: string;
3904
3845
  });
3905
3846
 
3906
- export type GetV1QueueNextSlotError = (unknown | {
3847
+ export type GetNextQueueSlotError = (unknown | {
3907
3848
  error?: string;
3908
3849
  });
3909
3850
 
3910
- export type GetV1WebhooksSettingsResponse = ({
3851
+ export type GetWebhookSettingsResponse = ({
3911
3852
  webhooks?: Array<Webhook>;
3912
3853
  });
3913
3854
 
3914
- export type GetV1WebhooksSettingsError = ({
3855
+ export type GetWebhookSettingsError = ({
3915
3856
  error?: string;
3916
3857
  });
3917
3858
 
3918
- export type PostV1WebhooksSettingsData = {
3859
+ export type CreateWebhookSettingsData = {
3919
3860
  body: {
3920
3861
  /**
3921
3862
  * Webhook name (max 50 characters)
@@ -3932,7 +3873,7 @@ export type PostV1WebhooksSettingsData = {
3932
3873
  /**
3933
3874
  * Events to subscribe to
3934
3875
  */
3935
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
3876
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
3936
3877
  /**
3937
3878
  * Enable or disable webhook delivery
3938
3879
  */
@@ -3946,16 +3887,16 @@ export type PostV1WebhooksSettingsData = {
3946
3887
  };
3947
3888
  };
3948
3889
 
3949
- export type PostV1WebhooksSettingsResponse = ({
3890
+ export type CreateWebhookSettingsResponse = ({
3950
3891
  success?: boolean;
3951
3892
  webhook?: Webhook;
3952
3893
  });
3953
3894
 
3954
- export type PostV1WebhooksSettingsError = (unknown | {
3895
+ export type CreateWebhookSettingsError = (unknown | {
3955
3896
  error?: string;
3956
3897
  });
3957
3898
 
3958
- export type PutV1WebhooksSettingsData = {
3899
+ export type UpdateWebhookSettingsData = {
3959
3900
  body: {
3960
3901
  /**
3961
3902
  * Webhook ID to update (required)
@@ -3976,7 +3917,7 @@ export type PutV1WebhooksSettingsData = {
3976
3917
  /**
3977
3918
  * Events to subscribe to
3978
3919
  */
3979
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
3920
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
3980
3921
  /**
3981
3922
  * Enable or disable webhook delivery
3982
3923
  */
@@ -3990,16 +3931,16 @@ export type PutV1WebhooksSettingsData = {
3990
3931
  };
3991
3932
  };
3992
3933
 
3993
- export type PutV1WebhooksSettingsResponse = ({
3934
+ export type UpdateWebhookSettingsResponse = ({
3994
3935
  success?: boolean;
3995
3936
  webhook?: Webhook;
3996
3937
  });
3997
3938
 
3998
- export type PutV1WebhooksSettingsError = (unknown | {
3939
+ export type UpdateWebhookSettingsError = (unknown | {
3999
3940
  error?: string;
4000
3941
  });
4001
3942
 
4002
- export type DeleteV1WebhooksSettingsData = {
3943
+ export type DeleteWebhookSettingsData = {
4003
3944
  query: {
4004
3945
  /**
4005
3946
  * Webhook ID to delete
@@ -4008,15 +3949,15 @@ export type DeleteV1WebhooksSettingsData = {
4008
3949
  };
4009
3950
  };
4010
3951
 
4011
- export type DeleteV1WebhooksSettingsResponse = ({
3952
+ export type DeleteWebhookSettingsResponse = ({
4012
3953
  success?: boolean;
4013
3954
  });
4014
3955
 
4015
- export type DeleteV1WebhooksSettingsError = (unknown | {
3956
+ export type DeleteWebhookSettingsError = (unknown | {
4016
3957
  error?: string;
4017
3958
  });
4018
3959
 
4019
- export type PostV1WebhooksTestData = {
3960
+ export type TestWebhookData = {
4020
3961
  body: {
4021
3962
  /**
4022
3963
  * ID of the webhook to test
@@ -4025,24 +3966,24 @@ export type PostV1WebhooksTestData = {
4025
3966
  };
4026
3967
  };
4027
3968
 
4028
- export type PostV1WebhooksTestResponse = ({
3969
+ export type TestWebhookResponse = ({
4029
3970
  success?: boolean;
4030
3971
  message?: string;
4031
3972
  });
4032
3973
 
4033
- export type PostV1WebhooksTestError = (unknown | {
3974
+ export type TestWebhookError = (unknown | {
4034
3975
  error?: string;
4035
3976
  } | {
4036
3977
  success?: boolean;
4037
3978
  message?: string;
4038
3979
  });
4039
3980
 
4040
- export type GetV1WebhooksLogsData = {
3981
+ export type GetWebhookLogsData = {
4041
3982
  query?: {
4042
3983
  /**
4043
3984
  * Filter by event type
4044
3985
  */
4045
- event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
3986
+ event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
4046
3987
  /**
4047
3988
  * Maximum number of logs to return (max 100)
4048
3989
  */
@@ -4058,15 +3999,15 @@ export type GetV1WebhooksLogsData = {
4058
3999
  };
4059
4000
  };
4060
4001
 
4061
- export type GetV1WebhooksLogsResponse = ({
4002
+ export type GetWebhookLogsResponse = ({
4062
4003
  logs?: Array<WebhookLog>;
4063
4004
  });
4064
4005
 
4065
- export type GetV1WebhooksLogsError = ({
4006
+ export type GetWebhookLogsError = ({
4066
4007
  error?: string;
4067
4008
  });
4068
4009
 
4069
- export type GetV1LogsData = {
4010
+ export type ListLogsData = {
4070
4011
  query?: {
4071
4012
  /**
4072
4013
  * Filter by action type
@@ -4095,7 +4036,7 @@ export type GetV1LogsData = {
4095
4036
  };
4096
4037
  };
4097
4038
 
4098
- export type GetV1LogsResponse = ({
4039
+ export type ListLogsResponse = ({
4099
4040
  logs?: Array<PostLog>;
4100
4041
  pagination?: {
4101
4042
  /**
@@ -4112,11 +4053,11 @@ export type GetV1LogsResponse = ({
4112
4053
  };
4113
4054
  });
4114
4055
 
4115
- export type GetV1LogsError = ({
4056
+ export type ListLogsError = ({
4116
4057
  error?: string;
4117
4058
  });
4118
4059
 
4119
- export type GetV1LogsByLogIdData = {
4060
+ export type GetLogData = {
4120
4061
  path: {
4121
4062
  /**
4122
4063
  * The log entry ID
@@ -4125,15 +4066,15 @@ export type GetV1LogsByLogIdData = {
4125
4066
  };
4126
4067
  };
4127
4068
 
4128
- export type GetV1LogsByLogIdResponse = ({
4069
+ export type GetLogResponse = ({
4129
4070
  log?: PostLogDetail;
4130
4071
  });
4131
4072
 
4132
- export type GetV1LogsByLogIdError = ({
4073
+ export type GetLogError = ({
4133
4074
  error?: string;
4134
4075
  } | unknown);
4135
4076
 
4136
- export type GetV1PostsByPostIdLogsData = {
4077
+ export type GetPostLogsData = {
4137
4078
  path: {
4138
4079
  /**
4139
4080
  * The post ID
@@ -4148,7 +4089,7 @@ export type GetV1PostsByPostIdLogsData = {
4148
4089
  };
4149
4090
  };
4150
4091
 
4151
- export type GetV1PostsByPostIdLogsResponse = ({
4092
+ export type GetPostLogsResponse = ({
4152
4093
  logs?: Array<PostLog>;
4153
4094
  /**
4154
4095
  * Number of logs returned
@@ -4157,6 +4098,6 @@ export type GetV1PostsByPostIdLogsResponse = ({
4157
4098
  postId?: string;
4158
4099
  });
4159
4100
 
4160
- export type GetV1PostsByPostIdLogsError = ({
4101
+ export type GetPostLogsError = ({
4161
4102
  error?: string;
4162
4103
  } | unknown);