UI/UX: Adiciona campo opcional para colagem manual de transcrição no VideoMind
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "misc";
|
||||
export interface HttpHeader {
|
||||
name?: string | undefined;
|
||||
value?: string | undefined;
|
||||
}
|
||||
export interface FormatId {
|
||||
itag?: number | undefined;
|
||||
lastModified?: number | undefined;
|
||||
xtags?: string | undefined;
|
||||
}
|
||||
export interface InitRange {
|
||||
start?: number | undefined;
|
||||
end?: number | undefined;
|
||||
}
|
||||
export interface IndexRange {
|
||||
start?: number | undefined;
|
||||
end?: number | undefined;
|
||||
}
|
||||
export interface KeyValuePair {
|
||||
key?: string | undefined;
|
||||
value?: string | undefined;
|
||||
}
|
||||
export interface FormatXTags {
|
||||
xtags: KeyValuePair[];
|
||||
}
|
||||
export declare const HttpHeader: MessageFns<HttpHeader>;
|
||||
export declare const FormatId: MessageFns<FormatId>;
|
||||
export declare const InitRange: MessageFns<InitRange>;
|
||||
export declare const IndexRange: MessageFns<IndexRange>;
|
||||
export declare const KeyValuePair: MessageFns<KeyValuePair>;
|
||||
export declare const FormatXTags: MessageFns<FormatXTags>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: misc/common.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "misc";
|
||||
function createBaseHttpHeader() {
|
||||
return { name: undefined, value: undefined };
|
||||
}
|
||||
export const HttpHeader = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.name !== undefined) {
|
||||
writer.uint32(10).string(message.name);
|
||||
}
|
||||
if (message.value !== undefined) {
|
||||
writer.uint32(18).string(message.value);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseHttpHeader();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.name = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.value = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseFormatId() {
|
||||
return { itag: undefined, lastModified: undefined, xtags: undefined };
|
||||
}
|
||||
export const FormatId = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.itag !== undefined) {
|
||||
writer.uint32(8).int32(message.itag);
|
||||
}
|
||||
if (message.lastModified !== undefined) {
|
||||
writer.uint32(16).uint64(message.lastModified);
|
||||
}
|
||||
if (message.xtags !== undefined) {
|
||||
writer.uint32(26).string(message.xtags);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseFormatId();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.itag = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.lastModified = longToNumber(reader.uint64());
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.xtags = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInitRange() {
|
||||
return { start: undefined, end: undefined };
|
||||
}
|
||||
export const InitRange = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.start !== undefined) {
|
||||
writer.uint32(8).int32(message.start);
|
||||
}
|
||||
if (message.end !== undefined) {
|
||||
writer.uint32(16).int32(message.end);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInitRange();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.start = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.end = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseIndexRange() {
|
||||
return { start: undefined, end: undefined };
|
||||
}
|
||||
export const IndexRange = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.start !== undefined) {
|
||||
writer.uint32(8).int32(message.start);
|
||||
}
|
||||
if (message.end !== undefined) {
|
||||
writer.uint32(16).int32(message.end);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseIndexRange();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.start = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.end = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseKeyValuePair() {
|
||||
return { key: undefined, value: undefined };
|
||||
}
|
||||
export const KeyValuePair = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.key !== undefined) {
|
||||
writer.uint32(10).string(message.key);
|
||||
}
|
||||
if (message.value !== undefined) {
|
||||
writer.uint32(18).string(message.value);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseKeyValuePair();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.key = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.value = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseFormatXTags() {
|
||||
return { xtags: [] };
|
||||
}
|
||||
export const FormatXTags = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
for (const v of message.xtags) {
|
||||
KeyValuePair.encode(v, writer.uint32(10).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseFormatXTags();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.xtags.push(KeyValuePair.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function longToNumber(int64) {
|
||||
const num = globalThis.Number(int64.toString());
|
||||
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
||||
}
|
||||
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
||||
}
|
||||
return num;
|
||||
}
|
||||
//# sourceMappingURL=common.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+266
@@ -0,0 +1,266 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "misc";
|
||||
export interface VisitorData {
|
||||
id: string;
|
||||
timestamp: number;
|
||||
}
|
||||
export interface SearchFilter {
|
||||
prioritize?: SearchFilter_Prioritize | undefined;
|
||||
filters?: SearchFilter_Filters | undefined;
|
||||
}
|
||||
export declare enum SearchFilter_Prioritize {
|
||||
RELEVANCE = 0,
|
||||
POPULARITY = 3,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface SearchFilter_Filters {
|
||||
uploadDate?: SearchFilter_Filters_UploadDate | undefined;
|
||||
type?: SearchFilter_Filters_SearchType | undefined;
|
||||
duration?: SearchFilter_Filters_Duration | undefined;
|
||||
musicSearchType?: SearchFilter_Filters_MusicSearchType | undefined;
|
||||
featuresHd?: boolean | undefined;
|
||||
featuresSubtitles?: boolean | undefined;
|
||||
featuresCreativeCommons?: boolean | undefined;
|
||||
features3d?: boolean | undefined;
|
||||
featuresLive?: boolean | undefined;
|
||||
featuresPurchased?: boolean | undefined;
|
||||
features4k?: boolean | undefined;
|
||||
features360?: boolean | undefined;
|
||||
featuresLocation?: boolean | undefined;
|
||||
featuresHdr?: boolean | undefined;
|
||||
featuresVr180?: boolean | undefined;
|
||||
}
|
||||
export declare enum SearchFilter_Filters_UploadDate {
|
||||
ANY_DATE = 0,
|
||||
TODAY = 2,
|
||||
WEEK = 3,
|
||||
MONTH = 4,
|
||||
YEAR = 5,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum SearchFilter_Filters_SearchType {
|
||||
ANY_TYPE = 0,
|
||||
VIDEO = 1,
|
||||
CHANNEL = 2,
|
||||
PLAYLIST = 3,
|
||||
MOVIE = 4,
|
||||
SHORTS = 9,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum SearchFilter_Filters_Duration {
|
||||
ANY_DURATION = 0,
|
||||
OVER_TWENTY_MINS = 2,
|
||||
UNDER_THREE_MINS = 4,
|
||||
THREE_TO_TWENTY_MINS = 5,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface SearchFilter_Filters_MusicSearchType {
|
||||
song?: boolean | undefined;
|
||||
video?: boolean | undefined;
|
||||
album?: boolean | undefined;
|
||||
artist?: boolean | undefined;
|
||||
playlist?: boolean | undefined;
|
||||
}
|
||||
export interface ChannelAnalytics {
|
||||
params: ChannelAnalytics_Params | undefined;
|
||||
}
|
||||
export interface ChannelAnalytics_Params {
|
||||
channelId: string;
|
||||
}
|
||||
export interface SoundInfoParams {
|
||||
sound: SoundInfoParams_Sound | undefined;
|
||||
}
|
||||
export interface SoundInfoParams_Sound {
|
||||
params: SoundInfoParams_Sound_Params | undefined;
|
||||
}
|
||||
export interface SoundInfoParams_Sound_Params {
|
||||
ids: SoundInfoParams_Sound_Params_Ids | undefined;
|
||||
}
|
||||
export interface SoundInfoParams_Sound_Params_Ids {
|
||||
id1: string;
|
||||
id2: string;
|
||||
id3: string;
|
||||
}
|
||||
export interface NotificationPreferences {
|
||||
channelId: string;
|
||||
prefId: NotificationPreferences_Preference | undefined;
|
||||
number0?: number | undefined;
|
||||
number1?: number | undefined;
|
||||
}
|
||||
export interface NotificationPreferences_Preference {
|
||||
index: number;
|
||||
}
|
||||
export interface LiveMessageParams {
|
||||
params: LiveMessageParams_Params | undefined;
|
||||
number0?: number | undefined;
|
||||
number1?: number | undefined;
|
||||
}
|
||||
export interface LiveMessageParams_Params {
|
||||
ids: LiveMessageParams_Params_Ids | undefined;
|
||||
}
|
||||
export interface LiveMessageParams_Params_Ids {
|
||||
channelId: string;
|
||||
videoId: string;
|
||||
}
|
||||
export interface GetCommentsSectionParams {
|
||||
ctx: GetCommentsSectionParams_Context | undefined;
|
||||
unkParam: number;
|
||||
params: GetCommentsSectionParams_Params | undefined;
|
||||
}
|
||||
export interface GetCommentsSectionParams_Context {
|
||||
videoId: string;
|
||||
}
|
||||
export interface GetCommentsSectionParams_Params {
|
||||
unkToken?: string | undefined;
|
||||
opts?: GetCommentsSectionParams_Params_Options | undefined;
|
||||
repliesOpts?: GetCommentsSectionParams_Params_RepliesOptions | undefined;
|
||||
page?: number | undefined;
|
||||
target: string;
|
||||
}
|
||||
export interface GetCommentsSectionParams_Params_Options {
|
||||
videoId: string;
|
||||
sortBy: number;
|
||||
type: number;
|
||||
commentId?: string | undefined;
|
||||
}
|
||||
export interface GetCommentsSectionParams_Params_RepliesOptions {
|
||||
commentId: string;
|
||||
unkopts: GetCommentsSectionParams_Params_RepliesOptions_UnkOpts | undefined;
|
||||
channelId?: string | undefined;
|
||||
videoId: string;
|
||||
unkParam1: number;
|
||||
unkParam2: number;
|
||||
}
|
||||
export interface GetCommentsSectionParams_Params_RepliesOptions_UnkOpts {
|
||||
unkParam: number;
|
||||
}
|
||||
export interface CreateCommentParams {
|
||||
videoId: string;
|
||||
params: CreateCommentParams_Params | undefined;
|
||||
number: number;
|
||||
}
|
||||
export interface CreateCommentParams_Params {
|
||||
index: number;
|
||||
}
|
||||
export interface PeformCommentActionParams {
|
||||
type: number;
|
||||
commentId: string;
|
||||
videoId: string;
|
||||
unkNum?: number | undefined;
|
||||
channelId?: string | undefined;
|
||||
translateCommentParams?: PeformCommentActionParams_TranslateCommentParams | undefined;
|
||||
}
|
||||
export interface PeformCommentActionParams_TranslateCommentParams {
|
||||
params: PeformCommentActionParams_TranslateCommentParams_Params | undefined;
|
||||
commentId: string;
|
||||
targetLanguage: string;
|
||||
}
|
||||
export interface PeformCommentActionParams_TranslateCommentParams_Params {
|
||||
comment: PeformCommentActionParams_TranslateCommentParams_Params_Comment | undefined;
|
||||
}
|
||||
export interface PeformCommentActionParams_TranslateCommentParams_Params_Comment {
|
||||
text: string;
|
||||
}
|
||||
export interface Hashtag {
|
||||
params: Hashtag_Params | undefined;
|
||||
}
|
||||
export interface Hashtag_Params {
|
||||
hashtag: string;
|
||||
type: number;
|
||||
}
|
||||
export interface ReelSequence {
|
||||
shortId: string;
|
||||
params: ReelSequence_Params | undefined;
|
||||
feature2: number;
|
||||
feature3: number;
|
||||
}
|
||||
export interface ReelSequence_Params {
|
||||
number: number;
|
||||
}
|
||||
export interface ShortsParam {
|
||||
f1?: ShortsParam_Field1 | undefined;
|
||||
p59?: number | undefined;
|
||||
}
|
||||
export interface ShortsParam_Field1 {
|
||||
p1?: number | undefined;
|
||||
}
|
||||
export interface NextParams {
|
||||
videoId: string[];
|
||||
playlistTitle?: string | undefined;
|
||||
}
|
||||
export interface CommunityPostParams {
|
||||
f1: CommunityPostParams_Field1 | undefined;
|
||||
}
|
||||
export interface CommunityPostParams_Field1 {
|
||||
ucid1: string;
|
||||
postId: string;
|
||||
ucid2: string;
|
||||
}
|
||||
export interface CommunityPostCommentsParamContainer {
|
||||
f0: CommunityPostCommentsParamContainer_Container | undefined;
|
||||
}
|
||||
export interface CommunityPostCommentsParamContainer_Container {
|
||||
location: string;
|
||||
protoData: string;
|
||||
}
|
||||
export interface CommunityPostCommentsParam {
|
||||
title: string;
|
||||
commentDataContainer: CommunityPostCommentsParam_CommentDataContainer | undefined;
|
||||
}
|
||||
export interface CommunityPostCommentsParam_CommentDataContainer {
|
||||
commentData: CommunityPostCommentsParam_CommentDataContainer_CommentData | undefined;
|
||||
f0: number;
|
||||
title: string;
|
||||
}
|
||||
export interface CommunityPostCommentsParam_CommentDataContainer_CommentData {
|
||||
sortBy: number;
|
||||
f0: number;
|
||||
f1: number;
|
||||
postId: string;
|
||||
channelId: string;
|
||||
}
|
||||
export declare const VisitorData: MessageFns<VisitorData>;
|
||||
export declare const SearchFilter: MessageFns<SearchFilter>;
|
||||
export declare const SearchFilter_Filters: MessageFns<SearchFilter_Filters>;
|
||||
export declare const SearchFilter_Filters_MusicSearchType: MessageFns<SearchFilter_Filters_MusicSearchType>;
|
||||
export declare const ChannelAnalytics: MessageFns<ChannelAnalytics>;
|
||||
export declare const ChannelAnalytics_Params: MessageFns<ChannelAnalytics_Params>;
|
||||
export declare const SoundInfoParams: MessageFns<SoundInfoParams>;
|
||||
export declare const SoundInfoParams_Sound: MessageFns<SoundInfoParams_Sound>;
|
||||
export declare const SoundInfoParams_Sound_Params: MessageFns<SoundInfoParams_Sound_Params>;
|
||||
export declare const SoundInfoParams_Sound_Params_Ids: MessageFns<SoundInfoParams_Sound_Params_Ids>;
|
||||
export declare const NotificationPreferences: MessageFns<NotificationPreferences>;
|
||||
export declare const NotificationPreferences_Preference: MessageFns<NotificationPreferences_Preference>;
|
||||
export declare const LiveMessageParams: MessageFns<LiveMessageParams>;
|
||||
export declare const LiveMessageParams_Params: MessageFns<LiveMessageParams_Params>;
|
||||
export declare const LiveMessageParams_Params_Ids: MessageFns<LiveMessageParams_Params_Ids>;
|
||||
export declare const GetCommentsSectionParams: MessageFns<GetCommentsSectionParams>;
|
||||
export declare const GetCommentsSectionParams_Context: MessageFns<GetCommentsSectionParams_Context>;
|
||||
export declare const GetCommentsSectionParams_Params: MessageFns<GetCommentsSectionParams_Params>;
|
||||
export declare const GetCommentsSectionParams_Params_Options: MessageFns<GetCommentsSectionParams_Params_Options>;
|
||||
export declare const GetCommentsSectionParams_Params_RepliesOptions: MessageFns<GetCommentsSectionParams_Params_RepliesOptions>;
|
||||
export declare const GetCommentsSectionParams_Params_RepliesOptions_UnkOpts: MessageFns<GetCommentsSectionParams_Params_RepliesOptions_UnkOpts>;
|
||||
export declare const CreateCommentParams: MessageFns<CreateCommentParams>;
|
||||
export declare const CreateCommentParams_Params: MessageFns<CreateCommentParams_Params>;
|
||||
export declare const PeformCommentActionParams: MessageFns<PeformCommentActionParams>;
|
||||
export declare const PeformCommentActionParams_TranslateCommentParams: MessageFns<PeformCommentActionParams_TranslateCommentParams>;
|
||||
export declare const PeformCommentActionParams_TranslateCommentParams_Params: MessageFns<PeformCommentActionParams_TranslateCommentParams_Params>;
|
||||
export declare const PeformCommentActionParams_TranslateCommentParams_Params_Comment: MessageFns<PeformCommentActionParams_TranslateCommentParams_Params_Comment>;
|
||||
export declare const Hashtag: MessageFns<Hashtag>;
|
||||
export declare const Hashtag_Params: MessageFns<Hashtag_Params>;
|
||||
export declare const ReelSequence: MessageFns<ReelSequence>;
|
||||
export declare const ReelSequence_Params: MessageFns<ReelSequence_Params>;
|
||||
export declare const ShortsParam: MessageFns<ShortsParam>;
|
||||
export declare const ShortsParam_Field1: MessageFns<ShortsParam_Field1>;
|
||||
export declare const NextParams: MessageFns<NextParams>;
|
||||
export declare const CommunityPostParams: MessageFns<CommunityPostParams>;
|
||||
export declare const CommunityPostParams_Field1: MessageFns<CommunityPostParams_Field1>;
|
||||
export declare const CommunityPostCommentsParamContainer: MessageFns<CommunityPostCommentsParamContainer>;
|
||||
export declare const CommunityPostCommentsParamContainer_Container: MessageFns<CommunityPostCommentsParamContainer_Container>;
|
||||
export declare const CommunityPostCommentsParam: MessageFns<CommunityPostCommentsParam>;
|
||||
export declare const CommunityPostCommentsParam_CommentDataContainer: MessageFns<CommunityPostCommentsParam_CommentDataContainer>;
|
||||
export declare const CommunityPostCommentsParam_CommentDataContainer_CommentData: MessageFns<CommunityPostCommentsParam_CommentDataContainer_CommentData>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
+2088
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface AttestationResponseData {
|
||||
challenge?: string | undefined;
|
||||
webResponse?: string | undefined;
|
||||
androidResponse?: string | undefined;
|
||||
iosResponse?: Uint8Array | undefined;
|
||||
error?: number | undefined;
|
||||
adblockReporting?: AttestationResponseData_AdblockReporting | undefined;
|
||||
}
|
||||
export interface AttestationResponseData_AdblockReporting {
|
||||
reportingStatus?: number | undefined;
|
||||
broadSpectrumDetectionResult?: number | undefined;
|
||||
}
|
||||
export declare const AttestationResponseData: MessageFns<AttestationResponseData>;
|
||||
export declare const AttestationResponseData_AdblockReporting: MessageFns<AttestationResponseData_AdblockReporting>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
node_modules/youtubei.js/dist/protos/generated/youtube/api/pfiinnertube/attestation_response_data.js
Generated
Vendored
+152
@@ -0,0 +1,152 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/attestation_response_data.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseAttestationResponseData() {
|
||||
return {
|
||||
challenge: undefined,
|
||||
webResponse: undefined,
|
||||
androidResponse: undefined,
|
||||
iosResponse: undefined,
|
||||
error: undefined,
|
||||
adblockReporting: undefined,
|
||||
};
|
||||
}
|
||||
export const AttestationResponseData = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.challenge !== undefined) {
|
||||
writer.uint32(10).string(message.challenge);
|
||||
}
|
||||
if (message.webResponse !== undefined) {
|
||||
writer.uint32(18).string(message.webResponse);
|
||||
}
|
||||
if (message.androidResponse !== undefined) {
|
||||
writer.uint32(26).string(message.androidResponse);
|
||||
}
|
||||
if (message.iosResponse !== undefined) {
|
||||
writer.uint32(34).bytes(message.iosResponse);
|
||||
}
|
||||
if (message.error !== undefined) {
|
||||
writer.uint32(40).int32(message.error);
|
||||
}
|
||||
if (message.adblockReporting !== undefined) {
|
||||
AttestationResponseData_AdblockReporting.encode(message.adblockReporting, writer.uint32(50).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseAttestationResponseData();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.challenge = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.webResponse = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.androidResponse = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.iosResponse = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 40) {
|
||||
break;
|
||||
}
|
||||
message.error = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.adblockReporting = AttestationResponseData_AdblockReporting.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseAttestationResponseData_AdblockReporting() {
|
||||
return { reportingStatus: undefined, broadSpectrumDetectionResult: undefined };
|
||||
}
|
||||
export const AttestationResponseData_AdblockReporting = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.reportingStatus !== undefined) {
|
||||
writer.uint32(8).uint64(message.reportingStatus);
|
||||
}
|
||||
if (message.broadSpectrumDetectionResult !== undefined) {
|
||||
writer.uint32(16).uint64(message.broadSpectrumDetectionResult);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseAttestationResponseData_AdblockReporting();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.reportingStatus = longToNumber(reader.uint64());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.broadSpectrumDetectionResult = longToNumber(reader.uint64());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function longToNumber(int64) {
|
||||
const num = globalThis.Number(int64.toString());
|
||||
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
||||
}
|
||||
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
||||
}
|
||||
return num;
|
||||
}
|
||||
//# sourceMappingURL=attestation_response_data.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"attestation_response_data.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/attestation_response_data.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,mEAAmE;AAEnE,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAgB1D,SAAS,iCAAiC;IACxC,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,SAAS;QACtB,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,gBAAgB,EAAE,SAAS;KAC5B,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAwC;IAC1E,MAAM,CAAC,OAAgC,EAAE,SAAuB,IAAI,YAAY,EAAE;QAChF,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACpC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;QACD,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACtC,MAA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uild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface CapabilityInfo {
|
||||
profile?: string | undefined;
|
||||
supportedCapabilities: InnerTubeCapability[];
|
||||
disabledCapabilities: InnerTubeCapability[];
|
||||
snapshot?: string | undefined;
|
||||
}
|
||||
export interface InnerTubeCapability {
|
||||
capability?: number | undefined;
|
||||
features?: number | undefined;
|
||||
experimentFlags?: string | undefined;
|
||||
}
|
||||
export declare const CapabilityInfo: MessageFns<CapabilityInfo>;
|
||||
export declare const InnerTubeCapability: MessageFns<InnerTubeCapability>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+125
@@ -0,0 +1,125 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/capability_info.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseCapabilityInfo() {
|
||||
return { profile: undefined, supportedCapabilities: [], disabledCapabilities: [], snapshot: undefined };
|
||||
}
|
||||
export const CapabilityInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.profile !== undefined) {
|
||||
writer.uint32(10).string(message.profile);
|
||||
}
|
||||
for (const v of message.supportedCapabilities) {
|
||||
InnerTubeCapability.encode(v, writer.uint32(18).fork()).join();
|
||||
}
|
||||
for (const v of message.disabledCapabilities) {
|
||||
InnerTubeCapability.encode(v, writer.uint32(26).fork()).join();
|
||||
}
|
||||
if (message.snapshot !== undefined) {
|
||||
writer.uint32(42).string(message.snapshot);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseCapabilityInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.profile = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.supportedCapabilities.push(InnerTubeCapability.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.disabledCapabilities.push(InnerTubeCapability.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 42) {
|
||||
break;
|
||||
}
|
||||
message.snapshot = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInnerTubeCapability() {
|
||||
return { capability: undefined, features: undefined, experimentFlags: undefined };
|
||||
}
|
||||
export const InnerTubeCapability = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.capability !== undefined) {
|
||||
writer.uint32(8).uint32(message.capability);
|
||||
}
|
||||
if (message.features !== undefined) {
|
||||
writer.uint32(16).uint32(message.features);
|
||||
}
|
||||
if (message.experimentFlags !== undefined) {
|
||||
writer.uint32(50).string(message.experimentFlags);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeCapability();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.capability = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.features = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.experimentFlags = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=capability_info.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"capability_info.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/capability_info.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,yDAAyD;AAEzD,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAe1D,SAAS,wBAAwB;IAC/B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAC1G,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,MAAM,CAAC,OAAuB,EAAE,SAAuB,IAAI,YAAY,EAAE;QACvE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAC9C,mBAAmB,CAAC,MAAM,CAA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ACnC,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBAC1C,SAAS;gBACX,CAAC;YACH,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
Generated
Vendored
+330
@@ -0,0 +1,330 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface ClientInfo {
|
||||
hl?: string | undefined;
|
||||
gl?: string | undefined;
|
||||
remoteHost?: string | undefined;
|
||||
deviceId?: string | undefined;
|
||||
debugDeviceIdOverride?: string | undefined;
|
||||
carrierGeo?: string | undefined;
|
||||
crackedHl?: boolean | undefined;
|
||||
deviceMake?: string | undefined;
|
||||
deviceModel?: string | undefined;
|
||||
visitorData?: string | undefined;
|
||||
userAgent?: string | undefined;
|
||||
clientName?: number | undefined;
|
||||
clientVersion?: string | undefined;
|
||||
osName?: string | undefined;
|
||||
osVersion?: string | undefined;
|
||||
projectId?: string | undefined;
|
||||
acceptLanguage?: string | undefined;
|
||||
acceptRegion?: string | undefined;
|
||||
originalUrl?: string | undefined;
|
||||
rawDeviceId?: string | undefined;
|
||||
configData?: string | undefined;
|
||||
spacecastToken?: string | undefined;
|
||||
internalGeo?: string | undefined;
|
||||
screenWidthPoints?: number | undefined;
|
||||
screenHeightPoints?: number | undefined;
|
||||
screenWidthInches?: number | undefined;
|
||||
screenHeightInches?: number | undefined;
|
||||
screenPixelDensity?: number | undefined;
|
||||
platform?: number | undefined;
|
||||
spacecastClientInfo?: ClientInfo_SpacecastClientInfo | undefined;
|
||||
clientFormFactor?: ClientInfo_ClientFormFactor | undefined;
|
||||
forwardedFor?: string | undefined;
|
||||
mobileDataPlanInfo?: ClientInfo_MobileDataPlanInfo | undefined;
|
||||
/** e.g. 241757026 */
|
||||
gmscoreVersionCode?: number | undefined;
|
||||
webpSupport?: boolean | undefined;
|
||||
cameraType?: ClientInfo_CameraType | undefined;
|
||||
experimentsToken?: string | undefined;
|
||||
windowWidthPoints?: number | undefined;
|
||||
windowHeightPoints?: number | undefined;
|
||||
configInfo?: ClientInfo_ConfigGroupsClientInfo | undefined;
|
||||
unpluggedLocationInfo?: ClientInfo_UnpluggedLocationInfo | undefined;
|
||||
androidSdkVersion?: number | undefined;
|
||||
screenDensityFloat?: number | undefined;
|
||||
firstTimeSignInExperimentIds?: number | undefined;
|
||||
utcOffsetMinutes?: number | undefined;
|
||||
animatedWebpSupport?: boolean | undefined;
|
||||
kidsAppInfo?: ClientInfo_KidsAppInfo | undefined;
|
||||
musicAppInfo?: ClientInfo_MusicAppInfo | undefined;
|
||||
tvAppInfo?: ClientInfo_TvAppInfo | undefined;
|
||||
internalGeoIp?: string | undefined;
|
||||
unpluggedAppInfo?: ClientInfo_UnpluggedAppInfo | undefined;
|
||||
locationInfo?: ClientInfo_LocationInfo | undefined;
|
||||
contentSizeCategory?: string | undefined;
|
||||
fontScale?: number | undefined;
|
||||
userInterfaceTheme?: ClientInfo_UserInterfaceTheme | undefined;
|
||||
timeZone?: string | undefined;
|
||||
homeGroupInfo?: ClientInfo_HomeGroupInfo | undefined;
|
||||
emlTemplateContext?: Uint8Array | undefined;
|
||||
coldAppBundleConfigData?: Uint8Array | undefined;
|
||||
/** repeated ExperimentsHeterodyne.ExperimentIds heterodyne_ids = 86; */
|
||||
browserName?: string | undefined;
|
||||
browserVersion?: string | undefined;
|
||||
locationPlayabilityToken?: string | undefined;
|
||||
/** e.g. "qcom;taro" */
|
||||
chipset?: string | undefined;
|
||||
firmwareVersion?: string | undefined;
|
||||
memoryTotalKbytes?: number | undefined;
|
||||
mainAppWebInfo?: ClientInfo_MainAppWebInfo | undefined;
|
||||
notificationPermissionInfo?: ClientInfo_NotificationPermissionInfo | undefined;
|
||||
deviceBrand?: string | undefined;
|
||||
/**
|
||||
* optional ClientStoreInfo client_store_info = 99;
|
||||
* optional SRSDataPushVersion srs_datapush_build_ids = 100;
|
||||
* optional PlayerDataPushVersion player_datapush_build_ids = 101;
|
||||
*/
|
||||
glDeviceInfo?: ClientInfo_GLDeviceInfo | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_ClientFormFactor {
|
||||
/** UNKNOWN_FORM_FACTOR - @TODO: Check these. */
|
||||
UNKNOWN_FORM_FACTOR = 0,
|
||||
FORM_FACTOR_VAL1 = 1,
|
||||
FORM_FACTOR_VAL2 = 2,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_CameraType {
|
||||
UNKNOWN_CAMERA_TYPE = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_UserInterfaceTheme {
|
||||
USER_INTERFACE_THEME_DARK = 0,
|
||||
USER_INTERFACE_THEME_LIGHT = 1,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_MainAppWebInfo {
|
||||
graftUrl?: string | undefined;
|
||||
pwaInstallabilityStatus?: ClientInfo_MainAppWebInfo_PwaInstallabilityStatus | undefined;
|
||||
webDisplayMode?: ClientInfo_MainAppWebInfo_WebDisplayMode | undefined;
|
||||
isWebNativeShareAvailable?: boolean | undefined;
|
||||
storeDigitalGoodsApiSupportStatus?: ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_MainAppWebInfo_StoreDigitalGoodsApiSupportStatus {
|
||||
STORE_DIGITAL_GOODS_API_SUPPORT_STATUS_VAL0 = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MainAppWebInfo_PwaInstallabilityStatus {
|
||||
PWA_INSTALLABILITY_STATUS_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MainAppWebInfo_WebDisplayMode {
|
||||
WEB_DISPLAY_MODE_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_NotificationPermissionInfo {
|
||||
notificationsSetting?: ClientInfo_NotificationPermissionInfo_NotificationsSetting | undefined;
|
||||
lastDeviceOptInChangeTimeAgoSec?: number | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_NotificationPermissionInfo_NotificationsSetting {
|
||||
NOTIFICATIONS_SETTING_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_GLDeviceInfo {
|
||||
glRenderer?: string | undefined;
|
||||
glEsVersionMajor?: number | undefined;
|
||||
glEsVersionMinor?: number | undefined;
|
||||
}
|
||||
export interface ClientInfo_SpacecastClientInfo {
|
||||
appliances?: ClientInfo_SpacecastClientInfo_SpacecastAppliance | undefined;
|
||||
interactionLevel?: ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_SpacecastClientInfo_SpacecastInteractionLevel {
|
||||
UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_SpacecastClientInfo_SpacecastAppliance {
|
||||
contentProfileToken?: Uint8Array | undefined;
|
||||
status?: ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus | undefined;
|
||||
hostname?: string | undefined;
|
||||
active?: boolean | undefined;
|
||||
deviceId?: string | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_SpacecastClientInfo_SpacecastAppliance_OperationalStatus {
|
||||
UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_MobileDataPlanInfo {
|
||||
cpid?: string | undefined;
|
||||
serializedDataPlanStatus?: string | undefined;
|
||||
dataSavingQualityPickerEnabled?: boolean | undefined;
|
||||
mccmnc?: string | undefined;
|
||||
}
|
||||
export interface ClientInfo_ConfigGroupsClientInfo {
|
||||
coldConfigData?: string | undefined;
|
||||
coldHashData?: string | undefined;
|
||||
hotHashData?: string | undefined;
|
||||
appInstallData?: string | undefined;
|
||||
}
|
||||
export interface ClientInfo_UnpluggedLocationInfo {
|
||||
latitudeE7?: number | undefined;
|
||||
longitudeE7?: number | undefined;
|
||||
localTimestampMs?: number | undefined;
|
||||
ipAddress?: string | undefined;
|
||||
timezone?: string | undefined;
|
||||
prefer24HourTime?: boolean | undefined;
|
||||
locationRadiusMeters?: number | undefined;
|
||||
isInitialLoad?: boolean | undefined;
|
||||
browserPermissionGranted?: boolean | undefined;
|
||||
clientPermissionState?: number | undefined;
|
||||
locationOverrideToken?: string | undefined;
|
||||
}
|
||||
export interface ClientInfo_KidsAppInfo {
|
||||
contentSettings?: ClientInfo_KidsAppInfo_KidsContentSettings | undefined;
|
||||
parentCurationMode?: ClientInfo_KidsAppInfo_KidsParentCurationMode | undefined;
|
||||
categorySettings?: ClientInfo_KidsAppInfo_KidsCategorySettings | undefined;
|
||||
userEducationSettings?: ClientInfo_KidsAppInfo_KidsUserEducationSettings | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_KidsAppInfo_KidsParentCurationMode {
|
||||
KPCM_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_KidsAppInfo_KidsContentSettings {
|
||||
kidsNoSearchMode?: ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode | undefined;
|
||||
ageUpMode?: ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode | undefined;
|
||||
contentDensity?: ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsNoSearchMode {
|
||||
YT_KIDS_NO_SEARCH_MODE_OFF = 0,
|
||||
YT_KIDS_NO_SEARCH_MODE_ON = 1,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_KidsAppInfo_KidsContentSettings_YTKidsAgeUpMode {
|
||||
YT_KIDS_AGE_UP_MODE_OFF = 0,
|
||||
YT_KIDS_AGE_UP_MODE_ON = 1,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_KidsAppInfo_KidsContentSettings_KidsContentDensity {
|
||||
/** YT_KIDS_CONTENT_DENSITY_VAL1 - @TODO: Check these. */
|
||||
YT_KIDS_CONTENT_DENSITY_VAL1 = 0,
|
||||
YT_KIDS_CONTENT_DENSITY_VAL2 = 1,
|
||||
YT_KIDS_CONTENT_DENSITY_VAL3 = 2,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_KidsAppInfo_KidsCategorySettings {
|
||||
enabledCategories?: string | undefined;
|
||||
}
|
||||
export interface ClientInfo_KidsAppInfo_KidsUserEducationSettings {
|
||||
hasSeenHomeChipBarUserEducation?: boolean | undefined;
|
||||
hasSeenHomePivotBarUserEducation?: boolean | undefined;
|
||||
hasSeenParentMuirUserEducation?: boolean | undefined;
|
||||
}
|
||||
export interface ClientInfo_MusicAppInfo {
|
||||
playBackMode?: ClientInfo_MusicAppInfo_MusicPlayBackMode | undefined;
|
||||
musicLocationMasterSwitch?: ClientInfo_MusicAppInfo_MusicLocationMasterSwitch | undefined;
|
||||
musicActivityMasterSwitch?: ClientInfo_MusicAppInfo_MusicActivityMasterSwitch | undefined;
|
||||
offlineMixtapeEnabled?: boolean | undefined;
|
||||
autoOfflineEnabled?: boolean | undefined;
|
||||
iosBackgroundRefreshStatus?: ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus | undefined;
|
||||
smartDownloadsSongLimit?: number | undefined;
|
||||
transitionedFromMixtapeToSmartDownloads?: boolean | undefined;
|
||||
pwaInstallabilityStatus?: ClientInfo_MusicAppInfo_PwaInstallabilityStatus | undefined;
|
||||
webDisplayMode?: ClientInfo_MusicAppInfo_WebDisplayMode | undefined;
|
||||
musicTier?: ClientInfo_MusicAppInfo_MusicTier | undefined;
|
||||
storeDigitalGoodsApiSupportStatus?: ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus | undefined;
|
||||
smartDownloadsTimeSinceLastOptOutSec?: number | undefined;
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_MusicPlayBackMode {
|
||||
MPBM_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_MusicLocationMasterSwitch {
|
||||
MLMS_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_MusicActivityMasterSwitch {
|
||||
MAMS_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_IosBackgroundRefreshStatus {
|
||||
UNKNOWN_STATUS = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_PwaInstallabilityStatus {
|
||||
PIS_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_WebDisplayMode {
|
||||
WDM_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_MusicTier {
|
||||
UNKNOWN_TIER = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export declare enum ClientInfo_MusicAppInfo_StoreDigitalGoodsApiSupportStatus {
|
||||
SDGAS_UNKNOWN = 0,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
export interface ClientInfo_TvAppInfo {
|
||||
mdxImpactedSessionsServerEvents?: string | undefined;
|
||||
enablePrivacyFilter?: boolean | undefined;
|
||||
zylonLeftNav?: boolean | undefined;
|
||||
certificationScope?: string | undefined;
|
||||
livingRoomPoTokenId?: string | undefined;
|
||||
jsEngineString?: string | undefined;
|
||||
voiceCapability?: ClientInfo_TvAppInfo_VoiceCapability | undefined;
|
||||
systemIntegrator?: string | undefined;
|
||||
androidBuildFingerprint?: string | undefined;
|
||||
cobaltAppVersion?: string | undefined;
|
||||
cobaltStarboardVersion?: string | undefined;
|
||||
useStartPlaybackPreviewCommand?: boolean | undefined;
|
||||
shouldShowPersistentSigninOnHome?: boolean | undefined;
|
||||
androidPlayServicesVersion?: string | undefined;
|
||||
}
|
||||
export interface ClientInfo_TvAppInfo_VoiceCapability {
|
||||
hasSoftMicSupport?: boolean | undefined;
|
||||
hasHardMicSupport?: boolean | undefined;
|
||||
}
|
||||
export interface ClientInfo_UnpluggedAppInfo {
|
||||
enableFilterMode?: boolean | undefined;
|
||||
iosNotificationPermission?: boolean | undefined;
|
||||
forceEnableEpg3?: boolean | undefined;
|
||||
}
|
||||
export interface ClientInfo_LocationInfo {
|
||||
locationInfoStatus?: number | undefined;
|
||||
ulrStatus?: ClientInfo_LocationInfo_UrlStatus | undefined;
|
||||
latitudeE7?: string | undefined;
|
||||
longitudeE7?: string | undefined;
|
||||
horizontalAccuracyMeters?: string | undefined;
|
||||
locationFreshnessMs?: string | undefined;
|
||||
locationPermissionAuthorizationStatus?: number | undefined;
|
||||
locationOverrideToken?: string | undefined;
|
||||
forceLocationPlayabilityTokenRefresh?: boolean | undefined;
|
||||
}
|
||||
export interface ClientInfo_LocationInfo_UrlStatus {
|
||||
reportingEnabledSetting?: number | undefined;
|
||||
historyEnabledSetting?: number | undefined;
|
||||
isAllowed?: boolean | undefined;
|
||||
isActive?: boolean | undefined;
|
||||
}
|
||||
export interface ClientInfo_HomeGroupInfo {
|
||||
isPartOfGroup?: boolean | undefined;
|
||||
isGroup?: boolean | undefined;
|
||||
}
|
||||
export declare const ClientInfo: MessageFns<ClientInfo>;
|
||||
export declare const ClientInfo_MainAppWebInfo: MessageFns<ClientInfo_MainAppWebInfo>;
|
||||
export declare const ClientInfo_NotificationPermissionInfo: MessageFns<ClientInfo_NotificationPermissionInfo>;
|
||||
export declare const ClientInfo_GLDeviceInfo: MessageFns<ClientInfo_GLDeviceInfo>;
|
||||
export declare const ClientInfo_SpacecastClientInfo: MessageFns<ClientInfo_SpacecastClientInfo>;
|
||||
export declare const ClientInfo_SpacecastClientInfo_SpacecastAppliance: MessageFns<ClientInfo_SpacecastClientInfo_SpacecastAppliance>;
|
||||
export declare const ClientInfo_MobileDataPlanInfo: MessageFns<ClientInfo_MobileDataPlanInfo>;
|
||||
export declare const ClientInfo_ConfigGroupsClientInfo: MessageFns<ClientInfo_ConfigGroupsClientInfo>;
|
||||
export declare const ClientInfo_UnpluggedLocationInfo: MessageFns<ClientInfo_UnpluggedLocationInfo>;
|
||||
export declare const ClientInfo_KidsAppInfo: MessageFns<ClientInfo_KidsAppInfo>;
|
||||
export declare const ClientInfo_KidsAppInfo_KidsContentSettings: MessageFns<ClientInfo_KidsAppInfo_KidsContentSettings>;
|
||||
export declare const ClientInfo_KidsAppInfo_KidsCategorySettings: MessageFns<ClientInfo_KidsAppInfo_KidsCategorySettings>;
|
||||
export declare const ClientInfo_KidsAppInfo_KidsUserEducationSettings: MessageFns<ClientInfo_KidsAppInfo_KidsUserEducationSettings>;
|
||||
export declare const ClientInfo_MusicAppInfo: MessageFns<ClientInfo_MusicAppInfo>;
|
||||
export declare const ClientInfo_TvAppInfo: MessageFns<ClientInfo_TvAppInfo>;
|
||||
export declare const ClientInfo_TvAppInfo_VoiceCapability: MessageFns<ClientInfo_TvAppInfo_VoiceCapability>;
|
||||
export declare const ClientInfo_UnpluggedAppInfo: MessageFns<ClientInfo_UnpluggedAppInfo>;
|
||||
export declare const ClientInfo_LocationInfo: MessageFns<ClientInfo_LocationInfo>;
|
||||
export declare const ClientInfo_LocationInfo_UrlStatus: MessageFns<ClientInfo_LocationInfo_UrlStatus>;
|
||||
export declare const ClientInfo_HomeGroupInfo: MessageFns<ClientInfo_HomeGroupInfo>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+2360
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlayerRequest } from "./player_request.js";
|
||||
import { ReelItemWatchRequest } from "./reel_item_watch_request.js";
|
||||
import { WatchNextRequest } from "./watch_next_request.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface GetWatchRequest {
|
||||
context?: InnerTubeContext | undefined;
|
||||
playerRequest?: PlayerRequest | undefined;
|
||||
watchNextRequest?: WatchNextRequest | undefined;
|
||||
reelItemWatchRequest?: ReelItemWatchRequest | undefined;
|
||||
}
|
||||
export declare const GetWatchRequest: MessageFns<GetWatchRequest>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+76
@@ -0,0 +1,76 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/get_watch_request.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlayerRequest } from "./player_request.js";
|
||||
import { ReelItemWatchRequest } from "./reel_item_watch_request.js";
|
||||
import { WatchNextRequest } from "./watch_next_request.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseGetWatchRequest() {
|
||||
return { context: undefined, playerRequest: undefined, watchNextRequest: undefined, reelItemWatchRequest: undefined };
|
||||
}
|
||||
export const GetWatchRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.context !== undefined) {
|
||||
InnerTubeContext.encode(message.context, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.playerRequest !== undefined) {
|
||||
PlayerRequest.encode(message.playerRequest, writer.uint32(18).fork()).join();
|
||||
}
|
||||
if (message.watchNextRequest !== undefined) {
|
||||
WatchNextRequest.encode(message.watchNextRequest, writer.uint32(26).fork()).join();
|
||||
}
|
||||
if (message.reelItemWatchRequest !== undefined) {
|
||||
ReelItemWatchRequest.encode(message.reelItemWatchRequest, writer.uint32(34).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseGetWatchRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.context = InnerTubeContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.playerRequest = PlayerRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.watchNextRequest = WatchNextRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.reelItemWatchRequest = ReelItemWatchRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=get_watch_request.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get_watch_request.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/get_watch_request.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,2DAA2D;AAE3D,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAS1D,SAAS,yBAAyB;IAChC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC;AACxH,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAgC;IAC1D,MAAM,CAAC,OAAwB,EAAE,SAAuB,IAAI,YAAY,EAAE;QACxE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC5E,CAAC;QACD,IAAI,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;YACxC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAA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;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;oBACtE,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;oBAC5E,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;oBACpF,SAAS;gBACX,CAAC;YACH,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
Generated
Vendored
+48
@@ -0,0 +1,48 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { KeyValuePair } from "../../../misc/common.js";
|
||||
import { CapabilityInfo } from "./capability_info.js";
|
||||
import { ClientInfo } from "./client_info.js";
|
||||
import { RequestInfo } from "./request_info.js";
|
||||
import { ThirdPartyInfo } from "./third_party_info.js";
|
||||
import { UserInfo } from "./user_info.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface InnerTubeContext {
|
||||
client?: ClientInfo | undefined;
|
||||
user?: UserInfo | undefined;
|
||||
capabilities?: CapabilityInfo | undefined;
|
||||
request?: RequestInfo | undefined;
|
||||
clickTracking?: InnerTubeContext_ClickTrackingInfo | undefined;
|
||||
thirdParty?: ThirdPartyInfo | undefined;
|
||||
remoteClient?: ClientInfo | undefined;
|
||||
adSignalsInfo?: InnerTubeContext_AdSignalsInfo | undefined;
|
||||
experimentalData?: InnerTubeContext_ExperimentalData | undefined;
|
||||
clientScreenNonce?: string | undefined;
|
||||
activePlayers: InnerTubeContext_ActivePlayerInfo[];
|
||||
}
|
||||
export interface InnerTubeContext_ExperimentalData {
|
||||
params: KeyValuePair[];
|
||||
}
|
||||
export interface InnerTubeContext_ActivePlayerInfo {
|
||||
playerContextParams?: Uint8Array | undefined;
|
||||
}
|
||||
export interface InnerTubeContext_ClickTrackingInfo {
|
||||
clickTrackingParams?: Uint8Array | undefined;
|
||||
}
|
||||
export interface InnerTubeContext_AdSignalsInfo {
|
||||
params: KeyValuePair[];
|
||||
bid?: string | undefined;
|
||||
mutsuId?: string | undefined;
|
||||
consentBumpState?: string | undefined;
|
||||
advertisingId?: string | undefined;
|
||||
limitAdTracking?: boolean | undefined;
|
||||
attributionOsSupportedVersion?: string | undefined;
|
||||
}
|
||||
export declare const InnerTubeContext: MessageFns<InnerTubeContext>;
|
||||
export declare const InnerTubeContext_ExperimentalData: MessageFns<InnerTubeContext_ExperimentalData>;
|
||||
export declare const InnerTubeContext_ActivePlayerInfo: MessageFns<InnerTubeContext_ActivePlayerInfo>;
|
||||
export declare const InnerTubeContext_ClickTrackingInfo: MessageFns<InnerTubeContext_ClickTrackingInfo>;
|
||||
export declare const InnerTubeContext_AdSignalsInfo: MessageFns<InnerTubeContext_AdSignalsInfo>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+360
@@ -0,0 +1,360 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/innertube_context.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { KeyValuePair } from "../../../misc/common.js";
|
||||
import { CapabilityInfo } from "./capability_info.js";
|
||||
import { ClientInfo } from "./client_info.js";
|
||||
import { RequestInfo } from "./request_info.js";
|
||||
import { ThirdPartyInfo } from "./third_party_info.js";
|
||||
import { UserInfo } from "./user_info.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseInnerTubeContext() {
|
||||
return {
|
||||
client: undefined,
|
||||
user: undefined,
|
||||
capabilities: undefined,
|
||||
request: undefined,
|
||||
clickTracking: undefined,
|
||||
thirdParty: undefined,
|
||||
remoteClient: undefined,
|
||||
adSignalsInfo: undefined,
|
||||
experimentalData: undefined,
|
||||
clientScreenNonce: undefined,
|
||||
activePlayers: [],
|
||||
};
|
||||
}
|
||||
export const InnerTubeContext = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.client !== undefined) {
|
||||
ClientInfo.encode(message.client, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.user !== undefined) {
|
||||
UserInfo.encode(message.user, writer.uint32(26).fork()).join();
|
||||
}
|
||||
if (message.capabilities !== undefined) {
|
||||
CapabilityInfo.encode(message.capabilities, writer.uint32(34).fork()).join();
|
||||
}
|
||||
if (message.request !== undefined) {
|
||||
RequestInfo.encode(message.request, writer.uint32(42).fork()).join();
|
||||
}
|
||||
if (message.clickTracking !== undefined) {
|
||||
InnerTubeContext_ClickTrackingInfo.encode(message.clickTracking, writer.uint32(50).fork()).join();
|
||||
}
|
||||
if (message.thirdParty !== undefined) {
|
||||
ThirdPartyInfo.encode(message.thirdParty, writer.uint32(58).fork()).join();
|
||||
}
|
||||
if (message.remoteClient !== undefined) {
|
||||
ClientInfo.encode(message.remoteClient, writer.uint32(66).fork()).join();
|
||||
}
|
||||
if (message.adSignalsInfo !== undefined) {
|
||||
InnerTubeContext_AdSignalsInfo.encode(message.adSignalsInfo, writer.uint32(74).fork()).join();
|
||||
}
|
||||
if (message.experimentalData !== undefined) {
|
||||
InnerTubeContext_ExperimentalData.encode(message.experimentalData, writer.uint32(82).fork()).join();
|
||||
}
|
||||
if (message.clientScreenNonce !== undefined) {
|
||||
writer.uint32(90).string(message.clientScreenNonce);
|
||||
}
|
||||
for (const v of message.activePlayers) {
|
||||
InnerTubeContext_ActivePlayerInfo.encode(v, writer.uint32(98).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeContext();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.client = ClientInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.user = UserInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.capabilities = CapabilityInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 42) {
|
||||
break;
|
||||
}
|
||||
message.request = RequestInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.clickTracking = InnerTubeContext_ClickTrackingInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 58) {
|
||||
break;
|
||||
}
|
||||
message.thirdParty = ThirdPartyInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 66) {
|
||||
break;
|
||||
}
|
||||
message.remoteClient = ClientInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 74) {
|
||||
break;
|
||||
}
|
||||
message.adSignalsInfo = InnerTubeContext_AdSignalsInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 10: {
|
||||
if (tag !== 82) {
|
||||
break;
|
||||
}
|
||||
message.experimentalData = InnerTubeContext_ExperimentalData.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 11: {
|
||||
if (tag !== 90) {
|
||||
break;
|
||||
}
|
||||
message.clientScreenNonce = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 12: {
|
||||
if (tag !== 98) {
|
||||
break;
|
||||
}
|
||||
message.activePlayers.push(InnerTubeContext_ActivePlayerInfo.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInnerTubeContext_ExperimentalData() {
|
||||
return { params: [] };
|
||||
}
|
||||
export const InnerTubeContext_ExperimentalData = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
for (const v of message.params) {
|
||||
KeyValuePair.encode(v, writer.uint32(10).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeContext_ExperimentalData();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.params.push(KeyValuePair.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInnerTubeContext_ActivePlayerInfo() {
|
||||
return { playerContextParams: undefined };
|
||||
}
|
||||
export const InnerTubeContext_ActivePlayerInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.playerContextParams !== undefined) {
|
||||
writer.uint32(10).bytes(message.playerContextParams);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeContext_ActivePlayerInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.playerContextParams = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInnerTubeContext_ClickTrackingInfo() {
|
||||
return { clickTrackingParams: undefined };
|
||||
}
|
||||
export const InnerTubeContext_ClickTrackingInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.clickTrackingParams !== undefined) {
|
||||
writer.uint32(18).bytes(message.clickTrackingParams);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeContext_ClickTrackingInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.clickTrackingParams = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseInnerTubeContext_AdSignalsInfo() {
|
||||
return {
|
||||
params: [],
|
||||
bid: undefined,
|
||||
mutsuId: undefined,
|
||||
consentBumpState: undefined,
|
||||
advertisingId: undefined,
|
||||
limitAdTracking: undefined,
|
||||
attributionOsSupportedVersion: undefined,
|
||||
};
|
||||
}
|
||||
export const InnerTubeContext_AdSignalsInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
for (const v of message.params) {
|
||||
KeyValuePair.encode(v, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.bid !== undefined) {
|
||||
writer.uint32(18).string(message.bid);
|
||||
}
|
||||
if (message.mutsuId !== undefined) {
|
||||
writer.uint32(26).string(message.mutsuId);
|
||||
}
|
||||
if (message.consentBumpState !== undefined) {
|
||||
writer.uint32(34).string(message.consentBumpState);
|
||||
}
|
||||
if (message.advertisingId !== undefined) {
|
||||
writer.uint32(58).string(message.advertisingId);
|
||||
}
|
||||
if (message.limitAdTracking !== undefined) {
|
||||
writer.uint32(72).bool(message.limitAdTracking);
|
||||
}
|
||||
if (message.attributionOsSupportedVersion !== undefined) {
|
||||
writer.uint32(82).string(message.attributionOsSupportedVersion);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseInnerTubeContext_AdSignalsInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.params.push(KeyValuePair.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.bid = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.mutsuId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.consentBumpState = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 58) {
|
||||
break;
|
||||
}
|
||||
message.advertisingId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 72) {
|
||||
break;
|
||||
}
|
||||
message.limitAdTracking = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 10: {
|
||||
if (tag !== 82) {
|
||||
break;
|
||||
}
|
||||
message.attributionOsSupportedVersion = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=innertube_context.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
node_modules/youtubei.js/dist/protos/generated/youtube/api/pfiinnertube/metadata_update_request.d.ts
Generated
Vendored
+80
@@ -0,0 +1,80 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface MetadataUpdateRequest {
|
||||
context?: InnerTubeContext | undefined;
|
||||
encryptedVideoId?: string | undefined;
|
||||
title?: MetadataUpdateRequest_MdeTitleUpdateRequest | undefined;
|
||||
description?: MetadataUpdateRequest_MdeDescriptionUpdateRequest | undefined;
|
||||
privacy?: MetadataUpdateRequest_MdePrivacyUpdateRequest | undefined;
|
||||
tags?: MetadataUpdateRequest_MdeTagsUpdateRequest | undefined;
|
||||
category?: MetadataUpdateRequest_MdeCategoryUpdateRequest | undefined;
|
||||
license?: MetadataUpdateRequest_MdeLicenseUpdateRequest | undefined;
|
||||
ageRestriction?: MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest | undefined;
|
||||
videoStill?: MetadataUpdateRequest_MdeVideoStillRequestParams | undefined;
|
||||
madeForKids?: MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams | undefined;
|
||||
racy?: MetadataUpdateRequest_MdeRacyRequestParams | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeTitleUpdateRequest {
|
||||
newTitle?: string | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeDescriptionUpdateRequest {
|
||||
newDescription?: string | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdePrivacyUpdateRequest {
|
||||
newPrivacy?: number | undefined;
|
||||
clearPrivacyDraft?: boolean | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeTagsUpdateRequest {
|
||||
newTags: string[];
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeCategoryUpdateRequest {
|
||||
newCategoryId?: number | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeLicenseUpdateRequest {
|
||||
newLicenseId?: string | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams {
|
||||
operation?: number | undefined;
|
||||
newMfk?: number | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeRacyRequestParams {
|
||||
operation?: number | undefined;
|
||||
newRacy?: number | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest {
|
||||
newIsAgeRestricted?: boolean | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeVideoStillRequestParams {
|
||||
operation?: number | undefined;
|
||||
newStillId?: number | undefined;
|
||||
image?: MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage | undefined;
|
||||
testImage?: MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage | undefined;
|
||||
experimentImage: MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData[];
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData {
|
||||
image?: MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage | undefined;
|
||||
}
|
||||
export interface MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage {
|
||||
rawBytes?: Uint8Array | undefined;
|
||||
dataUri?: string | undefined;
|
||||
frameTimestampUs?: number | undefined;
|
||||
isVertical?: boolean | undefined;
|
||||
}
|
||||
export declare const MetadataUpdateRequest: MessageFns<MetadataUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeTitleUpdateRequest: MessageFns<MetadataUpdateRequest_MdeTitleUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeDescriptionUpdateRequest: MessageFns<MetadataUpdateRequest_MdeDescriptionUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdePrivacyUpdateRequest: MessageFns<MetadataUpdateRequest_MdePrivacyUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeTagsUpdateRequest: MessageFns<MetadataUpdateRequest_MdeTagsUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeCategoryUpdateRequest: MessageFns<MetadataUpdateRequest_MdeCategoryUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeLicenseUpdateRequest: MessageFns<MetadataUpdateRequest_MdeLicenseUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams: MessageFns<MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams>;
|
||||
export declare const MetadataUpdateRequest_MdeRacyRequestParams: MessageFns<MetadataUpdateRequest_MdeRacyRequestParams>;
|
||||
export declare const MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest: MessageFns<MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest>;
|
||||
export declare const MetadataUpdateRequest_MdeVideoStillRequestParams: MessageFns<MetadataUpdateRequest_MdeVideoStillRequestParams>;
|
||||
export declare const MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData: MessageFns<MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData>;
|
||||
export declare const MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage: MessageFns<MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+675
@@ -0,0 +1,675 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/metadata_update_request.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseMetadataUpdateRequest() {
|
||||
return {
|
||||
context: undefined,
|
||||
encryptedVideoId: undefined,
|
||||
title: undefined,
|
||||
description: undefined,
|
||||
privacy: undefined,
|
||||
tags: undefined,
|
||||
category: undefined,
|
||||
license: undefined,
|
||||
ageRestriction: undefined,
|
||||
videoStill: undefined,
|
||||
madeForKids: undefined,
|
||||
racy: undefined,
|
||||
};
|
||||
}
|
||||
export const MetadataUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.context !== undefined) {
|
||||
InnerTubeContext.encode(message.context, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.encryptedVideoId !== undefined) {
|
||||
writer.uint32(18).string(message.encryptedVideoId);
|
||||
}
|
||||
if (message.title !== undefined) {
|
||||
MetadataUpdateRequest_MdeTitleUpdateRequest.encode(message.title, writer.uint32(26).fork()).join();
|
||||
}
|
||||
if (message.description !== undefined) {
|
||||
MetadataUpdateRequest_MdeDescriptionUpdateRequest.encode(message.description, writer.uint32(34).fork()).join();
|
||||
}
|
||||
if (message.privacy !== undefined) {
|
||||
MetadataUpdateRequest_MdePrivacyUpdateRequest.encode(message.privacy, writer.uint32(42).fork()).join();
|
||||
}
|
||||
if (message.tags !== undefined) {
|
||||
MetadataUpdateRequest_MdeTagsUpdateRequest.encode(message.tags, writer.uint32(50).fork()).join();
|
||||
}
|
||||
if (message.category !== undefined) {
|
||||
MetadataUpdateRequest_MdeCategoryUpdateRequest.encode(message.category, writer.uint32(58).fork()).join();
|
||||
}
|
||||
if (message.license !== undefined) {
|
||||
MetadataUpdateRequest_MdeLicenseUpdateRequest.encode(message.license, writer.uint32(66).fork()).join();
|
||||
}
|
||||
if (message.ageRestriction !== undefined) {
|
||||
MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest.encode(message.ageRestriction, writer.uint32(90).fork())
|
||||
.join();
|
||||
}
|
||||
if (message.videoStill !== undefined) {
|
||||
MetadataUpdateRequest_MdeVideoStillRequestParams.encode(message.videoStill, writer.uint32(162).fork()).join();
|
||||
}
|
||||
if (message.madeForKids !== undefined) {
|
||||
MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams.encode(message.madeForKids, writer.uint32(546).fork())
|
||||
.join();
|
||||
}
|
||||
if (message.racy !== undefined) {
|
||||
MetadataUpdateRequest_MdeRacyRequestParams.encode(message.racy, writer.uint32(554).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.context = InnerTubeContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.encryptedVideoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.title = MetadataUpdateRequest_MdeTitleUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.description = MetadataUpdateRequest_MdeDescriptionUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 42) {
|
||||
break;
|
||||
}
|
||||
message.privacy = MetadataUpdateRequest_MdePrivacyUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.tags = MetadataUpdateRequest_MdeTagsUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 58) {
|
||||
break;
|
||||
}
|
||||
message.category = MetadataUpdateRequest_MdeCategoryUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 66) {
|
||||
break;
|
||||
}
|
||||
message.license = MetadataUpdateRequest_MdeLicenseUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 11: {
|
||||
if (tag !== 90) {
|
||||
break;
|
||||
}
|
||||
message.ageRestriction = MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 20: {
|
||||
if (tag !== 162) {
|
||||
break;
|
||||
}
|
||||
message.videoStill = MetadataUpdateRequest_MdeVideoStillRequestParams.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 68: {
|
||||
if (tag !== 546) {
|
||||
break;
|
||||
}
|
||||
message.madeForKids = MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 69: {
|
||||
if (tag !== 554) {
|
||||
break;
|
||||
}
|
||||
message.racy = MetadataUpdateRequest_MdeRacyRequestParams.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeTitleUpdateRequest() {
|
||||
return { newTitle: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeTitleUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newTitle !== undefined) {
|
||||
writer.uint32(10).string(message.newTitle);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeTitleUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.newTitle = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeDescriptionUpdateRequest() {
|
||||
return { newDescription: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeDescriptionUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newDescription !== undefined) {
|
||||
writer.uint32(10).string(message.newDescription);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeDescriptionUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.newDescription = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdePrivacyUpdateRequest() {
|
||||
return { newPrivacy: undefined, clearPrivacyDraft: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdePrivacyUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newPrivacy !== undefined) {
|
||||
writer.uint32(8).int32(message.newPrivacy);
|
||||
}
|
||||
if (message.clearPrivacyDraft !== undefined) {
|
||||
writer.uint32(16).bool(message.clearPrivacyDraft);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdePrivacyUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.newPrivacy = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.clearPrivacyDraft = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeTagsUpdateRequest() {
|
||||
return { newTags: [] };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeTagsUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
for (const v of message.newTags) {
|
||||
writer.uint32(10).string(v);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeTagsUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.newTags.push(reader.string());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeCategoryUpdateRequest() {
|
||||
return { newCategoryId: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeCategoryUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newCategoryId !== undefined) {
|
||||
writer.uint32(8).int32(message.newCategoryId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeCategoryUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.newCategoryId = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeLicenseUpdateRequest() {
|
||||
return { newLicenseId: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeLicenseUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newLicenseId !== undefined) {
|
||||
writer.uint32(10).string(message.newLicenseId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeLicenseUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.newLicenseId = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams() {
|
||||
return { operation: undefined, newMfk: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.operation !== undefined) {
|
||||
writer.uint32(8).int32(message.operation);
|
||||
}
|
||||
if (message.newMfk !== undefined) {
|
||||
writer.uint32(16).int32(message.newMfk);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeMadeForKidsUpdateRequestParams();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.operation = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.newMfk = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeRacyRequestParams() {
|
||||
return { operation: undefined, newRacy: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeRacyRequestParams = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.operation !== undefined) {
|
||||
writer.uint32(8).int32(message.operation);
|
||||
}
|
||||
if (message.newRacy !== undefined) {
|
||||
writer.uint32(16).int32(message.newRacy);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeRacyRequestParams();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.operation = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.newRacy = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeAgeRestrictionUpdateRequest() {
|
||||
return { newIsAgeRestricted: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeAgeRestrictionUpdateRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.newIsAgeRestricted !== undefined) {
|
||||
writer.uint32(8).bool(message.newIsAgeRestricted);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeAgeRestrictionUpdateRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.newIsAgeRestricted = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeVideoStillRequestParams() {
|
||||
return { operation: undefined, newStillId: undefined, image: undefined, testImage: undefined, experimentImage: [] };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeVideoStillRequestParams = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.operation !== undefined) {
|
||||
writer.uint32(8).int32(message.operation);
|
||||
}
|
||||
if (message.newStillId !== undefined) {
|
||||
writer.uint32(16).int32(message.newStillId);
|
||||
}
|
||||
if (message.image !== undefined) {
|
||||
MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.encode(message.image, writer.uint32(26).fork()).join();
|
||||
}
|
||||
if (message.testImage !== undefined) {
|
||||
MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.encode(message.testImage, writer.uint32(34).fork()).join();
|
||||
}
|
||||
for (const v of message.experimentImage) {
|
||||
MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData.encode(v, writer.uint32(50).fork())
|
||||
.join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeVideoStillRequestParams();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.operation = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.newStillId = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.image = MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.testImage = MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.experimentImage.push(MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData() {
|
||||
return { image: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.image !== undefined) {
|
||||
MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.encode(message.image, writer.uint32(10).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeVideoStillRequestParams_ThumbnailExperimentImageData();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.image = MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseMetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage() {
|
||||
return { rawBytes: undefined, dataUri: undefined, frameTimestampUs: undefined, isVertical: undefined };
|
||||
}
|
||||
export const MetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.rawBytes !== undefined) {
|
||||
writer.uint32(10).bytes(message.rawBytes);
|
||||
}
|
||||
if (message.dataUri !== undefined) {
|
||||
writer.uint32(18).string(message.dataUri);
|
||||
}
|
||||
if (message.frameTimestampUs !== undefined) {
|
||||
writer.uint32(32).int64(message.frameTimestampUs);
|
||||
}
|
||||
if (message.isVertical !== undefined) {
|
||||
writer.uint32(40).bool(message.isVertical);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseMetadataUpdateRequest_MdeVideoStillRequestParams_CustomThumbnailImage();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.rawBytes = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.dataUri = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 32) {
|
||||
break;
|
||||
}
|
||||
message.frameTimestampUs = longToNumber(reader.int64());
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 40) {
|
||||
break;
|
||||
}
|
||||
message.isVertical = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function longToNumber(int64) {
|
||||
const num = globalThis.Number(int64.toString());
|
||||
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
||||
}
|
||||
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
||||
}
|
||||
return num;
|
||||
}
|
||||
//# sourceMappingURL=metadata_update_request.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+61
@@ -0,0 +1,61 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface PlaybackContext {
|
||||
contentPlaybackContext?: PlaybackContext_ContentPlaybackContext | undefined;
|
||||
}
|
||||
export interface PlaybackContext_ContentPlaybackContext {
|
||||
deviceSignals?: string | undefined;
|
||||
revShareClientId?: string | undefined;
|
||||
timeSinceLastAdSeconds?: number | undefined;
|
||||
lactMilliseconds?: number | undefined;
|
||||
autoplaysSinceLastAd?: number | undefined;
|
||||
vis?: number | undefined;
|
||||
fling?: boolean | undefined;
|
||||
splay?: boolean | undefined;
|
||||
autoplay?: boolean | undefined;
|
||||
timeOfLastInstreamPrerollAd?: number | undefined;
|
||||
currentUrl?: string | undefined;
|
||||
referer?: string | undefined;
|
||||
loadAnnotationsByDemand?: boolean | undefined;
|
||||
autoCaptionsDefaultOn?: boolean | undefined;
|
||||
/** optional ForceAdParameters force_ad_parameters = 25; */
|
||||
slicedBread?: boolean | undefined;
|
||||
autonav?: boolean | undefined;
|
||||
trailer?: boolean | undefined;
|
||||
/**
|
||||
* optional MdxPlaybackContext mdx_context = 31;
|
||||
* optional LivePlaybackContext live_context = 32;
|
||||
*/
|
||||
playerWidthPixels?: number | undefined;
|
||||
playerHeightPixels?: number | undefined;
|
||||
/** optional Html5Preference html5_preference = 36; */
|
||||
snd?: number | undefined;
|
||||
vnd?: number | undefined;
|
||||
/** optional UnpluggedContentPlaybackContext unplugged_context = 40; */
|
||||
uao?: number | undefined;
|
||||
mutedAutoplay?: boolean | undefined;
|
||||
/** optional AutonavSettingsState autonav_state = 45; */
|
||||
enablePrivacyFilter?: boolean | undefined;
|
||||
isLivingRoomDeeplink?: boolean | undefined;
|
||||
signatureTimestamp?: number | undefined;
|
||||
/** optional TrailerPlaybackContext trailer_context = 49; */
|
||||
isInlinePlaybackNoAd?: boolean | undefined;
|
||||
isInlineUnmutedPlayback?: boolean | undefined;
|
||||
/**
|
||||
* optional CustomTabContext custom_tab_context = 52;
|
||||
* optional VideoPlaybackPosition player_playback_position = 54;
|
||||
*/
|
||||
playPackageVersion?: number | undefined;
|
||||
/**
|
||||
* optional CoWatchPlaybackContext co_watch_context = 56;
|
||||
* optional WatchAmbientModePlaybackContext watch_ambient_mode_context = 57;
|
||||
* optional CompositeVideoPlaybackContext composite_video_context = 58;
|
||||
*/
|
||||
isSequenceEntry?: boolean | undefined;
|
||||
}
|
||||
export declare const PlaybackContext: MessageFns<PlaybackContext>;
|
||||
export declare const PlaybackContext_ContentPlaybackContext: MessageFns<PlaybackContext_ContentPlaybackContext>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+406
@@ -0,0 +1,406 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/playback_context.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBasePlaybackContext() {
|
||||
return { contentPlaybackContext: undefined };
|
||||
}
|
||||
export const PlaybackContext = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.contentPlaybackContext !== undefined) {
|
||||
PlaybackContext_ContentPlaybackContext.encode(message.contentPlaybackContext, writer.uint32(10).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlaybackContext();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.contentPlaybackContext = PlaybackContext_ContentPlaybackContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBasePlaybackContext_ContentPlaybackContext() {
|
||||
return {
|
||||
deviceSignals: undefined,
|
||||
revShareClientId: undefined,
|
||||
timeSinceLastAdSeconds: undefined,
|
||||
lactMilliseconds: undefined,
|
||||
autoplaysSinceLastAd: undefined,
|
||||
vis: undefined,
|
||||
fling: undefined,
|
||||
splay: undefined,
|
||||
autoplay: undefined,
|
||||
timeOfLastInstreamPrerollAd: undefined,
|
||||
currentUrl: undefined,
|
||||
referer: undefined,
|
||||
loadAnnotationsByDemand: undefined,
|
||||
autoCaptionsDefaultOn: undefined,
|
||||
slicedBread: undefined,
|
||||
autonav: undefined,
|
||||
trailer: undefined,
|
||||
playerWidthPixels: undefined,
|
||||
playerHeightPixels: undefined,
|
||||
snd: undefined,
|
||||
vnd: undefined,
|
||||
uao: undefined,
|
||||
mutedAutoplay: undefined,
|
||||
enablePrivacyFilter: undefined,
|
||||
isLivingRoomDeeplink: undefined,
|
||||
signatureTimestamp: undefined,
|
||||
isInlinePlaybackNoAd: undefined,
|
||||
isInlineUnmutedPlayback: undefined,
|
||||
playPackageVersion: undefined,
|
||||
isSequenceEntry: undefined,
|
||||
};
|
||||
}
|
||||
export const PlaybackContext_ContentPlaybackContext = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.deviceSignals !== undefined) {
|
||||
writer.uint32(10).string(message.deviceSignals);
|
||||
}
|
||||
if (message.revShareClientId !== undefined) {
|
||||
writer.uint32(26).string(message.revShareClientId);
|
||||
}
|
||||
if (message.timeSinceLastAdSeconds !== undefined) {
|
||||
writer.uint32(32).uint32(message.timeSinceLastAdSeconds);
|
||||
}
|
||||
if (message.lactMilliseconds !== undefined) {
|
||||
writer.uint32(40).int64(message.lactMilliseconds);
|
||||
}
|
||||
if (message.autoplaysSinceLastAd !== undefined) {
|
||||
writer.uint32(48).uint32(message.autoplaysSinceLastAd);
|
||||
}
|
||||
if (message.vis !== undefined) {
|
||||
writer.uint32(64).uint32(message.vis);
|
||||
}
|
||||
if (message.fling !== undefined) {
|
||||
writer.uint32(72).bool(message.fling);
|
||||
}
|
||||
if (message.splay !== undefined) {
|
||||
writer.uint32(80).bool(message.splay);
|
||||
}
|
||||
if (message.autoplay !== undefined) {
|
||||
writer.uint32(88).bool(message.autoplay);
|
||||
}
|
||||
if (message.timeOfLastInstreamPrerollAd !== undefined) {
|
||||
writer.uint32(104).uint64(message.timeOfLastInstreamPrerollAd);
|
||||
}
|
||||
if (message.currentUrl !== undefined) {
|
||||
writer.uint32(122).string(message.currentUrl);
|
||||
}
|
||||
if (message.referer !== undefined) {
|
||||
writer.uint32(130).string(message.referer);
|
||||
}
|
||||
if (message.loadAnnotationsByDemand !== undefined) {
|
||||
writer.uint32(184).bool(message.loadAnnotationsByDemand);
|
||||
}
|
||||
if (message.autoCaptionsDefaultOn !== undefined) {
|
||||
writer.uint32(192).bool(message.autoCaptionsDefaultOn);
|
||||
}
|
||||
if (message.slicedBread !== undefined) {
|
||||
writer.uint32(216).bool(message.slicedBread);
|
||||
}
|
||||
if (message.autonav !== undefined) {
|
||||
writer.uint32(232).bool(message.autonav);
|
||||
}
|
||||
if (message.trailer !== undefined) {
|
||||
writer.uint32(240).bool(message.trailer);
|
||||
}
|
||||
if (message.playerWidthPixels !== undefined) {
|
||||
writer.uint32(272).int32(message.playerWidthPixels);
|
||||
}
|
||||
if (message.playerHeightPixels !== undefined) {
|
||||
writer.uint32(280).int32(message.playerHeightPixels);
|
||||
}
|
||||
if (message.snd !== undefined) {
|
||||
writer.uint32(296).int32(message.snd);
|
||||
}
|
||||
if (message.vnd !== undefined) {
|
||||
writer.uint32(304).int32(message.vnd);
|
||||
}
|
||||
if (message.uao !== undefined) {
|
||||
writer.uint32(328).int32(message.uao);
|
||||
}
|
||||
if (message.mutedAutoplay !== undefined) {
|
||||
writer.uint32(352).bool(message.mutedAutoplay);
|
||||
}
|
||||
if (message.enablePrivacyFilter !== undefined) {
|
||||
writer.uint32(368).bool(message.enablePrivacyFilter);
|
||||
}
|
||||
if (message.isLivingRoomDeeplink !== undefined) {
|
||||
writer.uint32(376).bool(message.isLivingRoomDeeplink);
|
||||
}
|
||||
if (message.signatureTimestamp !== undefined) {
|
||||
writer.uint32(384).uint32(message.signatureTimestamp);
|
||||
}
|
||||
if (message.isInlinePlaybackNoAd !== undefined) {
|
||||
writer.uint32(400).bool(message.isInlinePlaybackNoAd);
|
||||
}
|
||||
if (message.isInlineUnmutedPlayback !== undefined) {
|
||||
writer.uint32(408).bool(message.isInlineUnmutedPlayback);
|
||||
}
|
||||
if (message.playPackageVersion !== undefined) {
|
||||
writer.uint32(440).int64(message.playPackageVersion);
|
||||
}
|
||||
if (message.isSequenceEntry !== undefined) {
|
||||
writer.uint32(480).bool(message.isSequenceEntry);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlaybackContext_ContentPlaybackContext();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.deviceSignals = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.revShareClientId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 32) {
|
||||
break;
|
||||
}
|
||||
message.timeSinceLastAdSeconds = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 40) {
|
||||
break;
|
||||
}
|
||||
message.lactMilliseconds = longToNumber(reader.int64());
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 48) {
|
||||
break;
|
||||
}
|
||||
message.autoplaysSinceLastAd = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 64) {
|
||||
break;
|
||||
}
|
||||
message.vis = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 72) {
|
||||
break;
|
||||
}
|
||||
message.fling = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 10: {
|
||||
if (tag !== 80) {
|
||||
break;
|
||||
}
|
||||
message.splay = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 11: {
|
||||
if (tag !== 88) {
|
||||
break;
|
||||
}
|
||||
message.autoplay = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 13: {
|
||||
if (tag !== 104) {
|
||||
break;
|
||||
}
|
||||
message.timeOfLastInstreamPrerollAd = longToNumber(reader.uint64());
|
||||
continue;
|
||||
}
|
||||
case 15: {
|
||||
if (tag !== 122) {
|
||||
break;
|
||||
}
|
||||
message.currentUrl = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 130) {
|
||||
break;
|
||||
}
|
||||
message.referer = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 23: {
|
||||
if (tag !== 184) {
|
||||
break;
|
||||
}
|
||||
message.loadAnnotationsByDemand = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 24: {
|
||||
if (tag !== 192) {
|
||||
break;
|
||||
}
|
||||
message.autoCaptionsDefaultOn = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 27: {
|
||||
if (tag !== 216) {
|
||||
break;
|
||||
}
|
||||
message.slicedBread = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 29: {
|
||||
if (tag !== 232) {
|
||||
break;
|
||||
}
|
||||
message.autonav = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 30: {
|
||||
if (tag !== 240) {
|
||||
break;
|
||||
}
|
||||
message.trailer = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 34: {
|
||||
if (tag !== 272) {
|
||||
break;
|
||||
}
|
||||
message.playerWidthPixels = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 35: {
|
||||
if (tag !== 280) {
|
||||
break;
|
||||
}
|
||||
message.playerHeightPixels = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 37: {
|
||||
if (tag !== 296) {
|
||||
break;
|
||||
}
|
||||
message.snd = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 38: {
|
||||
if (tag !== 304) {
|
||||
break;
|
||||
}
|
||||
message.vnd = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 41: {
|
||||
if (tag !== 328) {
|
||||
break;
|
||||
}
|
||||
message.uao = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 44: {
|
||||
if (tag !== 352) {
|
||||
break;
|
||||
}
|
||||
message.mutedAutoplay = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 46: {
|
||||
if (tag !== 368) {
|
||||
break;
|
||||
}
|
||||
message.enablePrivacyFilter = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 47: {
|
||||
if (tag !== 376) {
|
||||
break;
|
||||
}
|
||||
message.isLivingRoomDeeplink = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 48: {
|
||||
if (tag !== 384) {
|
||||
break;
|
||||
}
|
||||
message.signatureTimestamp = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 50: {
|
||||
if (tag !== 400) {
|
||||
break;
|
||||
}
|
||||
message.isInlinePlaybackNoAd = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 51: {
|
||||
if (tag !== 408) {
|
||||
break;
|
||||
}
|
||||
message.isInlineUnmutedPlayback = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 55: {
|
||||
if (tag !== 440) {
|
||||
break;
|
||||
}
|
||||
message.playPackageVersion = longToNumber(reader.int64());
|
||||
continue;
|
||||
}
|
||||
case 60: {
|
||||
if (tag !== 480) {
|
||||
break;
|
||||
}
|
||||
message.isSequenceEntry = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function longToNumber(int64) {
|
||||
const num = globalThis.Number(int64.toString());
|
||||
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
||||
}
|
||||
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
||||
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
||||
}
|
||||
return num;
|
||||
}
|
||||
//# sourceMappingURL=playback_context.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface PlayerAttestationRequestData {
|
||||
iosguardRequest?: PlayerAttestationRequestData_IosguardChallengeRequestData | undefined;
|
||||
omitBotguardData?: boolean | undefined;
|
||||
}
|
||||
export interface PlayerAttestationRequestData_IosguardChallengeRequestData {
|
||||
challengeRequest?: Uint8Array | undefined;
|
||||
}
|
||||
export declare const PlayerAttestationRequestData: MessageFns<PlayerAttestationRequestData>;
|
||||
export declare const PlayerAttestationRequestData_IosguardChallengeRequestData: MessageFns<PlayerAttestationRequestData_IosguardChallengeRequestData>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+85
@@ -0,0 +1,85 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/player_attestation_request_data.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBasePlayerAttestationRequestData() {
|
||||
return { iosguardRequest: undefined, omitBotguardData: undefined };
|
||||
}
|
||||
export const PlayerAttestationRequestData = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.iosguardRequest !== undefined) {
|
||||
PlayerAttestationRequestData_IosguardChallengeRequestData.encode(message.iosguardRequest, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.omitBotguardData !== undefined) {
|
||||
writer.uint32(16).bool(message.omitBotguardData);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlayerAttestationRequestData();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.iosguardRequest = PlayerAttestationRequestData_IosguardChallengeRequestData.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 16) {
|
||||
break;
|
||||
}
|
||||
message.omitBotguardData = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBasePlayerAttestationRequestData_IosguardChallengeRequestData() {
|
||||
return { challengeRequest: undefined };
|
||||
}
|
||||
export const PlayerAttestationRequestData_IosguardChallengeRequestData = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.challengeRequest !== undefined) {
|
||||
writer.uint32(10).bytes(message.challengeRequest);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlayerAttestationRequestData_IosguardChallengeRequestData();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.challengeRequest = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=player_attestation_request_data.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"player_attestation_request_data.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/player_attestation_request_data.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,yEAAyE;AAEzE,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAW1D,SAAS,sCAAsC;IAC7C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC;AACrE,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAA6C;IACpF,MAAM,CAAC,OAAqC,EAAE,SAAuB,IAAI,YAAY,EAAE;QACrF,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YAC1C,yDAAyD,CAAC,MAAM,CAC9D,OAAO,CAAC,eAAe,EACvB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CACzB,CAAC,IAAI,EAAE,CAAC;QACX,CAAC;QACD,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CA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endored
+39
@@ -0,0 +1,39 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlaybackContext } from "./playback_context.js";
|
||||
import { PlayerAttestationRequestData } from "./player_attestation_request_data.js";
|
||||
import { PlayerRequestCaptionParams } from "./player_request_caption_params.js";
|
||||
import { ServiceIntegrityDimensions } from "./service_integrity_dimensions.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface PlayerRequest {
|
||||
context?: InnerTubeContext | undefined;
|
||||
videoId?: string | undefined;
|
||||
contentCheckOk?: boolean | undefined;
|
||||
playbackContext?: PlaybackContext | undefined;
|
||||
racyCheckOk?: boolean | undefined;
|
||||
id?: string | undefined;
|
||||
t?: string | undefined;
|
||||
forOffline?: boolean | undefined;
|
||||
playlistId?: string | undefined;
|
||||
playlistIndex?: number | undefined;
|
||||
startTimeSecs?: number | undefined;
|
||||
params?: string | undefined;
|
||||
offlineSharingWrappedKey?: Uint8Array | undefined;
|
||||
attestationRequest?: PlayerAttestationRequestData | undefined;
|
||||
referringApp?: string | undefined;
|
||||
referrer?: string | undefined;
|
||||
serializedThirdPartyEmbedConfig?: string | undefined;
|
||||
proxiedByOnesie?: boolean | undefined;
|
||||
hostAppToken?: string | undefined;
|
||||
cpn?: string | undefined;
|
||||
overrideMutedAtStart?: boolean | undefined;
|
||||
captionParams?: PlayerRequestCaptionParams | undefined;
|
||||
serviceIntegrityDimensions?: ServiceIntegrityDimensions | undefined;
|
||||
/** optional VideoQualitySetting video_quality_setting_params = 28; */
|
||||
deferredPlayerToken?: Uint8Array | undefined;
|
||||
}
|
||||
export declare const PlayerRequest: MessageFns<PlayerRequest>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+302
@@ -0,0 +1,302 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/player_request.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlaybackContext } from "./playback_context.js";
|
||||
import { PlayerAttestationRequestData } from "./player_attestation_request_data.js";
|
||||
import { PlayerRequestCaptionParams } from "./player_request_caption_params.js";
|
||||
import { ServiceIntegrityDimensions } from "./service_integrity_dimensions.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBasePlayerRequest() {
|
||||
return {
|
||||
context: undefined,
|
||||
videoId: undefined,
|
||||
contentCheckOk: undefined,
|
||||
playbackContext: undefined,
|
||||
racyCheckOk: undefined,
|
||||
id: undefined,
|
||||
t: undefined,
|
||||
forOffline: undefined,
|
||||
playlistId: undefined,
|
||||
playlistIndex: undefined,
|
||||
startTimeSecs: undefined,
|
||||
params: undefined,
|
||||
offlineSharingWrappedKey: undefined,
|
||||
attestationRequest: undefined,
|
||||
referringApp: undefined,
|
||||
referrer: undefined,
|
||||
serializedThirdPartyEmbedConfig: undefined,
|
||||
proxiedByOnesie: undefined,
|
||||
hostAppToken: undefined,
|
||||
cpn: undefined,
|
||||
overrideMutedAtStart: undefined,
|
||||
captionParams: undefined,
|
||||
serviceIntegrityDimensions: undefined,
|
||||
deferredPlayerToken: undefined,
|
||||
};
|
||||
}
|
||||
export const PlayerRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.context !== undefined) {
|
||||
InnerTubeContext.encode(message.context, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
writer.uint32(18).string(message.videoId);
|
||||
}
|
||||
if (message.contentCheckOk !== undefined) {
|
||||
writer.uint32(24).bool(message.contentCheckOk);
|
||||
}
|
||||
if (message.playbackContext !== undefined) {
|
||||
PlaybackContext.encode(message.playbackContext, writer.uint32(34).fork()).join();
|
||||
}
|
||||
if (message.racyCheckOk !== undefined) {
|
||||
writer.uint32(40).bool(message.racyCheckOk);
|
||||
}
|
||||
if (message.id !== undefined) {
|
||||
writer.uint32(50).string(message.id);
|
||||
}
|
||||
if (message.t !== undefined) {
|
||||
writer.uint32(58).string(message.t);
|
||||
}
|
||||
if (message.forOffline !== undefined) {
|
||||
writer.uint32(64).bool(message.forOffline);
|
||||
}
|
||||
if (message.playlistId !== undefined) {
|
||||
writer.uint32(74).string(message.playlistId);
|
||||
}
|
||||
if (message.playlistIndex !== undefined) {
|
||||
writer.uint32(80).int32(message.playlistIndex);
|
||||
}
|
||||
if (message.startTimeSecs !== undefined) {
|
||||
writer.uint32(88).uint32(message.startTimeSecs);
|
||||
}
|
||||
if (message.params !== undefined) {
|
||||
writer.uint32(98).string(message.params);
|
||||
}
|
||||
if (message.offlineSharingWrappedKey !== undefined) {
|
||||
writer.uint32(114).bytes(message.offlineSharingWrappedKey);
|
||||
}
|
||||
if (message.attestationRequest !== undefined) {
|
||||
PlayerAttestationRequestData.encode(message.attestationRequest, writer.uint32(130).fork()).join();
|
||||
}
|
||||
if (message.referringApp !== undefined) {
|
||||
writer.uint32(138).string(message.referringApp);
|
||||
}
|
||||
if (message.referrer !== undefined) {
|
||||
writer.uint32(146).string(message.referrer);
|
||||
}
|
||||
if (message.serializedThirdPartyEmbedConfig !== undefined) {
|
||||
writer.uint32(154).string(message.serializedThirdPartyEmbedConfig);
|
||||
}
|
||||
if (message.proxiedByOnesie !== undefined) {
|
||||
writer.uint32(160).bool(message.proxiedByOnesie);
|
||||
}
|
||||
if (message.hostAppToken !== undefined) {
|
||||
writer.uint32(178).string(message.hostAppToken);
|
||||
}
|
||||
if (message.cpn !== undefined) {
|
||||
writer.uint32(186).string(message.cpn);
|
||||
}
|
||||
if (message.overrideMutedAtStart !== undefined) {
|
||||
writer.uint32(200).bool(message.overrideMutedAtStart);
|
||||
}
|
||||
if (message.captionParams !== undefined) {
|
||||
PlayerRequestCaptionParams.encode(message.captionParams, writer.uint32(210).fork()).join();
|
||||
}
|
||||
if (message.serviceIntegrityDimensions !== undefined) {
|
||||
ServiceIntegrityDimensions.encode(message.serviceIntegrityDimensions, writer.uint32(218).fork()).join();
|
||||
}
|
||||
if (message.deferredPlayerToken !== undefined) {
|
||||
writer.uint32(234).bytes(message.deferredPlayerToken);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlayerRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.context = InnerTubeContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.videoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 24) {
|
||||
break;
|
||||
}
|
||||
message.contentCheckOk = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.playbackContext = PlaybackContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 40) {
|
||||
break;
|
||||
}
|
||||
message.racyCheckOk = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.id = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 58) {
|
||||
break;
|
||||
}
|
||||
message.t = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 64) {
|
||||
break;
|
||||
}
|
||||
message.forOffline = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 74) {
|
||||
break;
|
||||
}
|
||||
message.playlistId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 10: {
|
||||
if (tag !== 80) {
|
||||
break;
|
||||
}
|
||||
message.playlistIndex = reader.int32();
|
||||
continue;
|
||||
}
|
||||
case 11: {
|
||||
if (tag !== 88) {
|
||||
break;
|
||||
}
|
||||
message.startTimeSecs = reader.uint32();
|
||||
continue;
|
||||
}
|
||||
case 12: {
|
||||
if (tag !== 98) {
|
||||
break;
|
||||
}
|
||||
message.params = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 14: {
|
||||
if (tag !== 114) {
|
||||
break;
|
||||
}
|
||||
message.offlineSharingWrappedKey = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 130) {
|
||||
break;
|
||||
}
|
||||
message.attestationRequest = PlayerAttestationRequestData.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 17: {
|
||||
if (tag !== 138) {
|
||||
break;
|
||||
}
|
||||
message.referringApp = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 18: {
|
||||
if (tag !== 146) {
|
||||
break;
|
||||
}
|
||||
message.referrer = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 19: {
|
||||
if (tag !== 154) {
|
||||
break;
|
||||
}
|
||||
message.serializedThirdPartyEmbedConfig = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 20: {
|
||||
if (tag !== 160) {
|
||||
break;
|
||||
}
|
||||
message.proxiedByOnesie = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 22: {
|
||||
if (tag !== 178) {
|
||||
break;
|
||||
}
|
||||
message.hostAppToken = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 23: {
|
||||
if (tag !== 186) {
|
||||
break;
|
||||
}
|
||||
message.cpn = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 25: {
|
||||
if (tag !== 200) {
|
||||
break;
|
||||
}
|
||||
message.overrideMutedAtStart = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 26: {
|
||||
if (tag !== 210) {
|
||||
break;
|
||||
}
|
||||
message.captionParams = PlayerRequestCaptionParams.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 27: {
|
||||
if (tag !== 218) {
|
||||
break;
|
||||
}
|
||||
message.serviceIntegrityDimensions = ServiceIntegrityDimensions.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 29: {
|
||||
if (tag !== 234) {
|
||||
break;
|
||||
}
|
||||
message.deferredPlayerToken = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=player_request.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface PlayerRequestCaptionParams {
|
||||
deviceCaptionsOn?: boolean | undefined;
|
||||
deviceCaptionsLangPref?: string | undefined;
|
||||
viewerSelectedCaptionLangs?: string | undefined;
|
||||
ccLangPref?: string | undefined;
|
||||
ccLoadPolicyOn?: boolean | undefined;
|
||||
}
|
||||
export declare const PlayerRequestCaptionParams: MessageFns<PlayerRequestCaptionParams>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+88
@@ -0,0 +1,88 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/player_request_caption_params.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBasePlayerRequestCaptionParams() {
|
||||
return {
|
||||
deviceCaptionsOn: undefined,
|
||||
deviceCaptionsLangPref: undefined,
|
||||
viewerSelectedCaptionLangs: undefined,
|
||||
ccLangPref: undefined,
|
||||
ccLoadPolicyOn: undefined,
|
||||
};
|
||||
}
|
||||
export const PlayerRequestCaptionParams = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.deviceCaptionsOn !== undefined) {
|
||||
writer.uint32(8).bool(message.deviceCaptionsOn);
|
||||
}
|
||||
if (message.deviceCaptionsLangPref !== undefined) {
|
||||
writer.uint32(18).string(message.deviceCaptionsLangPref);
|
||||
}
|
||||
if (message.viewerSelectedCaptionLangs !== undefined) {
|
||||
writer.uint32(26).string(message.viewerSelectedCaptionLangs);
|
||||
}
|
||||
if (message.ccLangPref !== undefined) {
|
||||
writer.uint32(34).string(message.ccLangPref);
|
||||
}
|
||||
if (message.ccLoadPolicyOn !== undefined) {
|
||||
writer.uint32(40).bool(message.ccLoadPolicyOn);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBasePlayerRequestCaptionParams();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.deviceCaptionsOn = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.deviceCaptionsLangPref = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.viewerSelectedCaptionLangs = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.ccLangPref = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 5: {
|
||||
if (tag !== 40) {
|
||||
break;
|
||||
}
|
||||
message.ccLoadPolicyOn = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=player_request_caption_params.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"player_request_caption_params.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/player_request_caption_params.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,uEAAuE;AAEvE,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAU1D,SAAS,oCAAoC;IAC3C,OAAO;QACL,gBAAgB,EAAE,SAAS;QAC3B,sBAAsB,EAAE,SAAS;QACjC,0BAA0B,EAAE,SAAS;QACrC,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,SAAS;KAC1B,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAA2C;IAChF,MAAM,CAAC,OAAmC,EAAE,SAAuB,IAAI,YAAY,EAAE;QACnF,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,OAAO,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;YACjD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MAAM,CAAC,IAAI,EAAE,CAAC;oBACzC,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBACjD,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBACrD,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBACrC,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,cAAc,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;oBACvC,SAAS;gBACX,CAAC;YACH,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
node_modules/youtubei.js/dist/protos/generated/youtube/api/pfiinnertube/reel_item_watch_request.d.ts
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlayerRequest } from "./player_request.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface ReelItemWatchRequest {
|
||||
context?: InnerTubeContext | undefined;
|
||||
playerRequest?: PlayerRequest | undefined;
|
||||
params?: string | undefined;
|
||||
disablePlayerResponse?: boolean | undefined;
|
||||
}
|
||||
export declare const ReelItemWatchRequest: MessageFns<ReelItemWatchRequest>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+74
@@ -0,0 +1,74 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/reel_item_watch_request.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
import { PlayerRequest } from "./player_request.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseReelItemWatchRequest() {
|
||||
return { context: undefined, playerRequest: undefined, params: undefined, disablePlayerResponse: undefined };
|
||||
}
|
||||
export const ReelItemWatchRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.context !== undefined) {
|
||||
InnerTubeContext.encode(message.context, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.playerRequest !== undefined) {
|
||||
PlayerRequest.encode(message.playerRequest, writer.uint32(18).fork()).join();
|
||||
}
|
||||
if (message.params !== undefined) {
|
||||
writer.uint32(26).string(message.params);
|
||||
}
|
||||
if (message.disablePlayerResponse !== undefined) {
|
||||
writer.uint32(32).bool(message.disablePlayerResponse);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseReelItemWatchRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.context = InnerTubeContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.playerRequest = PlayerRequest.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.params = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 32) {
|
||||
break;
|
||||
}
|
||||
message.disablePlayerResponse = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=reel_item_watch_request.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"reel_item_watch_request.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/reel_item_watch_request.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,iEAAiE;AAEjE,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAS1D,SAAS,8BAA8B;IACrC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,E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CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
Generated
Vendored
+56
@@ -0,0 +1,56 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { KeyValuePair } from "../../../misc/common.js";
|
||||
import { AttestationResponseData } from "./attestation_response_data.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface RequestInfo {
|
||||
thirdPartyDigest?: string | undefined;
|
||||
useSsl?: boolean | undefined;
|
||||
returnErrorDetail?: boolean | undefined;
|
||||
/** "If-None-Match" HTTP header? */
|
||||
ifNoneMatch?: string | undefined;
|
||||
returnLogEntry?: boolean | undefined;
|
||||
isPrefetch?: boolean | undefined;
|
||||
internalExperimentFlags: KeyValuePair[];
|
||||
returnDebugData?: boolean | undefined;
|
||||
innertubez?: string | undefined;
|
||||
traceProto?: boolean | undefined;
|
||||
returnLogEntryJson?: boolean | undefined;
|
||||
sherlogUsername?: string | undefined;
|
||||
/** repeated ConsistencyTokenJar consistency_token_jars = 26; */
|
||||
reauthRequestInfo?: RequestInfo_ReauthRequestInfo | undefined;
|
||||
sessionInfo?: RequestInfo_SessionInfo | undefined;
|
||||
returnLogEntryProto?: boolean | undefined;
|
||||
/** External pre-request context as a string */
|
||||
externalPrequestContext?: string | undefined;
|
||||
/**
|
||||
* repeated InnerTubeTokenJar innertube_token_jar = 33;
|
||||
* Would a botguard/droidguard response here allow playback?
|
||||
*/
|
||||
attestationResponseData?: AttestationResponseData | undefined;
|
||||
eats?: Uint8Array | undefined;
|
||||
requestQos?: RequestInfo_RequestQoS | undefined;
|
||||
}
|
||||
export declare enum RequestInfo_Criticality {
|
||||
CRITICALITY_UNSPECIFIED = 0,
|
||||
CRITICALITY_CRITICAL = 1,
|
||||
CRITICALITY_NON_CRITICAL = 2,
|
||||
UNRECOGNIZED = -1
|
||||
}
|
||||
/** Quality of Service? */
|
||||
export interface RequestInfo_RequestQoS {
|
||||
criticality?: RequestInfo_Criticality | undefined;
|
||||
}
|
||||
export interface RequestInfo_SessionInfo {
|
||||
token?: string | undefined;
|
||||
}
|
||||
export interface RequestInfo_ReauthRequestInfo {
|
||||
encodedReauthProofToken?: string | undefined;
|
||||
}
|
||||
export declare const RequestInfo: MessageFns<RequestInfo>;
|
||||
export declare const RequestInfo_RequestQoS: MessageFns<RequestInfo_RequestQoS>;
|
||||
export declare const RequestInfo_SessionInfo: MessageFns<RequestInfo_SessionInfo>;
|
||||
export declare const RequestInfo_ReauthRequestInfo: MessageFns<RequestInfo_ReauthRequestInfo>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+349
@@ -0,0 +1,349 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/request_info.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { KeyValuePair } from "../../../misc/common.js";
|
||||
import { AttestationResponseData } from "./attestation_response_data.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export const RequestInfo_Criticality = {
|
||||
CRITICALITY_UNSPECIFIED: 0, 0: "CRITICALITY_UNSPECIFIED",
|
||||
CRITICALITY_CRITICAL: 1, 1: "CRITICALITY_CRITICAL",
|
||||
CRITICALITY_NON_CRITICAL: 2, 2: "CRITICALITY_NON_CRITICAL",
|
||||
UNRECOGNIZED: -1, "-1": "UNRECOGNIZED"
|
||||
};
|
||||
function createBaseRequestInfo() {
|
||||
return {
|
||||
thirdPartyDigest: undefined,
|
||||
useSsl: undefined,
|
||||
returnErrorDetail: undefined,
|
||||
ifNoneMatch: undefined,
|
||||
returnLogEntry: undefined,
|
||||
isPrefetch: undefined,
|
||||
internalExperimentFlags: [],
|
||||
returnDebugData: undefined,
|
||||
innertubez: undefined,
|
||||
traceProto: undefined,
|
||||
returnLogEntryJson: undefined,
|
||||
sherlogUsername: undefined,
|
||||
reauthRequestInfo: undefined,
|
||||
sessionInfo: undefined,
|
||||
returnLogEntryProto: undefined,
|
||||
externalPrequestContext: undefined,
|
||||
attestationResponseData: undefined,
|
||||
eats: undefined,
|
||||
requestQos: undefined,
|
||||
};
|
||||
}
|
||||
export const RequestInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.thirdPartyDigest !== undefined) {
|
||||
writer.uint32(50).string(message.thirdPartyDigest);
|
||||
}
|
||||
if (message.useSsl !== undefined) {
|
||||
writer.uint32(56).bool(message.useSsl);
|
||||
}
|
||||
if (message.returnErrorDetail !== undefined) {
|
||||
writer.uint32(72).bool(message.returnErrorDetail);
|
||||
}
|
||||
if (message.ifNoneMatch !== undefined) {
|
||||
writer.uint32(98).string(message.ifNoneMatch);
|
||||
}
|
||||
if (message.returnLogEntry !== undefined) {
|
||||
writer.uint32(104).bool(message.returnLogEntry);
|
||||
}
|
||||
if (message.isPrefetch !== undefined) {
|
||||
writer.uint32(112).bool(message.isPrefetch);
|
||||
}
|
||||
for (const v of message.internalExperimentFlags) {
|
||||
KeyValuePair.encode(v, writer.uint32(122).fork()).join();
|
||||
}
|
||||
if (message.returnDebugData !== undefined) {
|
||||
writer.uint32(128).bool(message.returnDebugData);
|
||||
}
|
||||
if (message.innertubez !== undefined) {
|
||||
writer.uint32(146).string(message.innertubez);
|
||||
}
|
||||
if (message.traceProto !== undefined) {
|
||||
writer.uint32(184).bool(message.traceProto);
|
||||
}
|
||||
if (message.returnLogEntryJson !== undefined) {
|
||||
writer.uint32(192).bool(message.returnLogEntryJson);
|
||||
}
|
||||
if (message.sherlogUsername !== undefined) {
|
||||
writer.uint32(202).string(message.sherlogUsername);
|
||||
}
|
||||
if (message.reauthRequestInfo !== undefined) {
|
||||
RequestInfo_ReauthRequestInfo.encode(message.reauthRequestInfo, writer.uint32(234).fork()).join();
|
||||
}
|
||||
if (message.sessionInfo !== undefined) {
|
||||
RequestInfo_SessionInfo.encode(message.sessionInfo, writer.uint32(242).fork()).join();
|
||||
}
|
||||
if (message.returnLogEntryProto !== undefined) {
|
||||
writer.uint32(248).bool(message.returnLogEntryProto);
|
||||
}
|
||||
if (message.externalPrequestContext !== undefined) {
|
||||
writer.uint32(258).string(message.externalPrequestContext);
|
||||
}
|
||||
if (message.attestationResponseData !== undefined) {
|
||||
AttestationResponseData.encode(message.attestationResponseData, writer.uint32(274).fork()).join();
|
||||
}
|
||||
if (message.eats !== undefined) {
|
||||
writer.uint32(282).bytes(message.eats);
|
||||
}
|
||||
if (message.requestQos !== undefined) {
|
||||
RequestInfo_RequestQoS.encode(message.requestQos, writer.uint32(290).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseRequestInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.thirdPartyDigest = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 56) {
|
||||
break;
|
||||
}
|
||||
message.useSsl = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 72) {
|
||||
break;
|
||||
}
|
||||
message.returnErrorDetail = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 12: {
|
||||
if (tag !== 98) {
|
||||
break;
|
||||
}
|
||||
message.ifNoneMatch = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 13: {
|
||||
if (tag !== 104) {
|
||||
break;
|
||||
}
|
||||
message.returnLogEntry = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 14: {
|
||||
if (tag !== 112) {
|
||||
break;
|
||||
}
|
||||
message.isPrefetch = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 15: {
|
||||
if (tag !== 122) {
|
||||
break;
|
||||
}
|
||||
message.internalExperimentFlags.push(KeyValuePair.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 128) {
|
||||
break;
|
||||
}
|
||||
message.returnDebugData = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 18: {
|
||||
if (tag !== 146) {
|
||||
break;
|
||||
}
|
||||
message.innertubez = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 23: {
|
||||
if (tag !== 184) {
|
||||
break;
|
||||
}
|
||||
message.traceProto = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 24: {
|
||||
if (tag !== 192) {
|
||||
break;
|
||||
}
|
||||
message.returnLogEntryJson = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 25: {
|
||||
if (tag !== 202) {
|
||||
break;
|
||||
}
|
||||
message.sherlogUsername = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 29: {
|
||||
if (tag !== 234) {
|
||||
break;
|
||||
}
|
||||
message.reauthRequestInfo = RequestInfo_ReauthRequestInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 30: {
|
||||
if (tag !== 242) {
|
||||
break;
|
||||
}
|
||||
message.sessionInfo = RequestInfo_SessionInfo.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 31: {
|
||||
if (tag !== 248) {
|
||||
break;
|
||||
}
|
||||
message.returnLogEntryProto = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 32: {
|
||||
if (tag !== 258) {
|
||||
break;
|
||||
}
|
||||
message.externalPrequestContext = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 34: {
|
||||
if (tag !== 274) {
|
||||
break;
|
||||
}
|
||||
message.attestationResponseData = AttestationResponseData.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 35: {
|
||||
if (tag !== 282) {
|
||||
break;
|
||||
}
|
||||
message.eats = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
case 36: {
|
||||
if (tag !== 290) {
|
||||
break;
|
||||
}
|
||||
message.requestQos = RequestInfo_RequestQoS.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseRequestInfo_RequestQoS() {
|
||||
return { criticality: undefined };
|
||||
}
|
||||
export const RequestInfo_RequestQoS = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.criticality !== undefined) {
|
||||
writer.uint32(8).int32(message.criticality);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseRequestInfo_RequestQoS();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 8) {
|
||||
break;
|
||||
}
|
||||
message.criticality = reader.int32();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseRequestInfo_SessionInfo() {
|
||||
return { token: undefined };
|
||||
}
|
||||
export const RequestInfo_SessionInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.token !== undefined) {
|
||||
writer.uint32(10).string(message.token);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseRequestInfo_SessionInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.token = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseRequestInfo_ReauthRequestInfo() {
|
||||
return { encodedReauthProofToken: undefined };
|
||||
}
|
||||
export const RequestInfo_ReauthRequestInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.encodedReauthProofToken !== undefined) {
|
||||
writer.uint32(10).string(message.encodedReauthProofToken);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseRequestInfo_ReauthRequestInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.encodedReauthProofToken = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=request_info.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface ServiceIntegrityDimensions {
|
||||
poToken?: Uint8Array | undefined;
|
||||
}
|
||||
export declare const ServiceIntegrityDimensions: MessageFns<ServiceIntegrityDimensions>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/service_integrity_dimensions.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseServiceIntegrityDimensions() {
|
||||
return { poToken: undefined };
|
||||
}
|
||||
export const ServiceIntegrityDimensions = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.poToken !== undefined) {
|
||||
writer.uint32(10).bytes(message.poToken);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseServiceIntegrityDimensions();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.poToken = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=service_integrity_dimensions.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"service_integrity_dimensions.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/service_integrity_dimensions.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,sEAAsE;AAEtE,oBAAoB;AACpB,OAAO,EAA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EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface ThirdPartyInfo {
|
||||
developerKey?: string | undefined;
|
||||
appName?: string | undefined;
|
||||
appPublisher?: string | undefined;
|
||||
embedUrl?: string | undefined;
|
||||
appVersion?: string | undefined;
|
||||
embeddedPlayerContext?: ThirdPartyInfo_EmbeddedPlayerContext | undefined;
|
||||
}
|
||||
export interface ThirdPartyInfo_EmbeddedPlayerContext {
|
||||
ancestorOrigins?: string | undefined;
|
||||
embeddedPlayerEncryptedContext?: string | undefined;
|
||||
ancestorOriginsSupported?: boolean | undefined;
|
||||
}
|
||||
export declare const ThirdPartyInfo: MessageFns<ThirdPartyInfo>;
|
||||
export declare const ThirdPartyInfo_EmbeddedPlayerContext: MessageFns<ThirdPartyInfo_EmbeddedPlayerContext>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+152
@@ -0,0 +1,152 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/third_party_info.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseThirdPartyInfo() {
|
||||
return {
|
||||
developerKey: undefined,
|
||||
appName: undefined,
|
||||
appPublisher: undefined,
|
||||
embedUrl: undefined,
|
||||
appVersion: undefined,
|
||||
embeddedPlayerContext: undefined,
|
||||
};
|
||||
}
|
||||
export const ThirdPartyInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.developerKey !== undefined) {
|
||||
writer.uint32(10).string(message.developerKey);
|
||||
}
|
||||
if (message.appName !== undefined) {
|
||||
writer.uint32(18).string(message.appName);
|
||||
}
|
||||
if (message.appPublisher !== undefined) {
|
||||
writer.uint32(26).string(message.appPublisher);
|
||||
}
|
||||
if (message.embedUrl !== undefined) {
|
||||
writer.uint32(34).string(message.embedUrl);
|
||||
}
|
||||
if (message.appVersion !== undefined) {
|
||||
writer.uint32(50).string(message.appVersion);
|
||||
}
|
||||
if (message.embeddedPlayerContext !== undefined) {
|
||||
ThirdPartyInfo_EmbeddedPlayerContext.encode(message.embeddedPlayerContext, writer.uint32(58).fork()).join();
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseThirdPartyInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.developerKey = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.appName = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.appPublisher = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.embedUrl = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.appVersion = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 58) {
|
||||
break;
|
||||
}
|
||||
message.embeddedPlayerContext = ThirdPartyInfo_EmbeddedPlayerContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseThirdPartyInfo_EmbeddedPlayerContext() {
|
||||
return { ancestorOrigins: undefined, embeddedPlayerEncryptedContext: undefined, ancestorOriginsSupported: undefined };
|
||||
}
|
||||
export const ThirdPartyInfo_EmbeddedPlayerContext = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.ancestorOrigins !== undefined) {
|
||||
writer.uint32(10).string(message.ancestorOrigins);
|
||||
}
|
||||
if (message.embeddedPlayerEncryptedContext !== undefined) {
|
||||
writer.uint32(18).string(message.embeddedPlayerEncryptedContext);
|
||||
}
|
||||
if (message.ancestorOriginsSupported !== undefined) {
|
||||
writer.uint32(24).bool(message.ancestorOriginsSupported);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseThirdPartyInfo_EmbeddedPlayerContext();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.ancestorOrigins = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.embeddedPlayerEncryptedContext = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 3: {
|
||||
if (tag !== 24) {
|
||||
break;
|
||||
}
|
||||
message.ancestorOriginsSupported = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=third_party_info.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"third_party_info.js","sourceRoot":"","sources":["../../../../../../protos/generated/youtube/api/pfiinnertube/third_party_info.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,gCAAgC;AAChC,iCAAiC;AACjC,0DAA0D;AAE1D,oBAAoB;AACpB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAiB1D,SAAS,wBAAwB;IAC/B,OAAO;QACL,YAAY,EAAE,SAAS;QACvB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,SAAS;QACvB,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,SAAS;QACrB,qBAAqB,EAAE,SAAS;KACjC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,MAAM,CAAC,OAAuB,EAAE,SAAuB,IAAI,YAAY,EAAE;QACvE,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;QACD,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,OAAO,CAAC,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AC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBAC1C,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;oBACzD,SAAS;gBACX,CAAC;gBACD,KAAK,CAAC,CAAC,CAAC,CAAC;oBACP,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;wBACf,MAAM;oBACR,CAAC;oBAED,OAAO,CAAC,wBAAwB,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;oBACjD,SAAS;gBACX,CAAC;YACH,CAAC;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;gBACjC,MAAM;YACR,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
||||
Generated
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface UserInfo {
|
||||
onBehalfOfUser?: string | undefined;
|
||||
enableSafetyMode?: boolean | undefined;
|
||||
credentialTransferTokens: UserInfo_CredentialTransferToken[];
|
||||
delegatePurchases?: UserInfo_DelegatePurchases | undefined;
|
||||
kidsParent?: UserInfo_KidsParent | undefined;
|
||||
isIncognito?: boolean | undefined;
|
||||
lockedSafetyMode?: boolean | undefined;
|
||||
delegationContext?: UserInfo_DelegationContext | undefined;
|
||||
serializedDelegationContext?: string | undefined;
|
||||
}
|
||||
export interface UserInfo_KidsParent {
|
||||
}
|
||||
export interface UserInfo_DelegatePurchases {
|
||||
}
|
||||
export interface UserInfo_DelegationContext {
|
||||
}
|
||||
export interface UserInfo_CredentialTransferToken {
|
||||
}
|
||||
export declare const UserInfo: MessageFns<UserInfo>;
|
||||
export declare const UserInfo_KidsParent: MessageFns<UserInfo_KidsParent>;
|
||||
export declare const UserInfo_DelegatePurchases: MessageFns<UserInfo_DelegatePurchases>;
|
||||
export declare const UserInfo_DelegationContext: MessageFns<UserInfo_DelegationContext>;
|
||||
export declare const UserInfo_CredentialTransferToken: MessageFns<UserInfo_CredentialTransferToken>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+224
@@ -0,0 +1,224 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/user_info.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseUserInfo() {
|
||||
return {
|
||||
onBehalfOfUser: undefined,
|
||||
enableSafetyMode: undefined,
|
||||
credentialTransferTokens: [],
|
||||
delegatePurchases: undefined,
|
||||
kidsParent: undefined,
|
||||
isIncognito: undefined,
|
||||
lockedSafetyMode: undefined,
|
||||
delegationContext: undefined,
|
||||
serializedDelegationContext: undefined,
|
||||
};
|
||||
}
|
||||
export const UserInfo = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.onBehalfOfUser !== undefined) {
|
||||
writer.uint32(26).string(message.onBehalfOfUser);
|
||||
}
|
||||
if (message.enableSafetyMode !== undefined) {
|
||||
writer.uint32(56).bool(message.enableSafetyMode);
|
||||
}
|
||||
for (const v of message.credentialTransferTokens) {
|
||||
UserInfo_CredentialTransferToken.encode(v, writer.uint32(98).fork()).join();
|
||||
}
|
||||
if (message.delegatePurchases !== undefined) {
|
||||
UserInfo_DelegatePurchases.encode(message.delegatePurchases, writer.uint32(106).fork()).join();
|
||||
}
|
||||
if (message.kidsParent !== undefined) {
|
||||
UserInfo_KidsParent.encode(message.kidsParent, writer.uint32(114).fork()).join();
|
||||
}
|
||||
if (message.isIncognito !== undefined) {
|
||||
writer.uint32(120).bool(message.isIncognito);
|
||||
}
|
||||
if (message.lockedSafetyMode !== undefined) {
|
||||
writer.uint32(128).bool(message.lockedSafetyMode);
|
||||
}
|
||||
if (message.delegationContext !== undefined) {
|
||||
UserInfo_DelegationContext.encode(message.delegationContext, writer.uint32(138).fork()).join();
|
||||
}
|
||||
if (message.serializedDelegationContext !== undefined) {
|
||||
writer.uint32(146).string(message.serializedDelegationContext);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseUserInfo();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 3: {
|
||||
if (tag !== 26) {
|
||||
break;
|
||||
}
|
||||
message.onBehalfOfUser = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 7: {
|
||||
if (tag !== 56) {
|
||||
break;
|
||||
}
|
||||
message.enableSafetyMode = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 12: {
|
||||
if (tag !== 98) {
|
||||
break;
|
||||
}
|
||||
message.credentialTransferTokens.push(UserInfo_CredentialTransferToken.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 13: {
|
||||
if (tag !== 106) {
|
||||
break;
|
||||
}
|
||||
message.delegatePurchases = UserInfo_DelegatePurchases.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 14: {
|
||||
if (tag !== 114) {
|
||||
break;
|
||||
}
|
||||
message.kidsParent = UserInfo_KidsParent.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 15: {
|
||||
if (tag !== 120) {
|
||||
break;
|
||||
}
|
||||
message.isIncognito = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 128) {
|
||||
break;
|
||||
}
|
||||
message.lockedSafetyMode = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 17: {
|
||||
if (tag !== 138) {
|
||||
break;
|
||||
}
|
||||
message.delegationContext = UserInfo_DelegationContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 18: {
|
||||
if (tag !== 146) {
|
||||
break;
|
||||
}
|
||||
message.serializedDelegationContext = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseUserInfo_KidsParent() {
|
||||
return {};
|
||||
}
|
||||
export const UserInfo_KidsParent = {
|
||||
encode(_, writer = new BinaryWriter()) {
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseUserInfo_KidsParent();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseUserInfo_DelegatePurchases() {
|
||||
return {};
|
||||
}
|
||||
export const UserInfo_DelegatePurchases = {
|
||||
encode(_, writer = new BinaryWriter()) {
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseUserInfo_DelegatePurchases();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseUserInfo_DelegationContext() {
|
||||
return {};
|
||||
}
|
||||
export const UserInfo_DelegationContext = {
|
||||
encode(_, writer = new BinaryWriter()) {
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseUserInfo_DelegationContext();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
function createBaseUserInfo_CredentialTransferToken() {
|
||||
return {};
|
||||
}
|
||||
export const UserInfo_CredentialTransferToken = {
|
||||
encode(_, writer = new BinaryWriter()) {
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseUserInfo_CredentialTransferToken();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=user_info.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
export declare const protobufPackage = "youtube.api.pfiinnertube";
|
||||
export interface WatchNextRequest {
|
||||
context?: InnerTubeContext | undefined;
|
||||
videoId?: string | undefined;
|
||||
playlistId?: string | undefined;
|
||||
params?: string | undefined;
|
||||
continuation?: string | undefined;
|
||||
isAdPlayback?: boolean | undefined;
|
||||
mdxUseDevServer?: boolean | undefined;
|
||||
referrer?: string | undefined;
|
||||
referringApp?: string | undefined;
|
||||
adParams?: string | undefined;
|
||||
requestMusicSequence?: boolean | undefined;
|
||||
enableMdxAutoplay?: boolean | undefined;
|
||||
isMdxPlayback?: boolean | undefined;
|
||||
racyCheckOk?: boolean | undefined;
|
||||
contentCheckOk?: boolean | undefined;
|
||||
isAudioOnly?: boolean | undefined;
|
||||
autonavEnabled?: boolean | undefined;
|
||||
enablePersistentPlaylistPanel?: boolean | undefined;
|
||||
playlistSetVideoId?: string | undefined;
|
||||
showRuInvalidTokenMessage?: boolean | undefined;
|
||||
serializedThirdPartyEmbedConfig?: string | undefined;
|
||||
showContentOwnerOnly?: boolean | undefined;
|
||||
isEmbedPreview?: boolean | undefined;
|
||||
lastScrubbedInlinePlaybackVideoId?: string | undefined;
|
||||
lastAudioTurnedOnInlinePlaybackVideoId?: string | undefined;
|
||||
lastAudioTurnedOffInlinePlaybackVideoId?: string | undefined;
|
||||
captionsRequested?: boolean | undefined;
|
||||
queueContextParams?: Uint8Array | undefined;
|
||||
showShortsOnly?: boolean | undefined;
|
||||
}
|
||||
export declare const WatchNextRequest: MessageFns<WatchNextRequest>;
|
||||
export interface MessageFns<T> {
|
||||
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
||||
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
||||
}
|
||||
Generated
Vendored
+353
@@ -0,0 +1,353 @@
|
||||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-ts_proto v2.7.7
|
||||
// protoc v6.33.5
|
||||
// source: youtube/api/pfiinnertube/watch_next_request.proto
|
||||
/* eslint-disable */
|
||||
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
||||
import { InnerTubeContext } from "./innertube_context.js";
|
||||
export const protobufPackage = "youtube.api.pfiinnertube";
|
||||
function createBaseWatchNextRequest() {
|
||||
return {
|
||||
context: undefined,
|
||||
videoId: undefined,
|
||||
playlistId: undefined,
|
||||
params: undefined,
|
||||
continuation: undefined,
|
||||
isAdPlayback: undefined,
|
||||
mdxUseDevServer: undefined,
|
||||
referrer: undefined,
|
||||
referringApp: undefined,
|
||||
adParams: undefined,
|
||||
requestMusicSequence: undefined,
|
||||
enableMdxAutoplay: undefined,
|
||||
isMdxPlayback: undefined,
|
||||
racyCheckOk: undefined,
|
||||
contentCheckOk: undefined,
|
||||
isAudioOnly: undefined,
|
||||
autonavEnabled: undefined,
|
||||
enablePersistentPlaylistPanel: undefined,
|
||||
playlistSetVideoId: undefined,
|
||||
showRuInvalidTokenMessage: undefined,
|
||||
serializedThirdPartyEmbedConfig: undefined,
|
||||
showContentOwnerOnly: undefined,
|
||||
isEmbedPreview: undefined,
|
||||
lastScrubbedInlinePlaybackVideoId: undefined,
|
||||
lastAudioTurnedOnInlinePlaybackVideoId: undefined,
|
||||
lastAudioTurnedOffInlinePlaybackVideoId: undefined,
|
||||
captionsRequested: undefined,
|
||||
queueContextParams: undefined,
|
||||
showShortsOnly: undefined,
|
||||
};
|
||||
}
|
||||
export const WatchNextRequest = {
|
||||
encode(message, writer = new BinaryWriter()) {
|
||||
if (message.context !== undefined) {
|
||||
InnerTubeContext.encode(message.context, writer.uint32(10).fork()).join();
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
writer.uint32(18).string(message.videoId);
|
||||
}
|
||||
if (message.playlistId !== undefined) {
|
||||
writer.uint32(34).string(message.playlistId);
|
||||
}
|
||||
if (message.params !== undefined) {
|
||||
writer.uint32(50).string(message.params);
|
||||
}
|
||||
if (message.continuation !== undefined) {
|
||||
writer.uint32(66).string(message.continuation);
|
||||
}
|
||||
if (message.isAdPlayback !== undefined) {
|
||||
writer.uint32(72).bool(message.isAdPlayback);
|
||||
}
|
||||
if (message.mdxUseDevServer !== undefined) {
|
||||
writer.uint32(80).bool(message.mdxUseDevServer);
|
||||
}
|
||||
if (message.referrer !== undefined) {
|
||||
writer.uint32(98).string(message.referrer);
|
||||
}
|
||||
if (message.referringApp !== undefined) {
|
||||
writer.uint32(106).string(message.referringApp);
|
||||
}
|
||||
if (message.adParams !== undefined) {
|
||||
writer.uint32(130).string(message.adParams);
|
||||
}
|
||||
if (message.requestMusicSequence !== undefined) {
|
||||
writer.uint32(144).bool(message.requestMusicSequence);
|
||||
}
|
||||
if (message.enableMdxAutoplay !== undefined) {
|
||||
writer.uint32(168).bool(message.enableMdxAutoplay);
|
||||
}
|
||||
if (message.isMdxPlayback !== undefined) {
|
||||
writer.uint32(176).bool(message.isMdxPlayback);
|
||||
}
|
||||
if (message.racyCheckOk !== undefined) {
|
||||
writer.uint32(192).bool(message.racyCheckOk);
|
||||
}
|
||||
if (message.contentCheckOk !== undefined) {
|
||||
writer.uint32(200).bool(message.contentCheckOk);
|
||||
}
|
||||
if (message.isAudioOnly !== undefined) {
|
||||
writer.uint32(208).bool(message.isAudioOnly);
|
||||
}
|
||||
if (message.autonavEnabled !== undefined) {
|
||||
writer.uint32(216).bool(message.autonavEnabled);
|
||||
}
|
||||
if (message.enablePersistentPlaylistPanel !== undefined) {
|
||||
writer.uint32(240).bool(message.enablePersistentPlaylistPanel);
|
||||
}
|
||||
if (message.playlistSetVideoId !== undefined) {
|
||||
writer.uint32(250).string(message.playlistSetVideoId);
|
||||
}
|
||||
if (message.showRuInvalidTokenMessage !== undefined) {
|
||||
writer.uint32(280).bool(message.showRuInvalidTokenMessage);
|
||||
}
|
||||
if (message.serializedThirdPartyEmbedConfig !== undefined) {
|
||||
writer.uint32(298).string(message.serializedThirdPartyEmbedConfig);
|
||||
}
|
||||
if (message.showContentOwnerOnly !== undefined) {
|
||||
writer.uint32(304).bool(message.showContentOwnerOnly);
|
||||
}
|
||||
if (message.isEmbedPreview !== undefined) {
|
||||
writer.uint32(336).bool(message.isEmbedPreview);
|
||||
}
|
||||
if (message.lastScrubbedInlinePlaybackVideoId !== undefined) {
|
||||
writer.uint32(346).string(message.lastScrubbedInlinePlaybackVideoId);
|
||||
}
|
||||
if (message.lastAudioTurnedOnInlinePlaybackVideoId !== undefined) {
|
||||
writer.uint32(354).string(message.lastAudioTurnedOnInlinePlaybackVideoId);
|
||||
}
|
||||
if (message.lastAudioTurnedOffInlinePlaybackVideoId !== undefined) {
|
||||
writer.uint32(362).string(message.lastAudioTurnedOffInlinePlaybackVideoId);
|
||||
}
|
||||
if (message.captionsRequested !== undefined) {
|
||||
writer.uint32(376).bool(message.captionsRequested);
|
||||
}
|
||||
if (message.queueContextParams !== undefined) {
|
||||
writer.uint32(402).bytes(message.queueContextParams);
|
||||
}
|
||||
if (message.showShortsOnly !== undefined) {
|
||||
writer.uint32(440).bool(message.showShortsOnly);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
decode(input, length) {
|
||||
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
||||
const end = length === undefined ? reader.len : reader.pos + length;
|
||||
const message = createBaseWatchNextRequest();
|
||||
while (reader.pos < end) {
|
||||
const tag = reader.uint32();
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
if (tag !== 10) {
|
||||
break;
|
||||
}
|
||||
message.context = InnerTubeContext.decode(reader, reader.uint32());
|
||||
continue;
|
||||
}
|
||||
case 2: {
|
||||
if (tag !== 18) {
|
||||
break;
|
||||
}
|
||||
message.videoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 4: {
|
||||
if (tag !== 34) {
|
||||
break;
|
||||
}
|
||||
message.playlistId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 6: {
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
message.params = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 66) {
|
||||
break;
|
||||
}
|
||||
message.continuation = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 9: {
|
||||
if (tag !== 72) {
|
||||
break;
|
||||
}
|
||||
message.isAdPlayback = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 10: {
|
||||
if (tag !== 80) {
|
||||
break;
|
||||
}
|
||||
message.mdxUseDevServer = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 12: {
|
||||
if (tag !== 98) {
|
||||
break;
|
||||
}
|
||||
message.referrer = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 13: {
|
||||
if (tag !== 106) {
|
||||
break;
|
||||
}
|
||||
message.referringApp = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 130) {
|
||||
break;
|
||||
}
|
||||
message.adParams = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 18: {
|
||||
if (tag !== 144) {
|
||||
break;
|
||||
}
|
||||
message.requestMusicSequence = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 21: {
|
||||
if (tag !== 168) {
|
||||
break;
|
||||
}
|
||||
message.enableMdxAutoplay = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 22: {
|
||||
if (tag !== 176) {
|
||||
break;
|
||||
}
|
||||
message.isMdxPlayback = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 24: {
|
||||
if (tag !== 192) {
|
||||
break;
|
||||
}
|
||||
message.racyCheckOk = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 25: {
|
||||
if (tag !== 200) {
|
||||
break;
|
||||
}
|
||||
message.contentCheckOk = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 26: {
|
||||
if (tag !== 208) {
|
||||
break;
|
||||
}
|
||||
message.isAudioOnly = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 27: {
|
||||
if (tag !== 216) {
|
||||
break;
|
||||
}
|
||||
message.autonavEnabled = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 30: {
|
||||
if (tag !== 240) {
|
||||
break;
|
||||
}
|
||||
message.enablePersistentPlaylistPanel = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 31: {
|
||||
if (tag !== 250) {
|
||||
break;
|
||||
}
|
||||
message.playlistSetVideoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 35: {
|
||||
if (tag !== 280) {
|
||||
break;
|
||||
}
|
||||
message.showRuInvalidTokenMessage = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 37: {
|
||||
if (tag !== 298) {
|
||||
break;
|
||||
}
|
||||
message.serializedThirdPartyEmbedConfig = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 38: {
|
||||
if (tag !== 304) {
|
||||
break;
|
||||
}
|
||||
message.showContentOwnerOnly = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 42: {
|
||||
if (tag !== 336) {
|
||||
break;
|
||||
}
|
||||
message.isEmbedPreview = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 43: {
|
||||
if (tag !== 346) {
|
||||
break;
|
||||
}
|
||||
message.lastScrubbedInlinePlaybackVideoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 44: {
|
||||
if (tag !== 354) {
|
||||
break;
|
||||
}
|
||||
message.lastAudioTurnedOnInlinePlaybackVideoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 45: {
|
||||
if (tag !== 362) {
|
||||
break;
|
||||
}
|
||||
message.lastAudioTurnedOffInlinePlaybackVideoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 47: {
|
||||
if (tag !== 376) {
|
||||
break;
|
||||
}
|
||||
message.captionsRequested = reader.bool();
|
||||
continue;
|
||||
}
|
||||
case 50: {
|
||||
if (tag !== 402) {
|
||||
break;
|
||||
}
|
||||
message.queueContextParams = reader.bytes();
|
||||
continue;
|
||||
}
|
||||
case 55: {
|
||||
if (tag !== 440) {
|
||||
break;
|
||||
}
|
||||
message.showShortsOnly = reader.bool();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
}
|
||||
reader.skip(tag & 7);
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=watch_next_request.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user