@openhandle/sdk 1.2.6 → 1.2.8
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.
- package/dist/generated/operations.d.ts +387 -0
- package/dist/generated/operations.d.ts.map +1 -1
- package/dist/generated/operations.js +520 -0
- package/dist/generated/operations.js.map +1 -1
- package/dist/generated/public-types.d.ts +174 -0
- package/dist/generated/public-types.d.ts.map +1 -1
- package/dist/generated/resources.d.ts +437 -8
- package/dist/generated/resources.d.ts.map +1 -1
- package/dist/generated/schema.d.ts +14896 -2955
- package/dist/generated/schema.d.ts.map +1 -1
- package/dist/references.d.ts.map +1 -1
- package/dist/references.js +45 -7
- package/dist/references.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export interface GeneratedClient {
|
|
|
5
5
|
readonly testData: TestDataResource;
|
|
6
6
|
readonly tiktok: TikTokResource;
|
|
7
7
|
readonly twitter: TwitterResource;
|
|
8
|
+
readonly youtube: YouTubeResource;
|
|
8
9
|
/**
|
|
9
10
|
* Fetch the resource at a social URL
|
|
10
11
|
*
|
|
@@ -468,7 +469,7 @@ export interface InstagramProfilePinnedPostsResource {
|
|
|
468
469
|
/**
|
|
469
470
|
* List profile pinned posts
|
|
470
471
|
*
|
|
471
|
-
* Return a cursor-paginated Instagram profile
|
|
472
|
+
* Return a cursor-paginated collection of a public Instagram profile's pinned posts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
472
473
|
*
|
|
473
474
|
* @example
|
|
474
475
|
* await openhandle.instagram.profile("@northstar_forge_test").pinnedPosts.list({ freshness: "24h" });
|
|
@@ -494,7 +495,7 @@ export interface InstagramProfileReelsResource {
|
|
|
494
495
|
/**
|
|
495
496
|
* List profile reels
|
|
496
497
|
*
|
|
497
|
-
* Return a cursor-paginated Instagram profile
|
|
498
|
+
* Return a cursor-paginated collection of a public Instagram profile's reels. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
498
499
|
*
|
|
499
500
|
* @example
|
|
500
501
|
* await openhandle.instagram.profile("@northstar_forge_test").reels.list({ freshness: "24h" });
|
|
@@ -507,7 +508,7 @@ export interface InstagramProfileRepostsResource {
|
|
|
507
508
|
/**
|
|
508
509
|
* List profile reposts
|
|
509
510
|
*
|
|
510
|
-
* Return a cursor-paginated Instagram profile
|
|
511
|
+
* Return a cursor-paginated collection of a public Instagram profile's reposts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
511
512
|
*
|
|
512
513
|
* @example
|
|
513
514
|
* await openhandle.instagram.profile("@northstar_forge_test").reposts.list({ freshness: "24h" });
|
|
@@ -546,7 +547,7 @@ export interface InstagramProfileTaggedPostsResource {
|
|
|
546
547
|
/**
|
|
547
548
|
* List profile tagged posts
|
|
548
549
|
*
|
|
549
|
-
* Return a cursor-paginated Instagram profile
|
|
550
|
+
* Return a cursor-paginated collection of a public Instagram profile's tagged posts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
550
551
|
*
|
|
551
552
|
* @example
|
|
552
553
|
* await openhandle.instagram.profile("@northstar_forge_test").taggedPosts.list({ freshness: "24h" });
|
|
@@ -559,7 +560,7 @@ export interface InstagramProfileVideosResource {
|
|
|
559
560
|
/**
|
|
560
561
|
* List profile videos
|
|
561
562
|
*
|
|
562
|
-
* Return a cursor-paginated Instagram profile
|
|
563
|
+
* Return a cursor-paginated collection of a public Instagram profile's videos. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
563
564
|
*
|
|
564
565
|
* @example
|
|
565
566
|
* await openhandle.instagram.profile("@northstar_forge_test").videos.list({ freshness: "24h" });
|
|
@@ -1277,7 +1278,7 @@ export interface TikTokProfileLikedPostsResource {
|
|
|
1277
1278
|
/**
|
|
1278
1279
|
* List profile liked posts
|
|
1279
1280
|
*
|
|
1280
|
-
* Return a cursor-paginated Tiktok profile
|
|
1281
|
+
* Return a cursor-paginated collection of a public Tiktok profile's liked posts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1281
1282
|
*
|
|
1282
1283
|
* @example
|
|
1283
1284
|
* await openhandle.tiktok.profile("@pixel_orchard_tt_test").likedPosts.list({ freshness: "24h" });
|
|
@@ -1603,7 +1604,7 @@ export interface TwitterProfileMediaResource {
|
|
|
1603
1604
|
/**
|
|
1604
1605
|
* List profile media
|
|
1605
1606
|
*
|
|
1606
|
-
* Return a cursor-paginated Twitter profile
|
|
1607
|
+
* Return a cursor-paginated collection of a public Twitter profile's media. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1607
1608
|
*
|
|
1608
1609
|
* @example
|
|
1609
1610
|
* await openhandle.twitter.profile("@copperfield_lab_x_test").media.list({ freshness: "24h" });
|
|
@@ -1629,7 +1630,7 @@ export interface TwitterProfileRepliesResource {
|
|
|
1629
1630
|
/**
|
|
1630
1631
|
* List profile replies
|
|
1631
1632
|
*
|
|
1632
|
-
* Return a cursor-paginated Twitter profile
|
|
1633
|
+
* Return a cursor-paginated collection of a public Twitter profile's replies. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1633
1634
|
*
|
|
1634
1635
|
* @example
|
|
1635
1636
|
* await openhandle.twitter.profile("@copperfield_lab_x_test").replies.list({ freshness: "24h" });
|
|
@@ -1696,4 +1697,432 @@ export interface TwitterSearchUsersResource {
|
|
|
1696
1697
|
*/
|
|
1697
1698
|
readonly list: (options: OperationOptions<"/v1/twitter/search/users", "get">) => Promise<OperationPage<"/v1/twitter/search/users", "get">>;
|
|
1698
1699
|
}
|
|
1700
|
+
export interface YouTubeResource {
|
|
1701
|
+
readonly charts: YouTubeChartsResource;
|
|
1702
|
+
/**
|
|
1703
|
+
* Select the communityPost resource using a supported string shorthand or an explicit ID or URL reference.
|
|
1704
|
+
*
|
|
1705
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1706
|
+
*/
|
|
1707
|
+
readonly communityPost: (reference: ResourceReference) => YouTubeCommunityPostResource;
|
|
1708
|
+
/**
|
|
1709
|
+
* Select the hashtag resource using a supported string shorthand or an explicit ID or URL reference.
|
|
1710
|
+
*
|
|
1711
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1712
|
+
*/
|
|
1713
|
+
readonly hashtag: (reference: ResourceReference) => YouTubeHashtagResource;
|
|
1714
|
+
/**
|
|
1715
|
+
* Select the playlist resource using a supported string shorthand or an explicit ID or URL reference.
|
|
1716
|
+
*
|
|
1717
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1718
|
+
*/
|
|
1719
|
+
readonly playlist: (reference: ResourceReference) => YouTubePlaylistResource;
|
|
1720
|
+
/**
|
|
1721
|
+
* Select the post resource using a supported string shorthand or an explicit ID or URL reference.
|
|
1722
|
+
*
|
|
1723
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1724
|
+
*/
|
|
1725
|
+
readonly post: (reference: ResourceReference) => YouTubePostResource;
|
|
1726
|
+
/**
|
|
1727
|
+
* Select the profile resource using a username shorthand or an explicit ID or URL reference.
|
|
1728
|
+
*
|
|
1729
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1730
|
+
*/
|
|
1731
|
+
readonly profile: (reference: ProfileReference) => YouTubeProfileResource;
|
|
1732
|
+
readonly search: YouTubeSearchResource;
|
|
1733
|
+
readonly trending: YouTubeTrendingResource;
|
|
1734
|
+
}
|
|
1735
|
+
export interface YouTubeChartsResource {
|
|
1736
|
+
readonly artists: YouTubeChartsArtistsResource;
|
|
1737
|
+
readonly tracks: YouTubeChartsTracksResource;
|
|
1738
|
+
readonly videos: YouTubeChartsVideosResource;
|
|
1739
|
+
}
|
|
1740
|
+
export interface YouTubeChartsArtistsResource {
|
|
1741
|
+
/**
|
|
1742
|
+
* List top artists
|
|
1743
|
+
*
|
|
1744
|
+
* Return the weekly top artists chart of one country. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1745
|
+
*
|
|
1746
|
+
* @example
|
|
1747
|
+
* await openhandle.youtube.charts.artists.list({ freshness: "24h" });
|
|
1748
|
+
*
|
|
1749
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-charts-artists-list
|
|
1750
|
+
*/
|
|
1751
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/charts/artists", "get">) => Promise<OperationResponse<"/v1/youtube/charts/artists", "get">>;
|
|
1752
|
+
}
|
|
1753
|
+
export interface YouTubeChartsTracksResource {
|
|
1754
|
+
/**
|
|
1755
|
+
* List top songs
|
|
1756
|
+
*
|
|
1757
|
+
* Return the weekly top songs chart of one country. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1758
|
+
*
|
|
1759
|
+
* @example
|
|
1760
|
+
* await openhandle.youtube.charts.tracks.list({ freshness: "24h" });
|
|
1761
|
+
*
|
|
1762
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-charts-tracks-list
|
|
1763
|
+
*/
|
|
1764
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/charts/tracks", "get">) => Promise<OperationResponse<"/v1/youtube/charts/tracks", "get">>;
|
|
1765
|
+
}
|
|
1766
|
+
export interface YouTubeChartsVideosResource {
|
|
1767
|
+
/**
|
|
1768
|
+
* List top music videos
|
|
1769
|
+
*
|
|
1770
|
+
* Return the weekly top music videos chart of one country. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1771
|
+
*
|
|
1772
|
+
* @example
|
|
1773
|
+
* await openhandle.youtube.charts.videos.list({ freshness: "24h" });
|
|
1774
|
+
*
|
|
1775
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-charts-videos-list
|
|
1776
|
+
*/
|
|
1777
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/charts/videos", "get">) => Promise<OperationResponse<"/v1/youtube/charts/videos", "get">>;
|
|
1778
|
+
}
|
|
1779
|
+
export interface YouTubeCommunityPostResource {
|
|
1780
|
+
readonly comments: YouTubeCommunityPostCommentsResource;
|
|
1781
|
+
/**
|
|
1782
|
+
* Get a community post
|
|
1783
|
+
*
|
|
1784
|
+
* Return one public YouTube community post. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1785
|
+
*
|
|
1786
|
+
* @example
|
|
1787
|
+
* await openhandle.youtube.communityPost("Ugsynthpost001").get({ freshness: "24h" });
|
|
1788
|
+
*
|
|
1789
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-community-post-get
|
|
1790
|
+
*/
|
|
1791
|
+
readonly get: (options?: OperationOptions<"/v1/youtube/community-posts/{identifier}", "get">) => Promise<OperationResponse<"/v1/youtube/community-posts/{identifier}", "get">>;
|
|
1792
|
+
}
|
|
1793
|
+
export interface YouTubeCommunityPostCommentsResource {
|
|
1794
|
+
/**
|
|
1795
|
+
* List community post comments
|
|
1796
|
+
*
|
|
1797
|
+
* Return the comments of a public YouTube community post. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1798
|
+
*
|
|
1799
|
+
* @example
|
|
1800
|
+
* await openhandle.youtube.communityPost("Ugsynthpost001").comments.list({ freshness: "24h" });
|
|
1801
|
+
*
|
|
1802
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-community-post-comments-list
|
|
1803
|
+
*/
|
|
1804
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/community-posts/{identifier}/comments", "get">) => Promise<OperationPage<"/v1/youtube/community-posts/{identifier}/comments", "get">>;
|
|
1805
|
+
}
|
|
1806
|
+
export interface YouTubeHashtagResource {
|
|
1807
|
+
readonly posts: YouTubeHashtagPostsResource;
|
|
1808
|
+
}
|
|
1809
|
+
export interface YouTubeHashtagPostsResource {
|
|
1810
|
+
/**
|
|
1811
|
+
* List hashtag posts
|
|
1812
|
+
*
|
|
1813
|
+
* Return the public YouTube videos and Shorts of one hashtag. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1814
|
+
*
|
|
1815
|
+
* @example
|
|
1816
|
+
* await openhandle.youtube.hashtag("synthetic").posts.list({ freshness: "24h" });
|
|
1817
|
+
*
|
|
1818
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-hashtag-posts-list
|
|
1819
|
+
*/
|
|
1820
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/hashtags/{identifier}/posts", "get">) => Promise<OperationPage<"/v1/youtube/hashtags/{identifier}/posts", "get">>;
|
|
1821
|
+
}
|
|
1822
|
+
export interface YouTubePlaylistResource {
|
|
1823
|
+
readonly posts: YouTubePlaylistPostsResource;
|
|
1824
|
+
}
|
|
1825
|
+
export interface YouTubePlaylistPostsResource {
|
|
1826
|
+
/**
|
|
1827
|
+
* List playlist posts
|
|
1828
|
+
*
|
|
1829
|
+
* Return the videos of a public YouTube playlist. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1830
|
+
*
|
|
1831
|
+
* @example
|
|
1832
|
+
* await openhandle.youtube.playlist("PLsynthetic001").posts.list({ freshness: "24h" });
|
|
1833
|
+
*
|
|
1834
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-playlist-posts-list
|
|
1835
|
+
*/
|
|
1836
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/playlists/{identifier}/posts", "get">) => Promise<OperationPage<"/v1/youtube/playlists/{identifier}/posts", "get">>;
|
|
1837
|
+
}
|
|
1838
|
+
export interface YouTubePostResource {
|
|
1839
|
+
/**
|
|
1840
|
+
* Select the comment resource using a supported string shorthand or an explicit ID or URL reference.
|
|
1841
|
+
*
|
|
1842
|
+
* Resource selection is synchronous and does not perform a request.
|
|
1843
|
+
*/
|
|
1844
|
+
readonly comment: (reference: ResourceReference) => YouTubePostCommentResource;
|
|
1845
|
+
readonly comments: YouTubePostCommentsResource;
|
|
1846
|
+
readonly files: YouTubePostFilesResource;
|
|
1847
|
+
readonly related: YouTubePostRelatedResource;
|
|
1848
|
+
readonly soundPosts: YouTubePostSoundPostsResource;
|
|
1849
|
+
readonly transcript: YouTubePostTranscriptResource;
|
|
1850
|
+
/**
|
|
1851
|
+
* Get a post
|
|
1852
|
+
*
|
|
1853
|
+
* Return one public YouTube video, Short, or livestream with its exact counts and publication time. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1854
|
+
*
|
|
1855
|
+
* @example
|
|
1856
|
+
* await openhandle.youtube.post("synthvid001").get({ freshness: "24h" });
|
|
1857
|
+
*
|
|
1858
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-get
|
|
1859
|
+
*/
|
|
1860
|
+
readonly get: (options?: OperationOptions<"/v1/youtube/posts/{identifier}", "get">) => Promise<OperationResponse<"/v1/youtube/posts/{identifier}", "get">>;
|
|
1861
|
+
}
|
|
1862
|
+
export interface YouTubePostCommentResource {
|
|
1863
|
+
readonly replies: YouTubePostCommentRepliesResource;
|
|
1864
|
+
}
|
|
1865
|
+
export interface YouTubePostCommentRepliesResource {
|
|
1866
|
+
/**
|
|
1867
|
+
* List comment replies
|
|
1868
|
+
*
|
|
1869
|
+
* Return the replies of one YouTube comment. Pass the repliesToken that comment carried. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1870
|
+
*
|
|
1871
|
+
* @example
|
|
1872
|
+
* await openhandle.youtube.post("synthvid001").comment("Ugsynthcomment001").replies.list({ token: "synthetic-replies-Ugsynthcomment001", freshness: "24h" });
|
|
1873
|
+
*
|
|
1874
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-comment-replies-list
|
|
1875
|
+
*/
|
|
1876
|
+
readonly list: (options: OperationOptions<"/v1/youtube/posts/{identifier}/comments/{comment_id}/replies", "get">) => Promise<OperationPage<"/v1/youtube/posts/{identifier}/comments/{comment_id}/replies", "get">>;
|
|
1877
|
+
}
|
|
1878
|
+
export interface YouTubePostCommentsResource {
|
|
1879
|
+
/**
|
|
1880
|
+
* List post comments
|
|
1881
|
+
*
|
|
1882
|
+
* Return the top-level comments of a public YouTube video or Short. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1883
|
+
*
|
|
1884
|
+
* @example
|
|
1885
|
+
* await openhandle.youtube.post("synthvid001").comments.list({ freshness: "24h" });
|
|
1886
|
+
*
|
|
1887
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-comments-list
|
|
1888
|
+
*/
|
|
1889
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/posts/{identifier}/comments", "get">) => Promise<OperationPage<"/v1/youtube/posts/{identifier}/comments", "get">>;
|
|
1890
|
+
}
|
|
1891
|
+
export interface YouTubePostFilesResource {
|
|
1892
|
+
/**
|
|
1893
|
+
* Get post files
|
|
1894
|
+
*
|
|
1895
|
+
* Return the video and audio streams of a public YouTube video as download links. Openhandle refreshes the links, so they keep working. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1896
|
+
*
|
|
1897
|
+
* @example
|
|
1898
|
+
* await openhandle.youtube.post("synthvid001").files.get({ freshness: "24h" });
|
|
1899
|
+
*
|
|
1900
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-files-get
|
|
1901
|
+
*/
|
|
1902
|
+
readonly get: (options?: OperationOptions<"/v1/youtube/posts/{identifier}/files", "get">) => Promise<OperationResponse<"/v1/youtube/posts/{identifier}/files", "get">>;
|
|
1903
|
+
}
|
|
1904
|
+
export interface YouTubePostRelatedResource {
|
|
1905
|
+
/**
|
|
1906
|
+
* List related posts
|
|
1907
|
+
*
|
|
1908
|
+
* Return the videos YouTube suggests next to a public video. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1909
|
+
*
|
|
1910
|
+
* @example
|
|
1911
|
+
* await openhandle.youtube.post("synthvid001").related.list({ freshness: "24h" });
|
|
1912
|
+
*
|
|
1913
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-related-list
|
|
1914
|
+
*/
|
|
1915
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/posts/{identifier}/related", "get">) => Promise<OperationPage<"/v1/youtube/posts/{identifier}/related", "get">>;
|
|
1916
|
+
}
|
|
1917
|
+
export interface YouTubePostSoundPostsResource {
|
|
1918
|
+
/**
|
|
1919
|
+
* List posts using the same sound
|
|
1920
|
+
*
|
|
1921
|
+
* Return the Shorts that use the sound of a public Short. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1922
|
+
*
|
|
1923
|
+
* @example
|
|
1924
|
+
* await openhandle.youtube.post("synthvid001").soundPosts.list({ freshness: "24h" });
|
|
1925
|
+
*
|
|
1926
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-sound-posts-list
|
|
1927
|
+
*/
|
|
1928
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/posts/{identifier}/sound-posts", "get">) => Promise<OperationPage<"/v1/youtube/posts/{identifier}/sound-posts", "get">>;
|
|
1929
|
+
}
|
|
1930
|
+
export interface YouTubePostTranscriptResource {
|
|
1931
|
+
/**
|
|
1932
|
+
* Get a transcript
|
|
1933
|
+
*
|
|
1934
|
+
* Return the timed caption text of a public YouTube video in one of its caption languages. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1935
|
+
*
|
|
1936
|
+
* @example
|
|
1937
|
+
* await openhandle.youtube.post("synthvid001").transcript.get({ freshness: "24h" });
|
|
1938
|
+
*
|
|
1939
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-post-transcript-get
|
|
1940
|
+
*/
|
|
1941
|
+
readonly get: (options?: OperationOptions<"/v1/youtube/posts/{identifier}/transcript", "get">) => Promise<OperationResponse<"/v1/youtube/posts/{identifier}/transcript", "get">>;
|
|
1942
|
+
}
|
|
1943
|
+
export interface YouTubeProfileResource {
|
|
1944
|
+
readonly communityPosts: YouTubeProfileCommunityPostsResource;
|
|
1945
|
+
readonly livestreams: YouTubeProfileLivestreamsResource;
|
|
1946
|
+
readonly playlists: YouTubeProfilePlaylistsResource;
|
|
1947
|
+
readonly products: YouTubeProfileProductsResource;
|
|
1948
|
+
readonly search: YouTubeProfileSearchResource;
|
|
1949
|
+
readonly shorts: YouTubeProfileShortsResource;
|
|
1950
|
+
readonly videos: YouTubeProfileVideosResource;
|
|
1951
|
+
/**
|
|
1952
|
+
* Get a profile
|
|
1953
|
+
*
|
|
1954
|
+
* Return one public YouTube channel. Use @handle or the UC channel ID. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1955
|
+
*
|
|
1956
|
+
* @example
|
|
1957
|
+
* await openhandle.youtube.profile("@synthetic_youtube").get({ freshness: "24h" });
|
|
1958
|
+
*
|
|
1959
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-get
|
|
1960
|
+
*/
|
|
1961
|
+
readonly get: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}", "get">) => Promise<OperationResponse<"/v1/youtube/profiles/{identifier}", "get">>;
|
|
1962
|
+
}
|
|
1963
|
+
export interface YouTubeProfileCommunityPostsResource {
|
|
1964
|
+
/**
|
|
1965
|
+
* List profile community posts
|
|
1966
|
+
*
|
|
1967
|
+
* Return the text, image, and poll posts of a public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1968
|
+
*
|
|
1969
|
+
* @example
|
|
1970
|
+
* await openhandle.youtube.profile("@synthetic_youtube").communityPosts.list({ freshness: "24h" });
|
|
1971
|
+
*
|
|
1972
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-community-list
|
|
1973
|
+
*/
|
|
1974
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/community-posts", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/community-posts", "get">>;
|
|
1975
|
+
}
|
|
1976
|
+
export interface YouTubeProfileLivestreamsResource {
|
|
1977
|
+
/**
|
|
1978
|
+
* List profile livestreams
|
|
1979
|
+
*
|
|
1980
|
+
* Return the current, upcoming, and past livestreams of a public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1981
|
+
*
|
|
1982
|
+
* @example
|
|
1983
|
+
* await openhandle.youtube.profile("@synthetic_youtube").livestreams.list({ freshness: "24h" });
|
|
1984
|
+
*
|
|
1985
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-livestreams-list
|
|
1986
|
+
*/
|
|
1987
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/livestreams", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/livestreams", "get">>;
|
|
1988
|
+
}
|
|
1989
|
+
export interface YouTubeProfilePlaylistsResource {
|
|
1990
|
+
/**
|
|
1991
|
+
* List profile playlists
|
|
1992
|
+
*
|
|
1993
|
+
* Return the public playlists of a YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
1994
|
+
*
|
|
1995
|
+
* @example
|
|
1996
|
+
* await openhandle.youtube.profile("@synthetic_youtube").playlists.list({ freshness: "24h" });
|
|
1997
|
+
*
|
|
1998
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-playlists-list
|
|
1999
|
+
*/
|
|
2000
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/playlists", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/playlists", "get">>;
|
|
2001
|
+
}
|
|
2002
|
+
export interface YouTubeProfileProductsResource {
|
|
2003
|
+
/**
|
|
2004
|
+
* List profile products
|
|
2005
|
+
*
|
|
2006
|
+
* Return the products on the store shelf of a public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2007
|
+
*
|
|
2008
|
+
* @example
|
|
2009
|
+
* await openhandle.youtube.profile("@synthetic_youtube").products.list({ freshness: "24h" });
|
|
2010
|
+
*
|
|
2011
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-products-list
|
|
2012
|
+
*/
|
|
2013
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/products", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/products", "get">>;
|
|
2014
|
+
}
|
|
2015
|
+
export interface YouTubeProfileSearchResource {
|
|
2016
|
+
/**
|
|
2017
|
+
* Search profile videos
|
|
2018
|
+
*
|
|
2019
|
+
* Search the videos of one public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2020
|
+
*
|
|
2021
|
+
* @example
|
|
2022
|
+
* await openhandle.youtube.profile("@synthetic_youtube").search.list({ q: "synthetic", freshness: "24h" });
|
|
2023
|
+
*
|
|
2024
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-search-list
|
|
2025
|
+
*/
|
|
2026
|
+
readonly list: (options: OperationOptions<"/v1/youtube/profiles/{identifier}/search", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/search", "get">>;
|
|
2027
|
+
}
|
|
2028
|
+
export interface YouTubeProfileShortsResource {
|
|
2029
|
+
/**
|
|
2030
|
+
* List profile Shorts
|
|
2031
|
+
*
|
|
2032
|
+
* Return the Shorts of a public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2033
|
+
*
|
|
2034
|
+
* @example
|
|
2035
|
+
* await openhandle.youtube.profile("@synthetic_youtube").shorts.list({ freshness: "24h" });
|
|
2036
|
+
*
|
|
2037
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-shorts-list
|
|
2038
|
+
*/
|
|
2039
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/shorts", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/shorts", "get">>;
|
|
2040
|
+
}
|
|
2041
|
+
export interface YouTubeProfileVideosResource {
|
|
2042
|
+
/**
|
|
2043
|
+
* List profile videos
|
|
2044
|
+
*
|
|
2045
|
+
* Return the videos of a public YouTube channel. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2046
|
+
*
|
|
2047
|
+
* @example
|
|
2048
|
+
* await openhandle.youtube.profile("@synthetic_youtube").videos.list({ freshness: "24h" });
|
|
2049
|
+
*
|
|
2050
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-profile-videos-list
|
|
2051
|
+
*/
|
|
2052
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/profiles/{identifier}/videos", "get">) => Promise<OperationPage<"/v1/youtube/profiles/{identifier}/videos", "get">>;
|
|
2053
|
+
}
|
|
2054
|
+
export interface YouTubeSearchResource {
|
|
2055
|
+
readonly playlists: YouTubeSearchPlaylistsResource;
|
|
2056
|
+
readonly posts: YouTubeSearchPostsResource;
|
|
2057
|
+
readonly profiles: YouTubeSearchProfilesResource;
|
|
2058
|
+
readonly suggestions: YouTubeSearchSuggestionsResource;
|
|
2059
|
+
}
|
|
2060
|
+
export interface YouTubeSearchPlaylistsResource {
|
|
2061
|
+
/**
|
|
2062
|
+
* Search playlists
|
|
2063
|
+
*
|
|
2064
|
+
* Search public YouTube playlists and podcasts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2065
|
+
*
|
|
2066
|
+
* @example
|
|
2067
|
+
* await openhandle.youtube.search.playlists.list({ q: "synthetic", freshness: "24h" });
|
|
2068
|
+
*
|
|
2069
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-search-playlists-list
|
|
2070
|
+
*/
|
|
2071
|
+
readonly list: (options: OperationOptions<"/v1/youtube/search/playlists", "get">) => Promise<OperationPage<"/v1/youtube/search/playlists", "get">>;
|
|
2072
|
+
}
|
|
2073
|
+
export interface YouTubeSearchPostsResource {
|
|
2074
|
+
/**
|
|
2075
|
+
* Search posts
|
|
2076
|
+
*
|
|
2077
|
+
* Search public YouTube videos or Shorts. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2078
|
+
*
|
|
2079
|
+
* @example
|
|
2080
|
+
* await openhandle.youtube.search.posts.list({ q: "synthetic", freshness: "24h" });
|
|
2081
|
+
*
|
|
2082
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-search-posts-list
|
|
2083
|
+
*/
|
|
2084
|
+
readonly list: (options: OperationOptions<"/v1/youtube/search/posts", "get">) => Promise<OperationPage<"/v1/youtube/search/posts", "get">>;
|
|
2085
|
+
}
|
|
2086
|
+
export interface YouTubeSearchProfilesResource {
|
|
2087
|
+
/**
|
|
2088
|
+
* Search profiles
|
|
2089
|
+
*
|
|
2090
|
+
* Search public YouTube channels. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2091
|
+
*
|
|
2092
|
+
* @example
|
|
2093
|
+
* await openhandle.youtube.search.profiles.list({ q: "synthetic", freshness: "24h" });
|
|
2094
|
+
*
|
|
2095
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-search-profiles-list
|
|
2096
|
+
*/
|
|
2097
|
+
readonly list: (options: OperationOptions<"/v1/youtube/search/profiles", "get">) => Promise<OperationPage<"/v1/youtube/search/profiles", "get">>;
|
|
2098
|
+
}
|
|
2099
|
+
export interface YouTubeSearchSuggestionsResource {
|
|
2100
|
+
/**
|
|
2101
|
+
* Search suggestions
|
|
2102
|
+
*
|
|
2103
|
+
* Return the autocomplete queries YouTube offers for a partial search. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2104
|
+
*
|
|
2105
|
+
* @example
|
|
2106
|
+
* await openhandle.youtube.search.suggestions.list({ q: "synthetic", freshness: "24h" });
|
|
2107
|
+
*
|
|
2108
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-search-suggestions-list
|
|
2109
|
+
*/
|
|
2110
|
+
readonly list: (options: OperationOptions<"/v1/youtube/search/suggestions", "get">) => Promise<OperationResponse<"/v1/youtube/search/suggestions", "get">>;
|
|
2111
|
+
}
|
|
2112
|
+
export interface YouTubeTrendingResource {
|
|
2113
|
+
readonly posts: YouTubeTrendingPostsResource;
|
|
2114
|
+
}
|
|
2115
|
+
export interface YouTubeTrendingPostsResource {
|
|
2116
|
+
/**
|
|
2117
|
+
* List trending posts
|
|
2118
|
+
*
|
|
2119
|
+
* Return the trending YouTube videos of one country. Test and Live use the same route, parameters, response schema, pagination, and errors. In Test, null means unavailable, not zero.
|
|
2120
|
+
*
|
|
2121
|
+
* @example
|
|
2122
|
+
* await openhandle.youtube.trending.posts.list({ freshness: "24h" });
|
|
2123
|
+
*
|
|
2124
|
+
* @see https://openhandle.dev/docs/api-reference/youtube-trending-posts-list
|
|
2125
|
+
*/
|
|
2126
|
+
readonly list: (options?: OperationOptions<"/v1/youtube/trending/posts", "get">) => Promise<OperationResponse<"/v1/youtube/trending/posts", "get">>;
|
|
2127
|
+
}
|
|
1699
2128
|
//# sourceMappingURL=resources.d.ts.map
|