From 9ee1422d3e6dd59060896bc4374f7dd86964edb3 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Mon, 17 Mar 2025 14:09:19 -0700 Subject: [PATCH] Add functionality for retiring tags --- src/index.tsx | 10 ++++++++++ src/schema.gql | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index d7ac0fd..601e322 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2153,6 +2153,7 @@ export type Mutation = { getHlsInitUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn; getUploadLink: GetUploadLinkReturn; + retireTags: Scalars["Boolean"]["output"]; setLoggerLevel: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"]; unfollowUser: UserGql; @@ -2217,6 +2218,10 @@ export type MutationGetUploadLinkArgs = { videoId: Scalars["Int"]["input"]; }; +export type MutationRetireTagsArgs = { + tagIds: Array; +}; + export type MutationSetLoggerLevelArgs = { level: Scalars["String"]["input"]; path: Scalars["String"]["input"]; @@ -2434,6 +2439,10 @@ export type QueryGetUserRelationshipsMatchingArgs = { userId: Scalars["Int"]["input"]; }; +export type QueryGetUserTagsArgs = { + includeRetiredTags?: InputMaybe; +}; + export type QueryGetUserVideosArgs = { after?: InputMaybe; filters?: InputMaybe; @@ -2726,6 +2735,7 @@ export type TagGql = { __typename?: "TagGQL"; id: Scalars["Int"]["output"]; name: Scalars["String"]["output"]; + retired: Scalars["Boolean"]["output"]; tagClasses?: Maybe>; }; diff --git a/src/schema.gql b/src/schema.gql index 7cdc102..8174eff 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -60,7 +60,7 @@ type Query { after: String = null filters: VideoFilterInput = null ): VideoHistoryGQL! - getUserTags: [TagGQL!]! + getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]! getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! getFeedVideos( @@ -718,6 +718,7 @@ type TagGQL { id: Int! name: String! tagClasses: [TagClassGQL!] + retired: Boolean! } type TagClassGQL { @@ -784,6 +785,7 @@ type Mutation { editUser(input: EditUserInputGQL!): UserGQL! followUser(followedUserId: Int!): UserGQL! unfollowUser(followedUserId: Int!): UserGQL! + retireTags(tagIds: [Int!]!): Boolean! findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL createUploadStream( videoMetadata: VideoMetadataInput!