diff --git a/src/index.tsx b/src/index.tsx index a3b66d9..76f3d88 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1114,6 +1114,7 @@ export type Query = { getShotAnnotationTypes: Array; getShots: Array; getUser?: Maybe; + getUserTags: UserTagsGql; getUserVideos: VideoHistoryGql; getUsernames: Array; getVideo: VideoGql; @@ -1141,6 +1142,10 @@ export type QueryGetUserArgs = { userId: Scalars["Int"]["input"]; }; +export type QueryGetUserTagsArgs = { + userId: Scalars["Int"]["input"]; +}; + export type QueryGetUserVideosArgs = { after?: InputMaybe; filters?: InputMaybe; @@ -1229,6 +1234,12 @@ export enum StreamSegmentTypeEnum { RbChunkedMp4 = "RB_CHUNKED_MP4", } +export type TagGql = { + __typename?: "TagGQL"; + id: Scalars["Int"]["output"]; + name: Scalars["String"]["output"]; +}; + export type TargetMetricsGql = { __typename?: "TargetMetricsGQL"; averageDifficulty?: Maybe; @@ -1293,6 +1304,11 @@ export type UserPlayTimeGql = { totalSeconds: Scalars["Float"]["output"]; }; +export type UserTagsGql = { + __typename?: "UserTagsGQL"; + tags: Array; +}; + export type VideoFilterInput = { isStreamCompleted?: InputMaybe; requireCursorCompletion?: Scalars["Boolean"]["input"]; diff --git a/src/schema.gql b/src/schema.gql index ef67913..c7d9a69 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -24,6 +24,7 @@ type Query { after: String = null filters: VideoFilterInput = null ): VideoHistoryGQL! + getUserTags(userId: Int!): UserTagsGQL! getVideo(videoId: Int!): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! } @@ -358,6 +359,15 @@ input VideoFilterInput { requireCursorCompletion: Boolean! = true } +type UserTagsGQL { + tags: [TagGQL!]! +} + +type TagGQL { + name: String! + id: Int! +} + type Mutation { createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! setLoggerLevel(path: String!, level: String!): Boolean!