From 08f93e2adfa620477ea3c5f786dc40e28c678a78 Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Fri, 13 Dec 2024 11:54:04 +0100 Subject: [PATCH 1/4] Add enums --- packages/graphql/src/enums.ts | 341 ++++++++++++++++++++++- packages/graphql/src/fragments/common.ts | 7 - packages/graphql/src/graphql.ts | 72 +++++ 3 files changed, 407 insertions(+), 13 deletions(-) diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index 4d247954c..46c396ff8 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -17,7 +17,36 @@ export enum PageSize { } /** - * Enum for the different reasons to report an account. + * Enum for the different type of Post Actions. + */ +export enum PostActionType { + SimpleCollectAction = 'SIMPLE_COLLECT_ACTION', + UnknownAction = 'UNKNOWN_ACTION', +} + +/** + * Enum for the different order by options for who referenced on a post. + */ +export enum WhoReferencedPostOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', + AccountScore = 'ACCOUNT_SCORE', +} + +/** + * Enum for the comparison operator to use in access conditions. + */ +export enum AccessConditionComparison { + Equal = 'EQUAL', + NotEqual = 'NOT_EQUAL', + GreaterThan = 'GREATER_THAN', + GreaterThanOrEqual = 'GREATER_THAN_OR_EQUAL', + LessThan = 'LESS_THAN', + LessThanOrEqual = 'LESS_THAN_OR_EQUAL', +} + +/** + * Enum for the reasons to report an account. */ export enum AccountReportReason { Impersonation = 'IMPERSONATION', @@ -25,12 +54,303 @@ export enum AccountReportReason { Other = 'OTHER', } +/** + * Enum for the order by options in account search. + */ +export enum AccountSearchOrderBy { + Default = 'DEFAULT', + AccountScore = 'ACCOUNT_SCORE', +} + +/** + * Enum for the platforms supported by the app. + */ +export enum AppMetadataLensPlatformsItem { + Web = 'WEB', + Ios = 'IOS', + Android = 'ANDROID', +} + +/** + * Enum for the order by options for apps. + */ +export enum AppsOrderBy { + Alphabetical = 'ALPHABETICAL', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST', +} + +/** + * Enum for the different types of followers order by options. + */ +export enum FollowersOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of followers you know order by options. + */ +export enum FollowersYouKnowOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of following order by options. + */ +export enum FollowingOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different sources for "For You" feed. + */ +export enum ForYouSource { + Recommended = 'RECOMMENDED', + Trending = 'TRENDING', +} + +/** + * Enum for the different types of graphs order by options. + */ +export enum GraphsOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of groups order by options. + */ +export enum GroupsOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of main content focus. + */ +export enum MainContentFocus { + Article = 'ARTICLE', + Video = 'VIDEO', + Image = 'IMAGE', +} + +/** + * Enum for the different types of managed accounts visibility. + */ +export enum ManagedAccountsVisibility { + Public = 'PUBLIC', + Private = 'PRIVATE', +} + +/** + * Enum for the different types of media audio kind. + */ +export enum MediaAudioKind { + Podcast = 'PODCAST', + Music = 'MUSIC', +} + +/** + * Enum for the different types of media audio. + */ +export enum MediaAudioType { + AudioWav = 'AUDIO_WAV', + AudioVndWave = 'AUDIO_VND_WAVE', + AudioMpeg = 'AUDIO_MPEG', + AudioOgg = 'AUDIO_OGG', + AudioMp4 = 'AUDIO_MP_4', + AudioAac = 'AUDIO_AAC', + AudioWebm = 'AUDIO_WEBM', + AudioFlac = 'AUDIO_FLAC', +} + +/** + * Enum for the different types of media image. + */ +export enum MediaImageType { + Jpeg = 'JPEG', + Png = 'PNG', +} + +/** + * Enum for the different types of media video. + */ +export enum MediaVideoType { + Mp4 = 'MP4', + Avi = 'AVI', +} + +/** + * Enum for the different types of metadata attribute. + */ +export enum MetadataAttributeType { + String = 'STRING', + Number = 'NUMBER', +} + +/** + * Enum for the different types of metadata license. + */ +export enum MetadataLicenseType { + CcBy = 'CC_BY', + CcBySa = 'CC_BY_SA', +} + +/** + * Enum for the different types of notification order by options. + */ +export enum NotificationOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of notifications. + */ +export enum NotificationType { + Mention = 'MENTION', + Comment = 'COMMENT', +} + +/** + * Enum for the different types of page size. + */ +export enum PageSize { + Small = 'SMALL', + Medium = 'MEDIUM', + Large = 'LARGE', +} + +/** + * Enum for the different types of post action categories. + */ +export enum PostActionCategoryType { + Like = 'LIKE', + Share = 'SHARE', +} + +/** + * Enum for the different types of post reaction order by options. + */ +export enum PostReactionOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of post report reasons. + */ +export enum PostReportReason { + Spam = 'SPAM', + Inappropriate = 'INAPPROPRIATE', +} + +/** + * Enum for the different types of post tags order by options. + */ +export enum PostTagsOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different types of posts. + */ +export enum PostType { + Original = 'ORIGINAL', + Repost = 'REPOST', +} + +/** + * Enum for the different types of post visibility filters. + */ +export enum PostVisibilityFilter { + Public = 'PUBLIC', + Private = 'PRIVATE', +} + +/** + * Enum for the different types of self-funded fallback reasons. + */ +export enum SelfFundedFallbackReason { + InsufficientFunds = 'INSUFFICIENT_FUNDS', + NetworkError = 'NETWORK_ERROR', +} + +/** + * Enum for the different types of sponsor limit. + */ +export enum SponsorLimitType { + Daily = 'DAILY', + Monthly = 'MONTHLY', +} + +/** + * Enum for the different types of sponsored fallback reasons. + */ +export enum SponsoredFallbackReason { + NoSponsor = 'NO_SPONSOR', + SponsorDeclined = 'SPONSOR_DECLINED', +} + +/** + * Enum for the different types of token standards. + */ +export enum TokenStandard { + Erc20 = 'ERC20', + Erc721 = 'ERC721', +} + +/** + * Enum for the different types of transactions. + */ +export enum TransactionType { + Transfer = 'TRANSFER', + Approval = 'APPROVAL', +} + +/** + * Enum for the different types of tri-state values. + */ +export enum TriStateValue { + Yes = 'YES', + No = 'NO', + Maybe = 'MAYBE', +} + +/** + * Enum for the different types of unblock error. + */ +export enum UnblockErrorType { + NotBlocked = 'NOT_BLOCKED', + AlreadyUnblocked = 'ALREADY_UNBLOCKED', +} + +/** + * Enum for the different types of who acted on post order by options. + */ +export enum WhoActedOnPostOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', +} + +/** + * Enum for the different authentication roles a user can have. + */ +export enum Role { + Admin = 'ADMIN', + User = 'USER', +} + /** * Enum for the different type of Post Actions. */ export enum PostActionType { - SimpleCollectAction = 'SIMPLE_COLLECT_ACTION', - UnknownAction = 'UNKNOWN_ACTION', + Like = 'LIKE', + Share = 'SHARE', } /** @@ -45,7 +365,16 @@ export enum PostReactionType { * Enum for the different content warnings. */ export enum ContentWarning { - nsfw = 'NSFW', - sensitive = 'SENSITIVE', - spoiler = 'SPOILER', + Nsfw = 'NSFW', + Sensitive = 'SENSITIVE', + Spoiler = 'SPOILER', +} + +/** + * Enum for the different types of references a post can have. + */ +export enum PostReferenceType { + CommentOn = 'COMMENT_ON', + RepostOf = 'REPOST_OF', + QuoteOf = 'QUOTE_OF', } diff --git a/packages/graphql/src/fragments/common.ts b/packages/graphql/src/fragments/common.ts index 1e071852b..5fe35ba9a 100644 --- a/packages/graphql/src/fragments/common.ts +++ b/packages/graphql/src/fragments/common.ts @@ -19,13 +19,6 @@ export const NetworkAddress = graphql( ); export type NetworkAddress = FragmentOf; -/** - * A value that can be in three statuses: YES, NO, or UNKNOWN. - * - * UNKNOWN implies that it was not possible to determine the value. - */ -export type TriStateValue = ReturnType>; - export const Erc20 = graphql( `fragment Erc20 on Erc20 { __typename diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index 89cf6e57b..c1aa28a20 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -29,11 +29,47 @@ import { } from 'gql.tada'; import type { StandardData } from './common'; import type { + AccessConditionComparison, AccountReportReason, + AccountSearchOrderBy, + AppMetadataLensPlatformsItem, + AppsOrderBy, ContentWarning, + FollowersOrderBy, + FollowersYouKnowOrderBy, + FollowingOrderBy, + ForYouSource, + GraphsOrderBy, + GroupsOrderBy, + MainContentFocus, + ManagedAccountsVisibility, + MediaAudioKind, + MediaAudioType, + MediaImageType, + MediaVideoType, + MetadataAttributeType, + MetadataLicenseType, + NotificationOrderBy, + NotificationType, PageSize, + PostActionCategoryType, PostActionType, + PostReactionOrderBy, PostReactionType, + PostReferenceType, + PostReportReason, + PostTagsOrderBy, + PostType, + PostVisibilityFilter, + SelfFundedFallbackReason, + SponsorLimitType, + SponsoredFallbackReason, + TokenStandard, + TransactionType, + TriStateValue, + UnblockErrorType, + WhoActedOnPostOrderBy, + WhoReferencedPostOrderBy, } from './enums'; import type { introspection } from './graphql-env'; @@ -71,6 +107,42 @@ export const graphql = initGraphQLTada<{ UsernameValue: UsernameValue; UUID: UUID; Void: Void; + WhoReferencedPostOrderBy: WhoReferencedPostOrderBy; + AccessConditionComparison: AccessConditionComparison; + AccountSearchOrderBy: AccountSearchOrderBy; + AppMetadataLensPlatformsItem: AppMetadataLensPlatformsItem; + AppsOrderBy: AppsOrderBy; + FollowersOrderBy: FollowersOrderBy; + FollowersYouKnowOrderBy: FollowersYouKnowOrderBy; + FollowingOrderBy: FollowingOrderBy; + ForYouSource: ForYouSource; + GraphsOrderBy: GraphsOrderBy; + GroupsOrderBy: GroupsOrderBy; + MainContentFocus: MainContentFocus; + ManagedAccountsVisibility: ManagedAccountsVisibility; + MediaAudioKind: MediaAudioKind; + MediaAudioType: MediaAudioType; + MediaImageType: MediaImageType; + MediaVideoType: MediaVideoType; + MetadataAttributeType: MetadataAttributeType; + MetadataLicenseType: MetadataLicenseType; + NotificationOrderBy: NotificationOrderBy; + NotificationType: NotificationType; + PostActionCategoryType: PostActionCategoryType; + PostReactionOrderBy: PostReactionOrderBy; + PostReferenceType: PostReferenceType; + PostReportReason: PostReportReason; + PostTagsOrderBy: PostTagsOrderBy; + PostType: PostType; + PostVisibilityFilter: PostVisibilityFilter; + SelfFundedFallbackReason: SelfFundedFallbackReason; + SponsorLimitType: SponsorLimitType; + SponsoredFallbackReason: SponsoredFallbackReason; + TokenStandard: TokenStandard; + TransactionType: TransactionType; + TriStateValue: TriStateValue; + UnblockErrorType: UnblockErrorType; + WhoActedOnPostOrderBy: WhoActedOnPostOrderBy; }; }>(); From 2ba9421ee79383ca493f9fd6aa928d3a3fb75fba Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Sat, 14 Dec 2024 11:16:47 +0100 Subject: [PATCH 2/4] Add enums properly and check missing ones --- packages/graphql/src/enums.ts | 907 ++++++++++++++++++++++++++------ packages/graphql/src/graphql.ts | 67 ++- 2 files changed, 787 insertions(+), 187 deletions(-) diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index 46c396ff8..c6b59eca9 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -1,40 +1,5 @@ /** - * Enum for the different authentication roles a user can have. - */ -export enum Role { - AccountOwner = 'ACCOUNT_OWNER', - AccountManager = 'ACCOUNT_MANAGER', - OnboardingUser = 'ONBOARDING_USER', - Builder = 'BUILDER', -} - -/** - * Enum for the different page sizes available. - */ -export enum PageSize { - Ten = 'TEN', - Fifty = 'FIFTY', -} - -/** - * Enum for the different type of Post Actions. - */ -export enum PostActionType { - SimpleCollectAction = 'SIMPLE_COLLECT_ACTION', - UnknownAction = 'UNKNOWN_ACTION', -} - -/** - * Enum for the different order by options for who referenced on a post. - */ -export enum WhoReferencedPostOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', - AccountScore = 'ACCOUNT_SCORE', -} - -/** - * Enum for the comparison operator to use in access conditions. + * Enum for AccessConditionComparison. */ export enum AccessConditionComparison { Equal = 'EQUAL', @@ -46,7 +11,7 @@ export enum AccessConditionComparison { } /** - * Enum for the reasons to report an account. + * Enum for AccountReportReason. */ export enum AccountReportReason { Impersonation = 'IMPERSONATION', @@ -55,15 +20,16 @@ export enum AccountReportReason { } /** - * Enum for the order by options in account search. + * Enum for AccountsOrderBy. */ -export enum AccountSearchOrderBy { - Default = 'DEFAULT', +export enum AccountsOrderBy { + Alphabetical = 'ALPHABETICAL', AccountScore = 'ACCOUNT_SCORE', + BestMatch = 'BEST_MATCH', } /** - * Enum for the platforms supported by the app. + * Enum for AppMetadataLensPlatformsItem. */ export enum AppMetadataLensPlatformsItem { Web = 'WEB', @@ -72,89 +38,596 @@ export enum AppMetadataLensPlatformsItem { } /** - * Enum for the order by options for apps. + * Enum for AppsOrderBy. */ export enum AppsOrderBy { + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST', Alphabetical = 'ALPHABETICAL', +} + +/** + * Enum for BlockErrorType. + */ +export enum BlockErrorType { + Unknown = 'UNKNOWN', + AlreadyBlocked = 'ALREADY_BLOCKED', + Unauthorized = 'UNAUTHORIZED', +} + +/** + * Enum for ContentWarning. + */ +export enum ContentWarning { + Nsfw = 'NSFW', + Sensitive = 'SENSITIVE', + Spoiler = 'SPOILER', +} + +/** + * Enum for EntityType. + */ +export enum EntityType { + Account = 'ACCOUNT', + Graph = 'GRAPH', + Feed = 'FEED', + UsernameNamespace = 'USERNAME_NAMESPACE', + Group = 'GROUP', + Post = 'POST', + App = 'APP', + Sponsorship = 'SPONSORSHIP', +} + +/** + * Enum for EventMetadataLensSchedulingAdjustmentsTimezoneId. + */ +export enum EventMetadataLensSchedulingAdjustmentsTimezoneId { + AfricaAbidjan = 'AFRICA_ABIDJAN', + AfricaAccra = 'AFRICA_ACCRA', + AfricaAddisAbaba = 'AFRICA_ADDIS_ABABA', + AfricaAlgiers = 'AFRICA_ALGIERS', + AfricaAsmera = 'AFRICA_ASMERA', + AfricaBamako = 'AFRICA_BAMAKO', + AfricaBangui = 'AFRICA_BANGUI', + AfricaBanjul = 'AFRICA_BANJUL', + AfricaBissau = 'AFRICA_BISSAU', + AfricaBlantyre = 'AFRICA_BLANTYRE', + AfricaBrazzaville = 'AFRICA_BRAZZAVILLE', + AfricaBujumbura = 'AFRICA_BUJUMBURA', + AfricaCairo = 'AFRICA_CAIRO', + AfricaCasablanca = 'AFRICA_CASABLANCA', + AfricaCeuta = 'AFRICA_CEUTA', + AfricaConakry = 'AFRICA_CONAKRY', + AfricaDakar = 'AFRICA_DAKAR', + AfricaDarEsSalaam = 'AFRICA_DAR_ES_SALAAM', + AfricaDjibouti = 'AFRICA_DJIBOUTI', + AfricaDouala = 'AFRICA_DOUALA', + AfricaElAaiun = 'AFRICA_EL_AAIUN', + AfricaFreetown = 'AFRICA_FREETOWN', + AfricaGaborone = 'AFRICA_GABORONE', + AfricaHarare = 'AFRICA_HARARE', + AfricaJohannesburg = 'AFRICA_JOHANNESBURG', + AfricaJuba = 'AFRICA_JUBA', + AfricaKampala = 'AFRICA_KAMPALA', + AfricaKhartoum = 'AFRICA_KHARTOUM', + AfricaKigali = 'AFRICA_KIGALI', + AfricaKinshasa = 'AFRICA_KINSHASA', + AfricaLagos = 'AFRICA_LAGOS', + AfricaLibreville = 'AFRICA_LIBREVILLE', + AfricaLome = 'AFRICA_LOME', + AfricaLuanda = 'AFRICA_LUANDA', + AfricaLubumbashi = 'AFRICA_LUBUMBASHI', + AfricaLusaka = 'AFRICA_LUSAKA', + AfricaMalabo = 'AFRICA_MALABO', + AfricaMaputo = 'AFRICA_MAPUTO', + AfricaMaseru = 'AFRICA_MASERU', + AfricaMbabane = 'AFRICA_MBABANE', + AfricaMogadishu = 'AFRICA_MOGADISHU', + AfricaMonrovia = 'AFRICA_MONROVIA', + AfricaNairobi = 'AFRICA_NAIROBI', + AfricaNdjamena = 'AFRICA_NDJAMENA', + AfricaNiamey = 'AFRICA_NIAMEY', + AfricaNouakchott = 'AFRICA_NOUAKCHOTT', + AfricaOuagadougou = 'AFRICA_OUAGADOUGOU', + AfricaPortoNovo = 'AFRICA_PORTO_NOVO', + AfricaSaoTome = 'AFRICA_SAO_TOME', + AfricaTripoli = 'AFRICA_TRIPOLI', + AfricaTunis = 'AFRICA_TUNIS', + AfricaWindhoek = 'AFRICA_WINDHOEK', + AmericaAdak = 'AMERICA_ADAK', + AmericaAnchorage = 'AMERICA_ANCHORAGE', + AmericaAnguilla = 'AMERICA_ANGUILLA', + AmericaAntigua = 'AMERICA_ANTIGUA', + AmericaAraguaina = 'AMERICA_ARAGUAINA', + AmericaArgentinaLaRioja = 'AMERICA_ARGENTINA_LA_RIOJA', + AmericaArgentinaRioGallegos = 'AMERICA_ARGENTINA_RIO_GALLEGOS', + AmericaArgentinaSalta = 'AMERICA_ARGENTINA_SALTA', + AmericaArgentinaSanJuan = 'AMERICA_ARGENTINA_SAN_JUAN', + AmericaArgentinaSanLuis = 'AMERICA_ARGENTINA_SAN_LUIS', + AmericaArgentinaTucuman = 'AMERICA_ARGENTINA_TUCUMAN', + AmericaArgentinaUshuaia = 'AMERICA_ARGENTINA_USHUAIA', + AmericaAruba = 'AMERICA_ARUBA', + AmericaAsuncion = 'AMERICA_ASUNCION', + AmericaBahia = 'AMERICA_BAHIA', + AmericaBahiaBanderas = 'AMERICA_BAHIA_BANDERAS', + AmericaBarbados = 'AMERICA_BARBADOS', + AmericaBelem = 'AMERICA_BELEM', + AmericaBelize = 'AMERICA_BELIZE', + AmericaBlancSablon = 'AMERICA_BLANC_SABLON', + AmericaBoaVista = 'AMERICA_BOA_VISTA', + AmericaBogota = 'AMERICA_BOGOTA', + AmericaBoise = 'AMERICA_BOISE', + AmericaBuenosAires = 'AMERICA_BUENOS_AIRES', + AmericaCambridgeBay = 'AMERICA_CAMBRIDGE_BAY', + AmericaCampoGrande = 'AMERICA_CAMPO_GRANDE', + AmericaCancun = 'AMERICA_CANCUN', + AmericaCaracas = 'AMERICA_CARACAS', + AmericaCatamarca = 'AMERICA_CATAMARCA', + AmericaCayenne = 'AMERICA_CAYENNE', + AmericaCayman = 'AMERICA_CAYMAN', + AmericaChicago = 'AMERICA_CHICAGO', + AmericaChihuahua = 'AMERICA_CHIHUAHUA', + AmericaCiudadJuarez = 'AMERICA_CIUDAD_JUAREZ', + AmericaCoralHarbour = 'AMERICA_CORAL_HARBOUR', + AmericaCordoba = 'AMERICA_CORDOBA', + AmericaCostaRica = 'AMERICA_COSTA_RICA', + AmericaCreston = 'AMERICA_CRESTON', + AmericaCuiaba = 'AMERICA_CUIABA', + AmericaCuracao = 'AMERICA_CURACAO', + AmericaDanmarkshavn = 'AMERICA_DANMARKSHAVN', + AmericaDawson = 'AMERICA_DAWSON', + AmericaDawsonCreek = 'AMERICA_DAWSON_CREEK', + AmericaDenver = 'AMERICA_DENVER', + AmericaDetroit = 'AMERICA_DETROIT', + AmericaDominica = 'AMERICA_DOMINICA', + AmericaEdmonton = 'AMERICA_EDMONTON', + AmericaEirunepe = 'AMERICA_EIRUNEPE', + AmericaElSalvador = 'AMERICA_EL_SALVADOR', + AmericaFortNelson = 'AMERICA_FORT_NELSON', + AmericaFortaleza = 'AMERICA_FORTALEZA', + AmericaGlaceBay = 'AMERICA_GLACE_BAY', + AmericaGodthab = 'AMERICA_GODTHAB', + AmericaGooseBay = 'AMERICA_GOOSE_BAY', + AmericaGrandTurk = 'AMERICA_GRAND_TURK', + AmericaGrenada = 'AMERICA_GRENADA', + AmericaGuadeloupe = 'AMERICA_GUADELOUPE', + AmericaGuatemala = 'AMERICA_GUATEMALA', + AmericaGuayaquil = 'AMERICA_GUAYAQUIL', + AmericaGuyana = 'AMERICA_GUYANA', + AmericaHalifax = 'AMERICA_HALIFAX', + AmericaHavana = 'AMERICA_HAVANA', + AmericaHermosillo = 'AMERICA_HERMOSILLO', + AmericaIndianaKnox = 'AMERICA_INDIANA_KNOX', + AmericaIndianaMarengo = 'AMERICA_INDIANA_MARENGO', + AmericaIndianaPetersburg = 'AMERICA_INDIANA_PETERSBURG', + AmericaIndianaTellCity = 'AMERICA_INDIANA_TELL_CITY', + AmericaIndianaVevay = 'AMERICA_INDIANA_VEVAY', + AmericaIndianaVincennes = 'AMERICA_INDIANA_VINCENNES', + AmericaIndianaWinamac = 'AMERICA_INDIANA_WINAMAC', + AmericaIndianapolis = 'AMERICA_INDIANAPOLIS', + AmericaInuvik = 'AMERICA_INUVIK', + AmericaIqaluit = 'AMERICA_IQALUIT', + AmericaJamaica = 'AMERICA_JAMAICA', + AmericaJujuy = 'AMERICA_JUJUY', + AmericaJuneau = 'AMERICA_JUNEAU', + AmericaKentuckyMonticello = 'AMERICA_KENTUCKY_MONTICELLO', + AmericaKralendijk = 'AMERICA_KRALENDIJK', + AmericaLaPaz = 'AMERICA_LA_PAZ', + AmericaLima = 'AMERICA_LIMA', + AmericaLosAngeles = 'AMERICA_LOS_ANGELES', + AmericaLouisville = 'AMERICA_LOUISVILLE', + AmericaLowerPrinces = 'AMERICA_LOWER_PRINCES', + AmericaMaceio = 'AMERICA_MACEIO', + AmericaManagua = 'AMERICA_MANAGUA', + AmericaManaus = 'AMERICA_MANAUS', + AmericaMarigot = 'AMERICA_MARIGOT', + AmericaMartinique = 'AMERICA_MARTINIQUE', + AmericaMatamoros = 'AMERICA_MATAMOROS', + AmericaMazatlan = 'AMERICA_MAZATLAN', + AmericaMendoza = 'AMERICA_MENDOZA', + AmericaMenominee = 'AMERICA_MENOMINEE', + AmericaMerida = 'AMERICA_MERIDA', + AmericaMetlakatla = 'AMERICA_METLAKATLA', + AmericaMexicoCity = 'AMERICA_MEXICO_CITY', + AmericaMiquelon = 'AMERICA_MIQUELON', + AmericaMoncton = 'AMERICA_MONCTON', + AmericaMonterrey = 'AMERICA_MONTERREY', + AmericaMontevideo = 'AMERICA_MONTEVIDEO', + AmericaMontserrat = 'AMERICA_MONTSERRAT', + AmericaNassau = 'AMERICA_NASSAU', + AmericaNewYork = 'AMERICA_NEW_YORK', + AmericaNipigon = 'AMERICA_NIPIGON', + AmericaNome = 'AMERICA_NOME', + AmericaNoronha = 'AMERICA_NORONHA', + AmericaNorthDakotaBeulah = 'AMERICA_NORTH_DAKOTA_BEULAH', + AmericaNorthDakotaCenter = 'AMERICA_NORTH_DAKOTA_CENTER', + AmericaNorthDakotaNewSalem = 'AMERICA_NORTH_DAKOTA_NEW_SALEM', + AmericaOjinaga = 'AMERICA_OJINAGA', + AmericaPanama = 'AMERICA_PANAMA', + AmericaPangnirtung = 'AMERICA_PANGNIRTUNG', + AmericaParamaribo = 'AMERICA_PARAMARIBO', + AmericaPhoenix = 'AMERICA_PHOENIX', + AmericaPortAuPrince = 'AMERICA_PORT_AU_PRINCE', + AmericaPortOfSpain = 'AMERICA_PORT_OF_SPAIN', + AmericaPortoVelho = 'AMERICA_PORTO_VELHO', + AmericaPuertoRico = 'AMERICA_PUERTO_RICO', + AmericaPuntaArenas = 'AMERICA_PUNTA_ARENAS', + AmericaRainyRiver = 'AMERICA_RAINY_RIVER', + AmericaRankinInlet = 'AMERICA_RANKIN_INLET', + AmericaRecife = 'AMERICA_RECIFE', + AmericaRegina = 'AMERICA_REGINA', + AmericaResolute = 'AMERICA_RESOLUTE', + AmericaRioBranco = 'AMERICA_RIO_BRANCO', + AmericaSantaIsabel = 'AMERICA_SANTA_ISABEL', + AmericaSantarem = 'AMERICA_SANTAREM', + AmericaSantiago = 'AMERICA_SANTIAGO', + AmericaSantoDomingo = 'AMERICA_SANTO_DOMINGO', + AmericaSaoPaulo = 'AMERICA_SAO_PAULO', + AmericaScoresbysund = 'AMERICA_SCORESBYSUND', + AmericaSitka = 'AMERICA_SITKA', + AmericaStBarthelemy = 'AMERICA_ST_BARTHELEMY', + AmericaStJohns = 'AMERICA_ST_JOHNS', + AmericaStKitts = 'AMERICA_ST_KITTS', + AmericaStLucia = 'AMERICA_ST_LUCIA', + AmericaStThomas = 'AMERICA_ST_THOMAS', + AmericaStVincent = 'AMERICA_ST_VINCENT', + AmericaSwiftCurrent = 'AMERICA_SWIFT_CURRENT', + AmericaTegucigalpa = 'AMERICA_TEGUCIGALPA', + AmericaThule = 'AMERICA_THULE', + AmericaThunderBay = 'AMERICA_THUNDER_BAY', + AmericaTijuana = 'AMERICA_TIJUANA', + AmericaToronto = 'AMERICA_TORONTO', + AmericaTortola = 'AMERICA_TORTOLA', + AmericaVancouver = 'AMERICA_VANCOUVER', + AmericaWhitehorse = 'AMERICA_WHITEHORSE', + AmericaWinnipeg = 'AMERICA_WINNIPEG', + AmericaYakutat = 'AMERICA_YAKUTAT', + AmericaYellowknife = 'AMERICA_YELLOWKNIFE', + AntarcticaCasey = 'ANTARCTICA_CASEY', + AntarcticaDavis = 'ANTARCTICA_DAVIS', + AntarcticaDumontDUrville = 'ANTARCTICA_DUMONT_D_URVILLE', + AntarcticaMacquarie = 'ANTARCTICA_MACQUARIE', + AntarcticaMawson = 'ANTARCTICA_MAWSON', + AntarcticaMcMurdo = 'ANTARCTICA_MC_MURDO', + AntarcticaPalmer = 'ANTARCTICA_PALMER', + AntarcticaRothera = 'ANTARCTICA_ROTHERA', + AntarcticaSyowa = 'ANTARCTICA_SYOWA', + AntarcticaTroll = 'ANTARCTICA_TROLL', + AntarcticaVostok = 'ANTARCTICA_VOSTOK', + ArcticLongyearbyen = 'ARCTIC_LONGYEARBYEN', + AsiaAden = 'ASIA_ADEN', + AsiaAlmaty = 'ASIA_ALMATY', + AsiaAmman = 'ASIA_AMMAN', + AsiaAnadyr = 'ASIA_ANADYR', + AsiaAqtau = 'ASIA_AQTAU', + AsiaAqtobe = 'ASIA_AQTOBE', + AsiaAshgabat = 'ASIA_ASHGABAT', + AsiaAtyrau = 'ASIA_ATYRAU', + AsiaBaghdad = 'ASIA_BAGHDAD', + AsiaBahrain = 'ASIA_BAHRAIN', + AsiaBaku = 'ASIA_BAKU', + AsiaBangkok = 'ASIA_BANGKOK', + AsiaBarnaul = 'ASIA_BARNAUL', + AsiaBeirut = 'ASIA_BEIRUT', + AsiaBishkek = 'ASIA_BISHKEK', + AsiaBrunei = 'ASIA_BRUNEI', + AsiaCalcutta = 'ASIA_CALCUTTA', + AsiaChita = 'ASIA_CHITA', + AsiaChoibalsan = 'ASIA_CHOIBALSAN', + AsiaColombo = 'ASIA_COLOMBO', + AsiaDamascus = 'ASIA_DAMASCUS', + AsiaDhaka = 'ASIA_DHAKA', + AsiaDili = 'ASIA_DILI', + AsiaDubai = 'ASIA_DUBAI', + AsiaDushanbe = 'ASIA_DUSHANBE', + AsiaFamagusta = 'ASIA_FAMAGUSTA', + AsiaGaza = 'ASIA_GAZA', + AsiaHebron = 'ASIA_HEBRON', + AsiaHongKong = 'ASIA_HONG_KONG', + AsiaHovd = 'ASIA_HOVD', + AsiaIrkutsk = 'ASIA_IRKUTSK', + AsiaJakarta = 'ASIA_JAKARTA', + AsiaJayapura = 'ASIA_JAYAPURA', + AsiaJerusalem = 'ASIA_JERUSALEM', + AsiaKabul = 'ASIA_KABUL', + AsiaKamchatka = 'ASIA_KAMCHATKA', + AsiaKarachi = 'ASIA_KARACHI', + AsiaKatmandu = 'ASIA_KATMANDU', + AsiaKhandyga = 'ASIA_KHANDYGA', + AsiaKrasnoyarsk = 'ASIA_KRASNOYARSK', + AsiaKualaLumpur = 'ASIA_KUALA_LUMPUR', + AsiaKuching = 'ASIA_KUCHING', + AsiaKuwait = 'ASIA_KUWAIT', + AsiaMacau = 'ASIA_MACAU', + AsiaMagadan = 'ASIA_MAGADAN', + AsiaMakassar = 'ASIA_MAKASSAR', + AsiaManila = 'ASIA_MANILA', + AsiaMuscat = 'ASIA_MUSCAT', + AsiaNicosia = 'ASIA_NICOSIA', + AsiaNovokuznetsk = 'ASIA_NOVOKUZNETSK', + AsiaNovosibirsk = 'ASIA_NOVOSIBIRSK', + AsiaOmsk = 'ASIA_OMSK', + AsiaOral = 'ASIA_ORAL', + AsiaPhnomPenh = 'ASIA_PHNOM_PENH', + AsiaPontianak = 'ASIA_PONTIANAK', + AsiaPyongyang = 'ASIA_PYONGYANG', + AsiaQatar = 'ASIA_QATAR', + AsiaQostanay = 'ASIA_QOSTANAY', + AsiaQyzylorda = 'ASIA_QYZYLORDA', + AsiaRangoon = 'ASIA_RANGOON', + AsiaRiyadh = 'ASIA_RIYADH', + AsiaSaigon = 'ASIA_SAIGON', + AsiaSakhalin = 'ASIA_SAKHALIN', + AsiaSamarkand = 'ASIA_SAMARKAND', + AsiaSeoul = 'ASIA_SEOUL', + AsiaShanghai = 'ASIA_SHANGHAI', + AsiaSingapore = 'ASIA_SINGAPORE', + AsiaSrednekolymsk = 'ASIA_SREDNEKOLYMSK', + AsiaTaipei = 'ASIA_TAIPEI', + AsiaTashkent = 'ASIA_TASHKENT', + AsiaTbilisi = 'ASIA_TBILISI', + AsiaTehran = 'ASIA_TEHRAN', + AsiaThimphu = 'ASIA_THIMPHU', + AsiaTokyo = 'ASIA_TOKYO', + AsiaTomsk = 'ASIA_TOMSK', + AsiaUlaanbaatar = 'ASIA_ULAANBAATAR', + AsiaUrumqi = 'ASIA_URUMQI', + AsiaUstNera = 'ASIA_UST_NERA', + AsiaVientiane = 'ASIA_VIENTIANE', + AsiaVladivostok = 'ASIA_VLADIVOSTOK', + AsiaYakutsk = 'ASIA_YAKUTSK', + AsiaYekaterinburg = 'ASIA_YEKATERINBURG', + AsiaYerevan = 'ASIA_YEREVAN', + AtlanticAzores = 'ATLANTIC_AZORES', + AtlanticBermuda = 'ATLANTIC_BERMUDA', + AtlanticCanary = 'ATLANTIC_CANARY', + AtlanticCapeVerde = 'ATLANTIC_CAPE_VERDE', + AtlanticFaeroe = 'ATLANTIC_FAEROE', + AtlanticMadeira = 'ATLANTIC_MADEIRA', + AtlanticReykjavik = 'ATLANTIC_REYKJAVIK', + AtlanticSouthGeorgia = 'ATLANTIC_SOUTH_GEORGIA', + AtlanticStHelena = 'ATLANTIC_ST_HELENA', + AtlanticStanley = 'ATLANTIC_STANLEY', + AustraliaAdelaide = 'AUSTRALIA_ADELAIDE', + AustraliaBrisbane = 'AUSTRALIA_BRISBANE', + AustraliaBrokenHill = 'AUSTRALIA_BROKEN_HILL', + AustraliaCurrie = 'AUSTRALIA_CURRIE', + AustraliaDarwin = 'AUSTRALIA_DARWIN', + AustraliaEucla = 'AUSTRALIA_EUCLA', + AustraliaHobart = 'AUSTRALIA_HOBART', + AustraliaLindeman = 'AUSTRALIA_LINDEMAN', + AustraliaLordHowe = 'AUSTRALIA_LORD_HOWE', + AustraliaMelbourne = 'AUSTRALIA_MELBOURNE', + AustraliaPerth = 'AUSTRALIA_PERTH', + AustraliaSydney = 'AUSTRALIA_SYDNEY', + EuropeAmsterdam = 'EUROPE_AMSTERDAM', + EuropeAndorra = 'EUROPE_ANDORRA', + EuropeAstrakhan = 'EUROPE_ASTRAKHAN', + EuropeAthens = 'EUROPE_ATHENS', + EuropeBelgrade = 'EUROPE_BELGRADE', + EuropeBerlin = 'EUROPE_BERLIN', + EuropeBratislava = 'EUROPE_BRATISLAVA', + EuropeBrussels = 'EUROPE_BRUSSELS', + EuropeBucharest = 'EUROPE_BUCHAREST', + EuropeBudapest = 'EUROPE_BUDAPEST', + EuropeBusingen = 'EUROPE_BUSINGEN', + EuropeChisinau = 'EUROPE_CHISINAU', + EuropeCopenhagen = 'EUROPE_COPENHAGEN', + EuropeDublin = 'EUROPE_DUBLIN', + EuropeGibraltar = 'EUROPE_GIBRALTAR', + EuropeGuernsey = 'EUROPE_GUERNSEY', + EuropeHelsinki = 'EUROPE_HELSINKI', + EuropeIsleOfMan = 'EUROPE_ISLE_OF_MAN', + EuropeIstanbul = 'EUROPE_ISTANBUL', + EuropeJersey = 'EUROPE_JERSEY', + EuropeKaliningrad = 'EUROPE_KALININGRAD', + EuropeKiev = 'EUROPE_KIEV', + EuropeKirov = 'EUROPE_KIROV', + EuropeLisbon = 'EUROPE_LISBON', + EuropeLjubljana = 'EUROPE_LJUBLJANA', + EuropeLondon = 'EUROPE_LONDON', + EuropeLuxembourg = 'EUROPE_LUXEMBOURG', + EuropeMadrid = 'EUROPE_MADRID', + EuropeMalta = 'EUROPE_MALTA', + EuropeMariehamn = 'EUROPE_MARIEHAMN', + EuropeMinsk = 'EUROPE_MINSK', + EuropeMonaco = 'EUROPE_MONACO', + EuropeMoscow = 'EUROPE_MOSCOW', + EuropeOslo = 'EUROPE_OSLO', + EuropeParis = 'EUROPE_PARIS', + EuropePodgorica = 'EUROPE_PODGORICA', + EuropePrague = 'EUROPE_PRAGUE', + EuropeRiga = 'EUROPE_RIGA', + EuropeRome = 'EUROPE_ROME', + EuropeSamara = 'EUROPE_SAMARA', + EuropeSanMarino = 'EUROPE_SAN_MARINO', + EuropeSarajevo = 'EUROPE_SARAJEVO', + EuropeSaratov = 'EUROPE_SARATOV', + EuropeSimferopol = 'EUROPE_SIMFEROPOL', + EuropeSkopje = 'EUROPE_SKOPJE', + EuropeSofia = 'EUROPE_SOFIA', + EuropeStockholm = 'EUROPE_STOCKHOLM', + EuropeTallinn = 'EUROPE_TALLINN', + EuropeTirane = 'EUROPE_TIRANE', + EuropeUlyanovsk = 'EUROPE_ULYANOVSK', + EuropeUzhgorod = 'EUROPE_UZHGOROD', + EuropeVaduz = 'EUROPE_VADUZ', + EuropeVatican = 'EUROPE_VATICAN', + EuropeVienna = 'EUROPE_VIENNA', + EuropeVilnius = 'EUROPE_VILNIUS', + EuropeVolgograd = 'EUROPE_VOLGOGRAD', + EuropeWarsaw = 'EUROPE_WARSAW', + EuropeZagreb = 'EUROPE_ZAGREB', + EuropeZaporozhye = 'EUROPE_ZAPOROZHYE', + EuropeZurich = 'EUROPE_ZURICH', + IndianAntananarivo = 'INDIAN_ANTANANARIVO', + IndianChagos = 'INDIAN_CHAGOS', + IndianChristmas = 'INDIAN_CHRISTMAS', + IndianCocos = 'INDIAN_COCOS', + IndianComoro = 'INDIAN_COMORO', + IndianKerguelen = 'INDIAN_KERGUELEN', + IndianMahe = 'INDIAN_MAHE', + IndianMaldives = 'INDIAN_MALDIVES', + IndianMauritius = 'INDIAN_MAURITIUS', + IndianMayotte = 'INDIAN_MAYOTTE', + IndianReunion = 'INDIAN_REUNION', + PacificApia = 'PACIFIC_APIA', + PacificAuckland = 'PACIFIC_AUCKLAND', + PacificBougainville = 'PACIFIC_BOUGAINVILLE', + PacificChatham = 'PACIFIC_CHATHAM', + PacificEaster = 'PACIFIC_EASTER', + PacificEfate = 'PACIFIC_EFATE', + PacificEnderbury = 'PACIFIC_ENDERBURY', + PacificFakaofo = 'PACIFIC_FAKAOFO', + PacificFiji = 'PACIFIC_FIJI', + PacificFunafuti = 'PACIFIC_FUNAFUTI', + PacificGalapagos = 'PACIFIC_GALAPAGOS', + PacificGambier = 'PACIFIC_GAMBIER', + PacificGuadalcanal = 'PACIFIC_GUADALCANAL', + PacificGuam = 'PACIFIC_GUAM', + PacificHonolulu = 'PACIFIC_HONOLULU', + PacificJohnston = 'PACIFIC_JOHNSTON', + PacificKiritimati = 'PACIFIC_KIRITIMATI', + PacificKosrae = 'PACIFIC_KOSRAE', + PacificKwajalein = 'PACIFIC_KWAJALEIN', + PacificMajuro = 'PACIFIC_MAJURO', + PacificMarquesas = 'PACIFIC_MARQUESAS', + PacificMidway = 'PACIFIC_MIDWAY', + PacificNauru = 'PACIFIC_NAURU', + PacificNiue = 'PACIFIC_NIUE', + PacificNorfolk = 'PACIFIC_NORFOLK', + PacificNoumea = 'PACIFIC_NOUMEA', + PacificPagoPago = 'PACIFIC_PAGO_PAGO', + PacificPalau = 'PACIFIC_PALAU', + PacificPitcairn = 'PACIFIC_PITCAIRN', + PacificPonape = 'PACIFIC_PONAPE', + PacificPortMoresby = 'PACIFIC_PORT_MORESBY', + PacificRarotonga = 'PACIFIC_RAROTONGA', + PacificSaipan = 'PACIFIC_SAIPAN', + PacificTahiti = 'PACIFIC_TAHITI', + PacificTarawa = 'PACIFIC_TARAWA', + PacificTongatapu = 'PACIFIC_TONGATAPU', + PacificTruk = 'PACIFIC_TRUK', + PacificWake = 'PACIFIC_WAKE', + PacificWallis = 'PACIFIC_WALLIS', +} + +/** + * Enum for FeedsOrderBy. + */ +export enum FeedsOrderBy { LatestFirst = 'LATEST_FIRST', OldestFirst = 'OLDEST_FIRST', + Alphabetical = 'ALPHABETICAL', } /** - * Enum for the different types of followers order by options. + * Enum for FollowersOrderBy. */ export enum FollowersOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + Desc = 'DESC', + Asc = 'ASC', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different types of followers you know order by options. + * Enum for FollowersYouKnowOrderBy. */ export enum FollowersYouKnowOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + Desc = 'DESC', + Asc = 'ASC', } /** - * Enum for the different types of following order by options. + * Enum for FollowingOrderBy. */ export enum FollowingOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + Desc = 'DESC', + Asc = 'ASC', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different sources for "For You" feed. + * Enum for ForYouSource. */ export enum ForYouSource { - Recommended = 'RECOMMENDED', - Trending = 'TRENDING', + Following = 'FOLLOWING', + Curated = 'CURATED', + Popular = 'POPULAR', } /** - * Enum for the different types of graphs order by options. + * Enum for GraphsOrderBy. */ export enum GraphsOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST', + Alphabetical = 'ALPHABETICAL', +} + +/** + * Enum for GroupMembersOrderBy. + */ +export enum GroupMembersOrderBy { + LastJoined = 'LAST_JOINED', + FirstJoined = 'FIRST_JOINED', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different types of groups order by options. + * Enum for GroupsOrderBy. */ export enum GroupsOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST', + Alphabetical = 'ALPHABETICAL', } /** - * Enum for the different types of main content focus. + * Enum for MainContentFocus. */ export enum MainContentFocus { Article = 'ARTICLE', - Video = 'VIDEO', + Audio = 'AUDIO', + CheckingIn = 'CHECKING_IN', + Embed = 'EMBED', + Event = 'EVENT', Image = 'IMAGE', + Link = 'LINK', + Livestream = 'LIVESTREAM', + Mint = 'MINT', + ShortVideo = 'SHORT_VIDEO', + Space = 'SPACE', + Story = 'STORY', + TextOnly = 'TEXT_ONLY', + ThreeD = 'THREE_D', + Transaction = 'TRANSACTION', + Video = 'VIDEO', } /** - * Enum for the different types of managed accounts visibility. + * Enum for ManagedAccountsVisibility. */ export enum ManagedAccountsVisibility { - Public = 'PUBLIC', - Private = 'PRIVATE', + NoneHidden = 'NONE_HIDDEN', + HiddenOnly = 'HIDDEN_ONLY', + All = 'ALL', } /** - * Enum for the different types of media audio kind. + * Enum for MediaAudioKind. */ export enum MediaAudioKind { - Podcast = 'PODCAST', Music = 'MUSIC', + Podcast = 'PODCAST', + Audiobook = 'AUDIOBOOK', + VoiceNote = 'VOICE_NOTE', + Sound = 'SOUND', + Other = 'OTHER', } /** - * Enum for the different types of media audio. + * Enum for MediaAudioType. */ export enum MediaAudioType { AudioWav = 'AUDIO_WAV', @@ -168,213 +641,321 @@ export enum MediaAudioType { } /** - * Enum for the different types of media image. + * Enum for MediaImageType. */ export enum MediaImageType { + Bmp = 'BMP', + Gif = 'GIF', + Heic = 'HEIC', Jpeg = 'JPEG', Png = 'PNG', + SvgXml = 'SVG_XML', + Tiff = 'TIFF', + Webp = 'WEBP', + XMsBmp = 'X_MS_BMP', } /** - * Enum for the different types of media video. + * Enum for MediaVideoType. */ export enum MediaVideoType { - Mp4 = 'MP4', - Avi = 'AVI', + ModelGltfJson = 'MODEL_GLTF_JSON', + ModelGltfBinary = 'MODEL_GLTF_BINARY', + VideoXm4v = 'VIDEO_XM_4V', + VideoMov = 'VIDEO_MOV', + VideoMp4 = 'VIDEO_MP_4', + VideoMpeg = 'VIDEO_MPEG', + VideoOgg = 'VIDEO_OGG', + VideoOgv = 'VIDEO_OGV', + VideoQuicktime = 'VIDEO_QUICKTIME', + VideoWebm = 'VIDEO_WEBM', } /** - * Enum for the different types of metadata attribute. + * Enum for MetadataAttributeType. */ export enum MetadataAttributeType { - String = 'STRING', + Boolean = 'BOOLEAN', + Date = 'DATE', Number = 'NUMBER', + String = 'STRING', + Json = 'JSON', } /** - * Enum for the different types of metadata license. + * Enum for MetadataLicenseType. */ export enum MetadataLicenseType { + Cco = 'CCO', CcBy = 'CC_BY', - CcBySa = 'CC_BY_SA', + CcByNd = 'CC_BY_ND', + CcByNc = 'CC_BY_NC', + TbnlCdPlLegal = 'TBNL_CD_PL_LEGAL', + TbnlCDtPlLegal = 'TBNL_C_DT_PL_LEGAL', + TbnlCNdPlLegal = 'TBNL_C_ND_PL_LEGAL', + TbnlCdNplLegal = 'TBNL_CD_NPL_LEGAL', + TbnlCDtNplLegal = 'TBNL_C_DT_NPL_LEGAL', + TbnlCDtsaPlLegal = 'TBNL_C_DTSA_PL_LEGAL', + TbnlCDtsaNplLegal = 'TBNL_C_DTSA_NPL_LEGAL', + TbnlCNdNplLegal = 'TBNL_C_ND_NPL_LEGAL', + TbnlCdPlLedger = 'TBNL_CD_PL_LEDGER', + TbnlCDtPlLedger = 'TBNL_C_DT_PL_LEDGER', + TbnlCNdPlLedger = 'TBNL_C_ND_PL_LEDGER', + TbnlCdNplLedger = 'TBNL_CD_NPL_LEDGER', + TbnlCDtNplLedger = 'TBNL_C_DT_NPL_LEDGER', + TbnlCDtsaPlLedger = 'TBNL_C_DTSA_PL_LEDGER', + TbnlCDtsaNplLedger = 'TBNL_C_DTSA_NPL_LEDGER', + TbnlCNdNplLedger = 'TBNL_C_ND_NPL_LEDGER', + TbnlNcDPlLegal = 'TBNL_NC_D_PL_LEGAL', + TbnlNcDtPlLegal = 'TBNL_NC_DT_PL_LEGAL', + TbnlNcNdPlLegal = 'TBNL_NC_ND_PL_LEGAL', + TbnlNcDNplLegal = 'TBNL_NC_D_NPL_LEGAL', + TbnlNcDtNplLegal = 'TBNL_NC_DT_NPL_LEGAL', + TbnlNcDtsaPlLegal = 'TBNL_NC_DTSA_PL_LEGAL', + TbnlNcDtsaNplLegal = 'TBNL_NC_DTSA_NPL_LEGAL', + TbnlNcNdNplLegal = 'TBNL_NC_ND_NPL_LEGAL', + TbnlNcDPlLedger = 'TBNL_NC_D_PL_LEDGER', + TbnlNcDtPlLedger = 'TBNL_NC_DT_PL_LEDGER', + TbnlNcNdPlLedger = 'TBNL_NC_ND_PL_LEDGER', + TbnlNcDNplLedger = 'TBNL_NC_D_NPL_LEDGER', + TbnlNcDtNplLedger = 'TBNL_NC_DT_NPL_LEDGER', + TbnlNcDtsaPlLedger = 'TBNL_NC_DTSA_PL_LEDGER', + TbnlNcDtsaNplLedger = 'TBNL_NC_DTSA_NPL_LEDGER', + TbnlNcNdNplLedger = 'TBNL_NC_ND_NPL_LEDGER', +} + +/** + * Enum for NamespacesOrderBy. + */ +export enum NamespacesOrderBy { + LatestFirst = 'LATEST_FIRST', + OldestFirst = 'OLDEST_FIRST', + Alphabetical = 'ALPHABETICAL', } /** - * Enum for the different types of notification order by options. + * Enum for NftContractType. + */ +export enum NftContractType { + Erc721 = 'ERC_721', + Erc1155 = 'ERC_1155', +} + +/** + * Enum for NotificationOrderBy. */ export enum NotificationOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + Default = 'DEFAULT', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different types of notifications. + * Enum for NotificationType. */ export enum NotificationType { - Mention = 'MENTION', - Comment = 'COMMENT', + Reposted = 'REPOSTED', + Quoted = 'QUOTED', + Commented = 'COMMENTED', + Followed = 'FOLLOWED', + Mentioned = 'MENTIONED', + Reacted = 'REACTED', } /** - * Enum for the different types of page size. + * Enum for PageSize. */ export enum PageSize { - Small = 'SMALL', - Medium = 'MEDIUM', - Large = 'LARGE', + Ten = 'TEN', + Fifty = 'FIFTY', } /** - * Enum for the different types of post action categories. + * Enum for PostActionCategoryType. */ export enum PostActionCategoryType { - Like = 'LIKE', - Share = 'SHARE', + Collect = 'COLLECT', } /** - * Enum for the different types of post reaction order by options. + * Enum for PostActionType. + */ +export enum PostActionType { + SimpleCollectAction = 'SIMPLE_COLLECT_ACTION', + UnknownAction = 'UNKNOWN_ACTION', +} + +/** + * Enum for PostReactionOrderBy. */ export enum PostReactionOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', + Default = 'DEFAULT', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different types of post report reasons. + * Enum for PostReactionType. */ -export enum PostReportReason { - Spam = 'SPAM', - Inappropriate = 'INAPPROPRIATE', +export enum PostReactionType { + Upvote = 'UPVOTE', + Downvote = 'DOWNVOTE', } /** - * Enum for the different types of post tags order by options. + * Enum for PostReferenceType. */ -export enum PostTagsOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', +export enum PostReferenceType { + CommentOn = 'COMMENT_ON', + RepostOf = 'REPOST_OF', + QuoteOf = 'QUOTE_OF', } /** - * Enum for the different types of posts. + * Enum for PostReportReason. */ -export enum PostType { - Original = 'ORIGINAL', - Repost = 'REPOST', +export enum PostReportReason { + AnimalAbuse = 'ANIMAL_ABUSE', + Harassment = 'HARASSMENT', + Violence = 'VIOLENCE', + SelfHarm = 'SELF_HARM', + DirectThreat = 'DIRECT_THREAT', + HateSpeech = 'HATE_SPEECH', + Nudity = 'NUDITY', + Offensive = 'OFFENSIVE', + Scam = 'SCAM', + UnauthorizedSale = 'UNAUTHORIZED_SALE', + Impersonation = 'IMPERSONATION', + Misleading = 'MISLEADING', + MisuseHashtags = 'MISUSE_HASHTAGS', + Unrelated = 'UNRELATED', + Repetitive = 'REPETITIVE', + FakeEngagement = 'FAKE_ENGAGEMENT', + ManipulationAlgo = 'MANIPULATION_ALGO', + SomethingElse = 'SOMETHING_ELSE', } /** - * Enum for the different types of post visibility filters. + * Enum for PostTagsOrderBy. */ -export enum PostVisibilityFilter { - Public = 'PUBLIC', - Private = 'PRIVATE', +export enum PostTagsOrderBy { + MostPopular = 'MOST_POPULAR', + Alphabetical = 'ALPHABETICAL', } /** - * Enum for the different types of self-funded fallback reasons. + * Enum for PostType. */ -export enum SelfFundedFallbackReason { - InsufficientFunds = 'INSUFFICIENT_FUNDS', - NetworkError = 'NETWORK_ERROR', +export enum PostType { + Root = 'ROOT', + Comment = 'COMMENT', + Repost = 'REPOST', + Quote = 'QUOTE', } /** - * Enum for the different types of sponsor limit. + * Enum for PostVisibilityFilter. */ -export enum SponsorLimitType { - Daily = 'DAILY', - Monthly = 'MONTHLY', +export enum PostVisibilityFilter { + All = 'ALL', + Hidden = 'HIDDEN', + Visible = 'VISIBLE', } /** - * Enum for the different types of sponsored fallback reasons. + * Enum for SelfFundedFallbackReason. */ -export enum SponsoredFallbackReason { - NoSponsor = 'NO_SPONSOR', - SponsorDeclined = 'SPONSOR_DECLINED', +export enum SelfFundedFallbackReason { + NotSponsored = 'NOT_SPONSORED', + CannotSponsor = 'CANNOT_SPONSOR', } /** - * Enum for the different types of token standards. + * Enum for SponsorLimitType. */ -export enum TokenStandard { - Erc20 = 'ERC20', - Erc721 = 'ERC721', +export enum SponsorLimitType { + Hour = 'HOUR', + Day = 'DAY', + Week = 'WEEK', + Month = 'MONTH', } /** - * Enum for the different types of transactions. + * Enum for SponsoredFallbackReason. */ -export enum TransactionType { - Transfer = 'TRANSFER', - Approval = 'APPROVAL', +export enum SponsoredFallbackReason { + SignlessDisabled = 'SIGNLESS_DISABLED', + SignlessFailed = 'SIGNLESS_FAILED', } /** - * Enum for the different types of tri-state values. + * Enum for ThreeDAssetFormat. */ -export enum TriStateValue { - Yes = 'YES', - No = 'NO', - Maybe = 'MAYBE', +export enum ThreeDAssetFormat { + GLtfGlb = 'G_LTF_GLB', + Fbx = 'FBX', + Vrm = 'VRM', + Obj = 'OBJ', } /** - * Enum for the different types of unblock error. + * Enum for TimelineEventItemType. */ -export enum UnblockErrorType { - NotBlocked = 'NOT_BLOCKED', - AlreadyUnblocked = 'ALREADY_UNBLOCKED', +export enum TimelineEventItemType { + Post = 'POST', + Comment = 'COMMENT', + Repost = 'REPOST', + Quote = 'QUOTE', } /** - * Enum for the different types of who acted on post order by options. + * Enum for TokenStandard. */ -export enum WhoActedOnPostOrderBy { - MostRecent = 'MOST_RECENT', - Oldest = 'OLDEST', +export enum TokenStandard { + Erc20 = 'ERC_20', + Erc721 = 'ERC_721', + Erc1155 = 'ERC_1155', } /** - * Enum for the different authentication roles a user can have. + * Enum for TransactionType. */ -export enum Role { - Admin = 'ADMIN', - User = 'USER', +export enum TransactionType { + Erc721 = 'ERC_721', + Erc20 = 'ERC_20', + Other = 'OTHER', } /** - * Enum for the different type of Post Actions. + * Enum for TriStateValue. */ -export enum PostActionType { - Like = 'LIKE', - Share = 'SHARE', +export enum TriStateValue { + Yes = 'YES', + No = 'NO', + Unknown = 'UNKNOWN', } /** - * Enum for the different types of reactions a user can have on a post. + * Enum for UnblockErrorType. */ -export enum PostReactionType { - Upvote = 'UPVOTE', - Downvote = 'DOWNVOTE', +export enum UnblockErrorType { + Unknown = 'UNKNOWN', + NotBlocked = 'NOT_BLOCKED', + Unauthorized = 'UNAUTHORIZED', } /** - * Enum for the different content warnings. + * Enum for WhoActedOnPostOrderBy. */ -export enum ContentWarning { - Nsfw = 'NSFW', - Sensitive = 'SENSITIVE', - Spoiler = 'SPOILER', +export enum WhoActedOnPostOrderBy { + LastActioned = 'LAST_ACTIONED', + FirstActioned = 'FIRST_ACTIONED', + AccountScore = 'ACCOUNT_SCORE', } /** - * Enum for the different types of references a post can have. + * Enum for WhoReferencedPostOrderBy. */ -export enum PostReferenceType { - CommentOn = 'COMMENT_ON', - RepostOf = 'REPOST_OF', - QuoteOf = 'QUOTE_OF', +export enum WhoReferencedPostOrderBy { + MostRecent = 'MOST_RECENT', + Oldest = 'OLDEST', + AccountScore = 'ACCOUNT_SCORE', } diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index c1aa28a20..5e22c647f 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -31,15 +31,20 @@ import type { StandardData } from './common'; import type { AccessConditionComparison, AccountReportReason, - AccountSearchOrderBy, + AccountsOrderBy, AppMetadataLensPlatformsItem, AppsOrderBy, + BlockErrorType, ContentWarning, + EntityType, + EventMetadataLensSchedulingAdjustmentsTimezoneId, + FeedsOrderBy, FollowersOrderBy, FollowersYouKnowOrderBy, FollowingOrderBy, ForYouSource, GraphsOrderBy, + GroupMembersOrderBy, GroupsOrderBy, MainContentFocus, ManagedAccountsVisibility, @@ -49,6 +54,8 @@ import type { MediaVideoType, MetadataAttributeType, MetadataLicenseType, + NamespacesOrderBy, + NftContractType, NotificationOrderBy, NotificationType, PageSize, @@ -64,6 +71,8 @@ import type { SelfFundedFallbackReason, SponsorLimitType, SponsoredFallbackReason, + ThreeDAssetFormat, + TimelineEventItemType, TokenStandard, TransactionType, TriStateValue, @@ -78,46 +87,37 @@ export const graphql = initGraphQLTada<{ introspection: introspection; scalars: { AccessToken: AccessToken; + AccessConditionComparison: AccessConditionComparison; AccountReportReason: AccountReportReason; + AccountsOrderBy: AccountsOrderBy; + AppMetadataLensPlatformsItem: AppMetadataLensPlatformsItem; + AppsOrderBy: AppsOrderBy; BigDecimal: BigDecimal; BigInt: BigIntString; BlockchainData: BlockchainData; + BlockErrorType: BlockErrorType; Boolean: boolean; ContentWarning: ContentWarning; Cursor: Cursor; DateTime: DateTime; EncodedTransaction: EncodedTransaction; + EntityType: EntityType; + EventMetadataLensSchedulingAdjustmentsTimezoneId: EventMetadataLensSchedulingAdjustmentsTimezoneId; EvmAddress: EvmAddress; + FeedsOrderBy: FeedsOrderBy; Float: number; - ID: ID; - IdToken: IdToken; - Int: number; - LegacyProfileId: LegacyProfileId; - LegacyRefreshToken: CompactJwt; - PostActionType: PostActionType; - PostReactionType: PostReactionType; - PageSize: PageSize; - PostId: PostId; - RefreshToken: RefreshToken; - Signature: Signature; - String: string; - TxHash: TxHash; - URI: URI; - URL: URL; - UsernameValue: UsernameValue; - UUID: UUID; - Void: Void; - WhoReferencedPostOrderBy: WhoReferencedPostOrderBy; - AccessConditionComparison: AccessConditionComparison; - AccountSearchOrderBy: AccountSearchOrderBy; - AppMetadataLensPlatformsItem: AppMetadataLensPlatformsItem; - AppsOrderBy: AppsOrderBy; FollowersOrderBy: FollowersOrderBy; FollowersYouKnowOrderBy: FollowersYouKnowOrderBy; FollowingOrderBy: FollowingOrderBy; ForYouSource: ForYouSource; GraphsOrderBy: GraphsOrderBy; + GroupMembersOrderBy: GroupMembersOrderBy; GroupsOrderBy: GroupsOrderBy; + ID: ID; + IdToken: IdToken; + Int: number; + LegacyProfileId: LegacyProfileId; + LegacyRefreshToken: CompactJwt; MainContentFocus: MainContentFocus; ManagedAccountsVisibility: ManagedAccountsVisibility; MediaAudioKind: MediaAudioKind; @@ -126,23 +126,42 @@ export const graphql = initGraphQLTada<{ MediaVideoType: MediaVideoType; MetadataAttributeType: MetadataAttributeType; MetadataLicenseType: MetadataLicenseType; + NamespacesOrderBy: NamespacesOrderBy; + NftContractType: NftContractType; NotificationOrderBy: NotificationOrderBy; NotificationType: NotificationType; + PageSize: PageSize; PostActionCategoryType: PostActionCategoryType; + PostActionType: PostActionType; + PostId: PostId; PostReactionOrderBy: PostReactionOrderBy; + PostReactionType: PostReactionType; PostReferenceType: PostReferenceType; PostReportReason: PostReportReason; PostTagsOrderBy: PostTagsOrderBy; PostType: PostType; PostVisibilityFilter: PostVisibilityFilter; + RefreshToken: RefreshToken; SelfFundedFallbackReason: SelfFundedFallbackReason; + Signature: Signature; SponsorLimitType: SponsorLimitType; SponsoredFallbackReason: SponsoredFallbackReason; + String: string; + Tag: string; + ThreeDAssetFormat: ThreeDAssetFormat; + TimelineEventItemType: TimelineEventItemType; TokenStandard: TokenStandard; TransactionType: TransactionType; TriStateValue: TriStateValue; + TxHash: TxHash; + URI: URI; + URL: URL; + UUID: UUID; UnblockErrorType: UnblockErrorType; + UsernameValue: UsernameValue; + Void: Void; WhoActedOnPostOrderBy: WhoActedOnPostOrderBy; + WhoReferencedPostOrderBy: WhoReferencedPostOrderBy; }; }>(); From b21b32b8d3b70ee7bd06694256a5104dda2f032f Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Sat, 14 Dec 2024 11:19:40 +0100 Subject: [PATCH 3/4] Add missing role --- packages/graphql/src/enums.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/graphql/src/enums.ts b/packages/graphql/src/enums.ts index c6b59eca9..1aeabf539 100644 --- a/packages/graphql/src/enums.ts +++ b/packages/graphql/src/enums.ts @@ -1,3 +1,13 @@ +/** + * Enum for the different authentication roles a user can have. + */ +export enum Role { + AccountOwner = 'ACCOUNT_OWNER', + AccountManager = 'ACCOUNT_MANAGER', + OnboardingUser = 'ONBOARDING_USER', + Builder = 'BUILDER', +} + /** * Enum for AccessConditionComparison. */ From 62ca20d5b24b5a58ebb7775ae3bd96b535b0bd20 Mon Sep 17 00:00:00 2001 From: Juan Garcia Date: Mon, 16 Dec 2024 15:17:20 +0100 Subject: [PATCH 4/4] Fix --- packages/graphql/src/graphql.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/graphql/src/graphql.ts b/packages/graphql/src/graphql.ts index ee2385d91..5e22c647f 100644 --- a/packages/graphql/src/graphql.ts +++ b/packages/graphql/src/graphql.ts @@ -78,7 +78,6 @@ import type { TriStateValue, UnblockErrorType, WhoActedOnPostOrderBy, - WhoReferencedPostOrderBy, } from './enums'; import type { introspection } from './graphql-env';