@@ -25,6 +25,8 @@ import type OpenPopupAction from '../classes/actions/OpenPopupAction.js';
2525
2626export interface IParsedResponse {
2727 background ?: MusicThumbnail ;
28+ challenge ?: string ;
29+ bg_challenge ?: IBotguardChallenge ;
2830 actions ?: SuperParsedResult < YTNode > ;
2931 actions_memo ?: Memo ;
3032 contents ?: SuperParsedResult < YTNode > ;
@@ -78,6 +80,19 @@ export interface IParsedResponse {
7880 watch_next_response ?: INextResponse ;
7981}
8082
83+ export interface ITrustedResource {
84+ private_do_not_access_or_else_trusted_resource_url_wrapped_value ?: string ;
85+ private_do_not_access_or_else_safe_script_wrapped_value ?: string ;
86+ }
87+
88+ export interface IBotguardChallenge {
89+ interpreter_url : ITrustedResource ;
90+ interpreter_hash : string ;
91+ program : string ;
92+ global_name : string ;
93+ client_experiments_state_blob : string ;
94+ }
95+
8196export interface IPlaybackTracking {
8297 videostats_watchtime_url : string ;
8398 videostats_playback_url : string ;
@@ -121,11 +136,12 @@ export interface IStreamingData {
121136}
122137
123138export type IPlayerResponse = Pick < IParsedResponse , 'captions' | 'cards' | 'endscreen' | 'microformat' | 'annotations' | 'playability_status' | 'streaming_data' | 'player_config' | 'playback_tracking' | 'storyboards' | 'video_details' > ;
124- export type INextResponse = Pick < IParsedResponse , 'contents' | 'contents_memo' | 'continuation_contents' | 'continuation_contents_memo' | 'current_video_endpoint' | 'on_response_received_endpoints' | 'on_response_received_endpoints_memo' | 'player_overlays' | 'engagement_panels' >
125- export type IBrowseResponse = Pick < IParsedResponse , 'background' | 'continuation_contents' | 'continuation_contents_memo' | 'on_response_received_actions' | 'on_response_received_actions_memo' | 'on_response_received_endpoints' | 'on_response_received_endpoints_memo' | 'contents' | 'contents_memo' | 'header' | 'header_memo' | 'metadata' | 'microformat' | 'alerts' | 'sidebar' | 'sidebar_memo' >
139+ export type INextResponse = Pick < IParsedResponse , 'contents' | 'contents_memo' | 'continuation_contents' | 'continuation_contents_memo' | 'current_video_endpoint' | 'on_response_received_endpoints' | 'on_response_received_endpoints_memo' | 'player_overlays' | 'engagement_panels' > ;
140+ export type IBrowseResponse = Pick < IParsedResponse , 'background' | 'continuation_contents' | 'continuation_contents_memo' | 'on_response_received_actions' | 'on_response_received_actions_memo' | 'on_response_received_endpoints' | 'on_response_received_endpoints_memo' | 'contents' | 'contents_memo' | 'header' | 'header_memo' | 'metadata' | 'microformat' | 'alerts' | 'sidebar' | 'sidebar_memo' > ;
126141export type ISearchResponse = Pick < IParsedResponse , 'header' | 'header_memo' | 'contents' | 'contents_memo' | 'on_response_received_commands' | 'continuation_contents' | 'continuation_contents_memo' | 'refinements' | 'estimated_results' > ;
127142export type IResolveURLResponse = Pick < IParsedResponse , 'endpoint' > ;
128- export type IGetTranscriptResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' >
129- export type IGetNotificationsMenuResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' >
130- export type IUpdatedMetadataResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' | 'continuation' >
131- export type IGuideResponse = Pick < IParsedResponse , 'items' | 'items_memo' >
143+ export type IGetTranscriptResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' > ;
144+ export type IGetNotificationsMenuResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' > ;
145+ export type IUpdatedMetadataResponse = Pick < IParsedResponse , 'actions' | 'actions_memo' | 'continuation' > ;
146+ export type IGuideResponse = Pick < IParsedResponse , 'items' | 'items_memo' > ;
147+ export type IGetChallengeResponse = Pick < IParsedResponse , 'challenge' | 'bg_challenge' > ;
0 commit comments