From 5a5d5f64ffa10c64cffb574df4c61e0ab91ca79a Mon Sep 17 00:00:00 2001 From: Artsy Date: Mon, 18 Nov 2024 17:41:41 -0800 Subject: [PATCH] chore: update metaphysics graphql schema (#11125) --- data/schema.graphql | 173 ++++++++++++++++---------------------------- 1 file changed, 63 insertions(+), 110 deletions(-) diff --git a/data/schema.graphql b/data/schema.graphql index f3e2264c711..db69f867219 100644 --- a/data/schema.graphql +++ b/data/schema.graphql @@ -1135,27 +1135,33 @@ type AnalyticsVisitorsByReferral { value: Int! } -# App Authenticator Two-Factor Authentication factor type AppSecondFactor implements SecondFactor { - createdAt: ISO8601DateTime! - disabledAt: ISO8601DateTime + disabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String enabled: Boolean! - enabledAt: ISO8601DateTime + enabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String + + # A type-specific Gravity Mongo Document ID. internalID: ID! kind: SecondFactorKind! name: String otpProvisioningURI: String otpSecret: String - updatedAt: ISO8601DateTime! } -# Second factor input attributes input AppSecondFactorAttributes { - # Name of the second factor name: String } -# An app second factor or errors union AppSecondFactorOrErrorsUnion = AppSecondFactor | Errors type Article implements Node { @@ -3678,23 +3684,31 @@ type Author { twitterHandle: String } -# Backup Two-Factor Authentication factor type BackupSecondFactor implements SecondFactor { code: String! - createdAt: ISO8601DateTime! - disabledAt: ISO8601DateTime + disabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String enabled: Boolean! - enabledAt: ISO8601DateTime + enabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String + + # A type-specific Gravity Mongo Document ID. internalID: ID! kind: SecondFactorKind! - updatedAt: ISO8601DateTime! } type BackupSecondFactors { secondFactors: [BackupSecondFactor!]! } -# A list of backup second factors or errors union BackupSecondFactorsOrErrorsUnion = BackupSecondFactors | Errors type BankAccount { @@ -7837,32 +7851,23 @@ type CreateAlertSuccess { me: Me! } -# Autogenerated input type of CreateAndSendBackupSecondFactor input CreateAndSendBackupSecondFactorInput { - # A unique identifier for the client performing the mutation. clientMutationId: String userID: ID! } -# Autogenerated return type of CreateAndSendBackupSecondFactor type CreateAndSendBackupSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String factor: BackupSecondFactor! } -# Autogenerated input type of CreateAppSecondFactor input CreateAppSecondFactorInput { attributes: AppSecondFactorAttributes! - - # A unique identifier for the client performing the mutation. clientMutationId: String password: String! } -# Autogenerated return type of CreateAppSecondFactor type CreateAppSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: AppSecondFactorOrErrorsUnion! } @@ -7895,16 +7900,12 @@ type CreateArtistSuccess { union CreateArtistSuccessOrErrorType = CreateArtistFailure | CreateArtistSuccess -# Autogenerated input type of CreateBackupSecondFactors input CreateBackupSecondFactorsInput { - # A unique identifier for the client performing the mutation. clientMutationId: String password: String! } -# Autogenerated return type of CreateBackupSecondFactors type CreateBackupSecondFactorsPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorsOrErrors: BackupSecondFactorsOrErrorsUnion! } @@ -8314,18 +8315,13 @@ type CreateSaleAgreementSuccess { saleAgreement: SaleAgreement } -# Autogenerated input type of CreateSmsSecondFactor input CreateSmsSecondFactorInput { attributes: SmsSecondFactorAttributes! - - # A unique identifier for the client performing the mutation. clientMutationId: String password: String! } -# Autogenerated return type of CreateSmsSecondFactor type CreateSmsSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: SmsSecondFactorOrErrorsUnion! } @@ -9069,16 +9065,12 @@ type DeleteViewingRoomPayload { viewingRoom: ViewingRoom! } -# Autogenerated input type of DeliverSecondFactor input DeliverSecondFactorInput { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorID: ID! } -# Autogenerated return type of DeliverSecondFactor type DeliverSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: SecondFactorOrErrorsUnion! } @@ -9146,17 +9138,13 @@ type Device { token: String! } -# Autogenerated input type of DisableSecondFactor input DisableSecondFactorInput { - # A unique identifier for the client performing the mutation. clientMutationId: String password: String! secondFactorID: ID! } -# Autogenerated return type of DisableSecondFactor type DisableSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: SecondFactorOrErrorsUnion! } @@ -9304,18 +9292,14 @@ enum EditionSetSorts { PRICE_ASC } -# Autogenerated input type of EnableSecondFactor input EnableSecondFactorInput { - # A unique identifier for the client performing the mutation. clientMutationId: String code: String! password: String! secondFactorID: ID! } -# Autogenerated return type of EnableSecondFactor type EnableSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String recoveryCodes: [String!] secondFactorOrErrors: SecondFactorOrErrorsUnion! @@ -13506,18 +13490,13 @@ type Mutation { # Create an alert createAlert(input: createAlertInput!): createAlertPayload createAndSendBackupSecondFactor( - # Parameters for CreateAndSendBackupSecondFactor input: CreateAndSendBackupSecondFactorInput! ): CreateAndSendBackupSecondFactorPayload - createAppSecondFactor( - # Parameters for CreateAppSecondFactor - input: CreateAppSecondFactorInput! - ): CreateAppSecondFactorPayload + createAppSecondFactor(input: CreateAppSecondFactorInput!): CreateAppSecondFactorPayload # Create an artist createArtist(input: CreateArtistMutationInput!): CreateArtistMutationPayload createBackupSecondFactors( - # Parameters for CreateBackupSecondFactors input: CreateBackupSecondFactorsInput! ): CreateBackupSecondFactorsPayload createBankDebitSetup( @@ -13608,10 +13587,7 @@ type Mutation { # Creates a static Markdown-backed sale agreement. createSaleAgreement(input: CreateSaleAgreementMutationInput!): CreateSaleAgreementMutationPayload - createSmsSecondFactor( - # Parameters for CreateSmsSecondFactor - input: CreateSmsSecondFactorInput! - ): CreateSmsSecondFactorPayload + createSmsSecondFactor(input: CreateSmsSecondFactorInput!): CreateSmsSecondFactorPayload createUserAddress( # Parameters for CreateUserAddress input: CreateUserAddressInput! @@ -13732,24 +13708,15 @@ type Mutation { # Parameters for DeleteViewingRoom input: DeleteViewingRoomInput! ): DeleteViewingRoomPayload - deliverSecondFactor( - # Parameters for DeliverSecondFactor - input: DeliverSecondFactorInput! - ): DeliverSecondFactorPayload - disableSecondFactor( - # Parameters for DisableSecondFactor - input: DisableSecondFactorInput! - ): DisableSecondFactorPayload + deliverSecondFactor(input: DeliverSecondFactorInput!): DeliverSecondFactorPayload + disableSecondFactor(input: DisableSecondFactorInput!): DisableSecondFactorPayload # Add (or remove) an artwork to (from) a users dislikes. dislikeArtwork(input: DislikeArtworkInput!): DislikeArtworkPayload # Updates a Task on the logged in User dismissTask(input: DismissTaskMutationInput!): DismissTaskMutationPayload - enableSecondFactor( - # Parameters for EnableSecondFactor - input: EnableSecondFactorInput! - ): EnableSecondFactorPayload + enableSecondFactor(input: EnableSecondFactorInput!): EnableSecondFactorPayload # Mark sale as ended. endSale(input: EndSaleInput!): EndSalePayload @@ -13880,10 +13847,7 @@ type Mutation { # Create an alert updateAlert(input: updateAlertInput!): updateAlertPayload - updateAppSecondFactor( - # Parameters for UpdateAppSecondFactor - input: UpdateAppSecondFactorInput! - ): UpdateAppSecondFactorPayload + updateAppSecondFactor(input: UpdateAppSecondFactorInput!): UpdateAppSecondFactorPayload # Update the artist updateArtist(input: UpdateArtistMutationInput!): UpdateArtistMutationPayload @@ -13959,10 +13923,7 @@ type Mutation { # Updates a saleAgreement. updateSaleAgreement(input: UpdateSaleAgreementMutationInput!): UpdateSaleAgreementMutationPayload - updateSmsSecondFactor( - # Parameters for UpdateSmsSecondFactor - input: UpdateSmsSecondFactorInput! - ): UpdateSmsSecondFactorPayload + updateSmsSecondFactor(input: UpdateSmsSecondFactorInput!): UpdateSmsSecondFactorPayload # Update the user updateUser(input: UpdateUserMutationInput!): UpdateUserMutationPayload @@ -16013,9 +15974,6 @@ type Query { # Find partners by IDs _unused_gravity_partners(ids: [ID!]!): [DoNotUseThisPartner!] - # List enabled Two-Factor Authentication factors - _unused_gravity_secondFactors(kinds: [SecondFactorKind!] = [app, sms, backup]): [SecondFactor!]! - # List of user's saved addresses _unused_gravity_userAddressConnection( # Returns the elements in the list that come after the specified cursor. @@ -18313,28 +18271,31 @@ type SearchableItem implements Node & Searchable { } interface SecondFactor { - createdAt: ISO8601DateTime! - disabledAt: ISO8601DateTime + disabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String enabled: Boolean! - enabledAt: ISO8601DateTime + enabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String + + # A type-specific Gravity Mongo Document ID. internalID: ID! kind: SecondFactorKind! - updatedAt: ISO8601DateTime! } -# Two-Factor Authentication (2FA) Method enum SecondFactorKind { - # App authenticator 2FA method app - - # Backup 2FA method backup - - # SMS 2FA method sms } -# A second factor or errors union SecondFactorOrErrorsUnion = AppSecondFactor | Errors | SmsSecondFactor # A piece that can be sold @@ -18842,32 +18803,34 @@ enum ShowSorts { UPDATED_AT_DESC } -# SMS Two-Factor Authentication factor type SmsSecondFactor implements SecondFactor { countryCode: String - createdAt: ISO8601DateTime! - disabledAt: ISO8601DateTime + disabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String enabled: Boolean! - enabledAt: ISO8601DateTime + enabledAt( + format: String + + # A tz database time zone, otherwise falls back to "X-TIMEZONE" header. See http://www.iana.org/time-zones, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: String + ): String formattedPhoneNumber: String + + # A type-specific Gravity Mongo Document ID. internalID: ID! kind: SecondFactorKind! - lastDeliveredAt: ISO8601DateTime - maskedPhone: String @deprecated(reason: "Use formattedPhoneNumber instead") phoneNumber: String - updatedAt: ISO8601DateTime! } -# SMS second factor input attributes input SmsSecondFactorAttributes { - # ISO 3166 country code for the SMS second factor countryCode: String - - # Phone number of the SMS second factor phoneNumber: String } -# An SMS second factor or errors union SmsSecondFactorOrErrorsUnion = Errors | SmsSecondFactor type SpecialistBio { @@ -19302,18 +19265,13 @@ type UpdateAlertSuccess { alert: Alert } -# Autogenerated input type of UpdateAppSecondFactor input UpdateAppSecondFactorInput { attributes: AppSecondFactorAttributes! - - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorID: ID! } -# Autogenerated return type of UpdateAppSecondFactor type UpdateAppSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: AppSecondFactorOrErrorsUnion! } @@ -19932,18 +19890,13 @@ type UpdateSaleAgreementSuccess { saleAgreement: SaleAgreement } -# Autogenerated input type of UpdateSmsSecondFactor input UpdateSmsSecondFactorInput { attributes: SmsSecondFactorAttributes! - - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorID: ID! } -# Autogenerated return type of UpdateSmsSecondFactor type UpdateSmsSecondFactorPayload { - # A unique identifier for the client performing the mutation. clientMutationId: String secondFactorOrErrors: SmsSecondFactorOrErrorsUnion! }