/** * --------------------------------------------------------------------------------- * This file has been generated by Sanity TypeGen. * Command: `sanity typegen generate` * * Any modifications made directly to this file will be overwritten the next time * the TypeScript definitions are generated. Please make changes to the Sanity * schema definitions and/or GROQ queries if you need to update these types. * * For more information on how to use Sanity TypeGen, visit the official documentation: * https://www.sanity.io/docs/sanity-typegen * --------------------------------------------------------------------------------- */ // Source: schema.json export type ReleaseReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'release' } export type ArtistReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'artist' } export type ComposerReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'composer' } export type Settings = { _id: string _type: 'settings' _createdAt: string _updatedAt: string _rev: string title?: string featuredAlbum?: ReleaseReference featuredArtist?: ArtistReference featuredComposer?: ComposerReference } export type SanityImageAssetReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'sanity.imageAsset' } export type SanityFileAssetReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'sanity.fileAsset' } export type WorkReference = { _ref: string _type: 'reference' _weak?: boolean [internalGroqTypeReferenceTo]?: 'work' } export type Release = { _id: string _type: 'release' _createdAt: string _updatedAt: string _rev: string name?: string albumArtist?: string catalogNo?: string slug?: Slug upc?: string releaseDate?: string format?: 'single' | 'ep' | 'album' | 'boxset' label?: 'TRPTK' | 'other' shortDescription?: string description?: Array<{ children?: Array<{ marks?: Array text?: string _type: 'span' _key: string }> style?: 'normal' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' listItem?: 'bullet' | 'number' markDefs?: Array<{ href?: string _type: 'link' _key: string }> level?: number _type: 'block' _key: string }> albumCover?: { asset?: SanityImageAssetReference media?: unknown hotspot?: SanityImageHotspot crop?: SanityImageCrop _type: 'image' } bookletPdf?: { asset?: SanityFileAssetReference media?: unknown _type: 'file' } tracks?: Array<{ work?: WorkReference movement?: string displayTitle?: string artist?: string duration?: string previewMp3?: { asset?: SanityFileAssetReference media?: unknown _type: 'file' } _type: 'track' _key: string }> officialUrl?: string spotifyUrl?: string appleMusicUrl?: string deezerUrl?: string amazonMusicUrl?: string tidalUrl?: string qobuzUrl?: string nativeDsdUrl?: string credits?: Array<{ role?: string name?: string _type: 'credit' _key: string }> recordingDate?: string recordingLocation?: string recordingFormat?: 'PCM 352.8 kHz 24 bit' | 'PCM 352.8 kHz 32 bit' | 'DSD 11.2 MHz 1 bit' masteringFormat?: 'PCM 352.8 kHz 32 bit' | 'PCM 352.8 kHz 64 bit' | 'DSD 11.2 MHz 1 bit' equipment?: Array<{ type?: string name?: string _type: 'equipmentItem' _key: string }> genre?: Array< | 'earlyMusic' | 'baroque' | 'classical' | 'romantic' | 'contemporary' | 'worldMusic' | 'jazz' | 'crossover' | 'electronic' | 'minimal' | 'popRock' > instrumentation?: Array<'solo' | 'chamber' | 'ensemble' | 'orchestra' | 'vocalChoral'> artists?: Array< { _key: string } & ArtistReference > reviews?: Array<{ quote?: string author?: string _type: 'review' _key: string }> availableVariants?: Array } export type SanityImageCrop = { _type: 'sanity.imageCrop' top?: number bottom?: number left?: number right?: number } export type SanityImageHotspot = { _type: 'sanity.imageHotspot' x?: number y?: number height?: number width?: number } export type Slug = { _type: 'slug' current?: string source?: string } export type Work = { _id: string _type: 'work' _createdAt: string _updatedAt: string _rev: string title?: string composer?: ComposerReference arranger?: ComposerReference slug?: Slug description?: Array<{ children?: Array<{ marks?: Array text?: string _type: 'span' _key: string }> style?: 'normal' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' listItem?: 'bullet' | 'number' markDefs?: Array<{ href?: string _type: 'link' _key: string }> level?: number _type: 'block' _key: string }> } export type Concert = { _id: string _type: 'concert' _createdAt: string _updatedAt: string _rev: string title?: string subtitle?: string date?: string time?: string locationName?: string city?: string country?: | 'AF' | 'AL' | 'DZ' | 'AD' | 'AO' | 'AG' | 'AR' | 'AM' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CR' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FJ' | 'FI' | 'FR' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GR' | 'GD' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NZ' | 'NI' | 'NE' | 'NG' | 'KP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'QA' | 'RO' | 'RU' | 'RW' | 'KN' | 'LC' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'KR' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'YE' | 'ZM' | 'ZW' artists?: Array< { _key: string } & ArtistReference > ticketUrl?: string } export type Composer = { _id: string _type: 'composer' _createdAt: string _updatedAt: string _rev: string name?: string sortKey?: string birthYear?: number deathYear?: number slug?: Slug image?: { asset?: SanityImageAssetReference media?: unknown hotspot?: SanityImageHotspot crop?: SanityImageCrop _type: 'image' } bio?: Array<{ children?: Array<{ marks?: Array text?: string _type: 'span' _key: string }> style?: 'normal' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' listItem?: 'bullet' | 'number' markDefs?: Array<{ href?: string _type: 'link' _key: string }> level?: number _type: 'block' _key: string }> } export type Blog = { _id: string _type: 'blog' _createdAt: string _updatedAt: string _rev: string title?: string subtitle?: string featuredImage?: { asset?: SanityImageAssetReference media?: unknown hotspot?: SanityImageHotspot crop?: SanityImageCrop _type: 'image' } slug?: Slug author?: 'Brendon Heinst' | 'Maya Fridman' publishDate?: string category?: 'News' | 'Behind the Scenes' | 'Music History' | 'Tech Talk' content?: Array< | { children?: Array<{ marks?: Array text?: string _type: 'span' _key: string }> style?: 'normal' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' listItem?: 'bullet' | 'number' markDefs?: Array<{ href?: string _type: 'link' _key: string }> level?: number _type: 'block' _key: string } | { asset?: SanityImageAssetReference media?: unknown hotspot?: SanityImageHotspot crop?: SanityImageCrop alt?: string caption?: string _type: 'image' _key: string } | { url?: string _type: 'youtube' _key: string } > releases?: Array< { _key: string } & ReleaseReference > artists?: Array< { _key: string } & ArtistReference > composers?: Array< { _key: string } & ComposerReference > works?: Array< { _key: string } & WorkReference > } export type Artist = { _id: string _type: 'artist' _createdAt: string _updatedAt: string _rev: string name?: string sortKey?: string slug?: Slug role?: string image?: { asset?: SanityImageAssetReference media?: unknown hotspot?: SanityImageHotspot crop?: SanityImageCrop _type: 'image' } bio?: Array<{ children?: Array<{ marks?: Array text?: string _type: 'span' _key: string }> style?: 'normal' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' listItem?: 'bullet' | 'number' markDefs?: Array<{ href?: string _type: 'link' _key: string }> level?: number _type: 'block' _key: string }> } export type MediaTag = { _id: string _type: 'media.tag' _createdAt: string _updatedAt: string _rev: string name?: Slug } export type SanityImagePaletteSwatch = { _type: 'sanity.imagePaletteSwatch' background?: string foreground?: string population?: number title?: string } export type SanityImagePalette = { _type: 'sanity.imagePalette' darkMuted?: SanityImagePaletteSwatch lightVibrant?: SanityImagePaletteSwatch darkVibrant?: SanityImagePaletteSwatch vibrant?: SanityImagePaletteSwatch dominant?: SanityImagePaletteSwatch lightMuted?: SanityImagePaletteSwatch muted?: SanityImagePaletteSwatch } export type SanityImageDimensions = { _type: 'sanity.imageDimensions' height?: number width?: number aspectRatio?: number } export type SanityImageMetadata = { _type: 'sanity.imageMetadata' location?: Geopoint dimensions?: SanityImageDimensions palette?: SanityImagePalette lqip?: string blurHash?: string thumbHash?: string hasAlpha?: boolean isOpaque?: boolean } export type SanityFileAsset = { _id: string _type: 'sanity.fileAsset' _createdAt: string _updatedAt: string _rev: string originalFilename?: string label?: string title?: string description?: string altText?: string sha1hash?: string extension?: string mimeType?: string size?: number assetId?: string uploadId?: string path?: string url?: string source?: SanityAssetSourceData } export type SanityAssetSourceData = { _type: 'sanity.assetSourceData' name?: string id?: string url?: string } export type SanityImageAsset = { _id: string _type: 'sanity.imageAsset' _createdAt: string _updatedAt: string _rev: string originalFilename?: string label?: string title?: string description?: string altText?: string sha1hash?: string extension?: string mimeType?: string size?: number assetId?: string uploadId?: string path?: string url?: string metadata?: SanityImageMetadata source?: SanityAssetSourceData } export type Geopoint = { _type: 'geopoint' lat?: number lng?: number alt?: number } export type AllSanitySchemaTypes = | ReleaseReference | ArtistReference | ComposerReference | Settings | SanityImageAssetReference | SanityFileAssetReference | WorkReference | Release | SanityImageCrop | SanityImageHotspot | Slug | Work | Concert | Composer | Blog | Artist | MediaTag | SanityImagePaletteSwatch | SanityImagePalette | SanityImageDimensions | SanityImageMetadata | SanityFileAsset | SanityAssetSourceData | SanityImageAsset | Geopoint export declare const internalGroqTypeReferenceTo: unique symbol