diff --git a/src/index.tsx b/src/index.tsx index 6e2297b..211a0ef 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2169,6 +2169,7 @@ export type Query = { getUserTags: Array; getUserVideos: VideoHistoryGql; getUsernames: Array; + getUsernamesAndFollowing: UsernamesAndFollowingResponse; getVideo: VideoGql; getVideoMakePercentageIntervals: Array; getVideos: Array; @@ -2238,6 +2239,13 @@ export type QueryGetUsernamesArgs = { matchString?: InputMaybe; }; +export type QueryGetUsernamesAndFollowingArgs = { + after?: InputMaybe; + limit?: InputMaybe; + matchString?: InputMaybe; + userId: Scalars["Int"]["input"]; +}; + export type QueryGetVideoArgs = { debuggingJson?: InputMaybe; videoId: Scalars["Int"]["input"]; @@ -2528,6 +2536,13 @@ export type UserPlayTimeGql = { totalSeconds: Scalars["Float"]["output"]; }; +export type UsernamesAndFollowingResponse = { + __typename?: "UsernamesAndFollowingResponse"; + followers: Array; + following: Array; + usernames: Array; +}; + export type VideoFilterInput = { isStreamCompleted?: InputMaybe; requireCursorCompletion?: Scalars["Boolean"]["input"]; diff --git a/src/schema.gql b/src/schema.gql index 03162f7..6132541 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -35,6 +35,12 @@ type Query { limit: Int = null after: String = null ): [String!]! + getUsernamesAndFollowing( + userId: Int! + matchString: String = null + limit: Int = 100 + after: String = null + ): UsernamesAndFollowingResponse! getPlayTime(userId: Int!): UserPlayTimeGQL! getUserVideos( userId: Int = null @@ -548,6 +554,12 @@ input CreatedAfter @oneOf { createdAt: DateTime } +type UsernamesAndFollowingResponse { + usernames: [String!]! + following: [Int!]! + followers: [Int!]! +} + type UserPlayTimeGQL { totalSeconds: Float! }