UNPKG

@whop/api

Version:
1,527 lines (1,525 loc) 667 kB
import { TypedEmitter } from 'tiny-typed-emitter'; import { OAuth2Config } from '@auth/core/providers'; type Maybe$1<T> = T | null; type InputMaybe$1<T> = Maybe$1<T>; type Exact$1<T extends { [key: string]: unknown; }> = { [K in keyof T]: T[K]; }; /** All built-in and custom scalars, mapped to their actual values */ interface Scalars$1 { ID: { input: string; output: string; }; String: { input: string; output: string; }; Boolean: { input: boolean; output: boolean; }; Int: { input: number; output: number; }; Float: { input: number; output: number; }; /** * Represents non-fractional signed whole numeric values. Since the value may * exceed the size of a 32-bit integer, it's encoded as a string. */ BigInt: { input: string; output: string; }; /** * The `Decimal` scalar type represents signed double-precision fractional * values. The Decimal appears in a JSON response as a string to preserve * precision. */ Decimal: { input: string; output: string; }; /** Url to uploaded upload */ File: { input: string; output: string; }; /** Represents untyped JSON */ JSON: { input: { [key: string]: any; }; output: { [key: string]: any; }; }; /** A number - float or integer */ Number: { input: number; output: number; }; /** String removes all html tags */ SanitizedString: { input: string; output: string; }; /** A float that can be a string */ StringFloat: { input: string | number; output: string | number; }; /** A valid timestamp in seconds, transported as an integer */ Timestamp: { input: number; output: number; }; /** URL starting with http/https */ UrlString: { input: string; output: string; }; } /** Autogenerated input type of AnalyzeAttachment */ interface AnalyzeAttachmentInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID returned by the direct upload mutation */ directUploadId: Scalars$1["String"]["input"]; /** The type of media to analyze */ mediaType: Media$1; /** The parts of the multipart upload */ multipartParts?: InputMaybe$1<Array<UploadPartInput$1>>; /** The ID returned by the direct upload mutation */ multipartUploadId?: InputMaybe$1<Scalars$1["String"]["input"]>; } /** The types of records that an attachment can be attached to */ type AttachableRecords$1 = "abuse_report" | "access_pass" | "access_pass_collection" | "app" | "assessment_question" | "automated_messages_config" | "bot" | "bounty" | "bounty_submission" | "competition_prize" | "content_reward_campaign" | "content_reward_submission" | "course_lesson" | "dispute" | "dms_post" | "experience" | "forum_post" | "information_request_item" | "resolution_event_upload" | "review" | "review_report" | "user"; /** The different business types a company can be. */ type BusinessTypes$1 = /** Agency */ "agency" /** Brick And Mortar */ | "brick_and_mortar" /** Coaching */ | "coaching" /** Coaching And Courses */ | "coaching_and_courses" /** Community */ | "community" /** Course */ | "course" /** Education Program */ | "education_program" /** Events */ | "events" /** Newsletter */ | "newsletter" /** Other */ | "other" /** Paid Group */ | "paid_group" /** Physical Products */ | "physical_products" /** Saas */ | "saas" /** Software */ | "software"; /** The available types for an assessment question */ type CoursesAssessmentQuestionTypes$1 = /** Multiple choice */ "multiple_choice" /** Multiple select */ | "multiple_select" /** Short answer */ | "short_answer" /** True false */ | "true_false"; /** Autogenerated input type of CreateAssessmentQuestion */ interface CreateAssessmentQuestionInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The correct answer to the assessment question */ correctAnswer: Scalars$1["String"]["input"]; /** The ID of the lesson to create the assessment question in */ lessonId: Scalars$1["ID"]["input"]; /** The text of the question being asked */ questionText: Scalars$1["String"]["input"]; /** The type of the assessment question */ questionType: CoursesAssessmentQuestionTypes$1; } /** Autogenerated input type of CreateChapter */ interface CreateChapterInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the course to create the chapter in */ courseId: Scalars$1["ID"]["input"]; /** The title of the chapter */ title?: InputMaybe$1<Scalars$1["String"]["input"]>; } /** Autogenerated input type of CreateCourse */ interface CreateCourseInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The cover image URL of the course */ coverImage?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the experience to create the course in */ experienceId: Scalars$1["ID"]["input"]; /** The tagline of the course */ tagline?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The title of the course */ title: Scalars$1["String"]["input"]; } /** Autogenerated input type of CreateLesson */ interface CreateLessonInput$1 { /** The ID of the chapter to create the lesson in */ chapterId: Scalars$1["ID"]["input"]; /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The content of the lesson */ content?: InputMaybe$1<Scalars$1["String"]["input"]>; /** Days from course start until unlock */ daysFromCourseStartUntilUnlock?: InputMaybe$1<Scalars$1["Int"]["input"]>; /** The type of the lesson */ lessonType: LessonTypes$1; /** The title of the lesson */ title?: InputMaybe$1<Scalars$1["String"]["input"]>; } /** The available currencies on the platform */ type Currencies$1 = "aed" | "all" | "amd" | "ape" | "ars" | "aud" | "bam" | "bgn" | "bhd" | "bob" | "brl" | "bsd" | "btc" | "cad" | "chf" | "clp" | "cop" | "crc" | "czk" | "dkk" | "dop" | "dzd" | "egp" | "etb" | "eth" | "eur" | "gbp" | "ghs" | "gmd" | "gtq" | "gyd" | "hkd" | "huf" | "idr" | "ils" | "inr" | "jmd" | "jod" | "jpy" | "kes" | "khr" | "krw" | "kwd" | "lkr" | "mad" | "mdl" | "mga" | "mkd" | "mnt" | "mop" | "mur" | "mxn" | "myr" | "nad" | "ngn" | "nok" | "nzd" | "omr" | "pen" | "php" | "pkr" | "pln" | "pyg" | "qar" | "ron" | "rsd" | "rub" | "rwf" | "sar" | "sek" | "sgd" | "thb" | "tnd" | "try" | "ttd" | "twd" | "tzs" | "usd" | "uyu" | "uzs" | "vnd" | "xcd" | "xof" | "zar"; /** Autogenerated input type of DeleteAssessmentQuestionImage */ interface DeleteAssessmentQuestionImageInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the attachment to delete */ id: Scalars$1["ID"]["input"]; } /** Autogenerated input type of DeleteChapter */ interface DeleteChapterInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the chapter to delete */ id: Scalars$1["ID"]["input"]; } /** Autogenerated input type of DeleteLessonAttachment */ interface DeleteLessonAttachmentInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the attachment to delete */ id: Scalars$1["ID"]["input"]; } /** Autogenerated input type of DeleteLesson */ interface DeleteLessonInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the lesson to delete */ id: Scalars$1["ID"]["input"]; } /** Autogenerated input type of DirectUpload */ interface DirectUploadInput$1 { /** The size of the file in bytes */ byteSize?: InputMaybe$1<Scalars$1["Int"]["input"]>; /** The size of the file in bytes */ byteSizeV2?: InputMaybe$1<Scalars$1["BigInt"]["input"]>; /** The checksum of the file */ checksum: Scalars$1["String"]["input"]; /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The content type of the file */ contentType?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The filename of the file */ filename: Scalars$1["String"]["input"]; /** The metadata of the file */ metadata?: InputMaybe$1<Scalars$1["JSON"]["input"]>; /** Whether or not to use multipart upload. The file must be larger than 5MB */ multipart?: InputMaybe$1<Scalars$1["Boolean"]["input"]>; /** The type of record to attach the file to */ record: AttachableRecords$1; } /** The direction of the sort. */ type Direction$1 = "asc" | "desc"; /** The types of post */ type DmsPostTypes$1 = "automated" | "regular" | "system"; /** The different industry types a company can be in. */ type IndustryTypes$1 = /** Accessories */ "accessories" /** Agencies */ | "agencies" /** Ai */ | "ai" /** Ai Agency */ | "ai_agency" /** Amazon Fba */ | "amazon_fba" /** Auto Repair Shop */ | "auto_repair_shop" /** Beauty And Personal Care */ | "beauty_and_personal_care" /** Bootcamps */ | "bootcamps" /** Business */ | "business" /** Careers */ | "careers" /** Clipping */ | "clipping" /** Clipping Agency */ | "clipping_agency" /** Clothing */ | "clothing" /** Coaching Agency */ | "coaching_agency" /** Coffee Shop */ | "coffee_shop" /** Concerts */ | "concerts" /** Convention */ | "convention" /** Customer Support Agency */ | "customer_support_agency" /** Dating */ | "dating" /** Design Agency */ | "design_agency" /** Development Agency */ | "development_agency" /** Ecommerce */ | "ecommerce" /** Electronics And Gadgets */ | "electronics_and_gadgets" /** Fitness */ | "fitness" /** Fitness Gear */ | "fitness_gear" /** Food And Beverages */ | "food_and_beverages" /** Gym */ | "gym" /** Health And Wellness */ | "health_and_wellness" /** Home Goods */ | "home_goods" /** Home Services */ | "home_services" /** Hotel Lodging */ | "hotel_lodging" /** Kindle Book Publishing */ | "kindle_book_publishing" /** Marketing Agency */ | "marketing_agency" /** Masterminds */ | "masterminds" /** Medical Dentist Office */ | "medical_dentist_office" /** Meetups */ | "meetups" /** Other */ | "other" /** Parties */ | "parties" /** Personal Development */ | "personal_development" /** Personal Finance */ | "personal_finance" /** Public Speaking */ | "public_speaking" /** Real Estate */ | "real_estate" /** Recruiting Agency */ | "recruiting_agency" /** Reselling */ | "reselling" /** Restaurant */ | "restaurant" /** Retail Store */ | "retail_store" /** Sales */ | "sales" /** Sales Agency */ | "sales_agency" /** Salon Spa */ | "salon_spa" /** Social Media */ | "social_media" /** Software */ | "software" /** Spirituality */ | "spirituality" /** Sports Betting */ | "sports_betting" /** Supplements */ | "supplements" /** Trading */ | "trading" /** Travel */ | "travel" /** Vas */ | "vas" /** Video Games */ | "video_games" /** Webinars */ | "webinars"; /** The available languages for a course */ type Languages$1 = /** Bg */ "bg" /** Ca */ | "ca" /** Cs */ | "cs" /** Da */ | "da" /** De */ | "de" /** El */ | "el" /** En */ | "en" /** Es */ | "es" /** Fi */ | "fi" /** Fr */ | "fr" /** Hr */ | "hr" /** It */ | "it" /** Nl */ | "nl" /** No */ | "no" /** Pl */ | "pl" /** Pt */ | "pt" /** Ro */ | "ro" /** Ru */ | "ru" /** Sk */ | "sk" /** Sv */ | "sv" /** Tr */ | "tr" /** Uk */ | "uk"; /** The available types for a lesson */ type LessonTypes$1 = /** Knowledge check */ "knowledge_check" /** Multi */ | "multi" /** Pdf */ | "pdf" /** Quiz */ | "quiz" /** Text */ | "text" /** Video */ | "video"; /** The available visibilities for a lesson. Determines how / whether a lesson is visible to users. */ type LessonVisibilities$1 = /** Hidden */ "hidden" /** Visible */ | "visible"; /** Autogenerated input type of MarkLessonAsCompleted */ interface MarkLessonAsCompletedInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the lesson to mark as completed */ lessonId: Scalars$1["ID"]["input"]; } type Media$1 = "audio" | "image" | "other" | "video"; /** Autogenerated input type of MoveCourse */ interface MoveCourseInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the course to move */ courseId: Scalars$1["ID"]["input"]; /** The experience to move the course into */ destinationExperienceId: Scalars$1["ID"]["input"]; } /** Mux asset statuses */ type MuxAssetStatuses$1 = /** Created */ "created" /** Ready */ | "ready" /** Uploading */ | "uploading"; /** The type of plan that can be attached to an access pass */ type PlanTypes$1 = /** One Time */ "one_time" /** Renewal */ | "renewal"; /** The methods of how a plan can be released (including raffles and waitlists). */ type ReleaseMethod$1 = /** Buy Now */ "buy_now" /** Raffle */ | "raffle" /** Waitlist */ | "waitlist"; /** Autogenerated input type of UpdateChapter */ interface UpdateChapterInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the chapter to update */ id: Scalars$1["ID"]["input"]; /** The title of the chapter */ title: Scalars$1["String"]["input"]; } /** Autogenerated input type of UpdateChapterOrder */ interface UpdateChapterOrderInput$1 { /** The ID of the chapter to place this chapter below */ belowChapterId?: InputMaybe$1<Scalars$1["ID"]["input"]>; /** The ID of the chapter to reorder */ chapterId: Scalars$1["ID"]["input"]; /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; } /** Autogenerated input type of UpdateLesson */ interface UpdateLessonInput$1 { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The content of the lesson */ content?: InputMaybe$1<Scalars$1["String"]["input"]>; /** Days from course start until unlock */ daysFromCourseStartUntilUnlock?: InputMaybe$1<Scalars$1["Int"]["input"]>; /** The ID of the lesson to update */ id: Scalars$1["ID"]["input"]; /** The type of the lesson */ lessonType?: InputMaybe$1<LessonTypes$1>; /** The ID of the Mux asset to attach to this lesson */ muxAssetId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The title of the lesson */ title?: InputMaybe$1<Scalars$1["String"]["input"]>; /** Determines how / whether this lesson is visible to users. */ visibility?: InputMaybe$1<LessonVisibilities$1>; } /** Autogenerated input type of UpdateLessonOrder */ interface UpdateLessonOrderInput$1 { /** The ID of the lesson to place this lesson below */ belowLessonId?: InputMaybe$1<Scalars$1["ID"]["input"]>; /** The ID of the chapter to move the lesson to */ chapterId: Scalars$1["ID"]["input"]; /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe$1<Scalars$1["String"]["input"]>; /** The ID of the lesson to reorder */ lessonId: Scalars$1["ID"]["input"]; } interface UploadPartInput$1 { /** The ETag of the part */ etag: Scalars$1["String"]["input"]; /** The part number of the part */ partNumber: Scalars$1["Int"]["input"]; } /** The different types of upsells an experience can have. */ type UpsellTypes$1 = /** After Checkout */ "after_checkout" /** Before Checkout */ | "before_checkout" /** Only In Whop */ | "only_in_whop"; /** Visibility of a resource */ type Visibility$1 = /** Archived */ "archived" /** Hidden */ | "hidden" /** Quick Link */ | "quick_link" /** Visible */ | "visible"; type Attachment_AudioAttachment_Fragment$1 = { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; }; type Attachment_ImageAttachment_Fragment$1 = { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; }; type Attachment_OtherAttachment_Fragment$1 = { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; }; type Attachment_VideoAttachment_Fragment$1 = { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; }; type AttachmentFragment$1 = Attachment_AudioAttachment_Fragment$1 | Attachment_ImageAttachment_Fragment$1 | Attachment_OtherAttachment_Fragment$1 | Attachment_VideoAttachment_Fragment$1; type GetAccessPassQueryVariables$1 = Exact$1<{ accessPassId: Scalars$1["ID"]["input"]; }>; type GetAccessPassQuery$1 = { __typename?: "PublicQuery"; accessPass: { __typename?: "PublicAccessPass"; headline?: string | null; reviewsAverage: number; id: string; title: string; shortenedDescription?: string | null; verified: boolean; visibility: Visibility$1; route: string; activeUsersCount: number; bannerImage?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; company: { __typename?: "PublicCompany"; id: string; title: string; route: string; logo?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; bannerImage?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; }; ownerUser: { __typename?: "PublicProfileUser"; id: string; name?: string | null; username: string; phoneVerified: boolean; city?: string | null; country?: string | null; profilePicture?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; }; galleryImages: { __typename?: "AttachmentInterfaceConnection"; nodes?: Array<{ __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null> | null; }; logo?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; }; }; type GetAttachmentQueryVariables$1 = Exact$1<{ id: Scalars$1["ID"]["input"]; }>; type GetAttachmentQuery$1 = { __typename?: "PublicQuery"; attachment: { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; }; }; type ProcessAttachmentMutationVariables$1 = Exact$1<{ input: AnalyzeAttachmentInput$1; }>; type ProcessAttachmentMutation$1 = { __typename?: "PublicMutation"; mediaAnalyzeAttachment?: boolean | null; }; type UploadMediaMutationVariables$1 = Exact$1<{ input: DirectUploadInput$1; }>; type UploadMediaMutation$1 = { __typename?: "PublicMutation"; mediaDirectUpload?: { __typename?: "DirectUpload"; id: string; headers: { [key: string]: any; }; uploadUrl?: string | null; multipartUploadId?: string | null; multipartUploadUrls?: Array<{ __typename?: "MultipartUrl"; partNumber: number; url: string; }> | null; } | null; }; type GetCompanyQueryVariables$1 = Exact$1<{ companyId: Scalars$1["ID"]["input"]; }>; type GetCompanyQuery$1 = { __typename?: "PublicQuery"; company: { __typename?: "PublicCompany"; industryType?: IndustryTypes$1 | null; businessType?: BusinessTypes$1 | null; id: string; title: string; route: string; logo?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; bannerImage?: { __typename?: "AudioAttachment"; sourceUrl?: string | null; } | { __typename?: "ImageAttachment"; sourceUrl?: string | null; } | { __typename?: "OtherAttachment"; sourceUrl?: string | null; } | { __typename?: "VideoAttachment"; sourceUrl?: string | null; } | null; }; }; type CreateAssessmentQuestionMutationVariables$1 = Exact$1<{ input: CreateAssessmentQuestionInput$1; }>; type CreateAssessmentQuestionMutation$1 = { __typename?: "PublicMutation"; createAssessmentQuestion?: { __typename?: "AssessmentQuestion"; id: string; correctAnswer: string; order: number; questionText: string; questionType: CoursesAssessmentQuestionTypes$1; image?: { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null; options: Array<{ __typename?: "AssessmentQuestionOption"; id: string; isCorrect: boolean; optionText: string; order: number; }>; } | null; }; type CreateChapterMutationVariables$1 = Exact$1<{ input: CreateChapterInput$1; }>; type CreateChapterMutation$1 = { __typename?: "PublicMutation"; createChapter?: { __typename?: "Chapter"; id: string; title: string; order: number; lessons: Array<{ __typename?: "Lesson"; id: string; lessonType: LessonTypes$1; title: string; order: number; visibility: LessonVisibilities$1; daysFromCourseStartUntilUnlock?: number | null; content?: string | null; muxAsset?: { __typename?: "MuxAsset"; id: string; muxAssetId?: string | null; playbackId?: string | null; signedPlaybackId?: string | null; signedThumbnailPlaybackToken?: string | null; signedVideoPlaybackToken?: string | null; signedStoryboardPlaybackToken?: string | null; durationSeconds?: number | null; status: MuxAssetStatuses$1; finishedUploadingAt?: number | null; } | null; }>; } | null; }; type CreateCourseMutationVariables$1 = Exact$1<{ input: CreateCourseInput$1; }>; type CreateCourseMutation$1 = { __typename?: "PublicMutation"; createCourse?: { __typename?: "Course"; certificateAfterCompletionEnabled?: boolean | null; coverImage?: string | null; description?: string | null; id: string; language: Languages$1; requireCompletingLessonsInOrder: boolean; tagline?: string | null; title?: string | null; videoProtectionEnabled: boolean; chapters: Array<{ __typename?: "Chapter"; id: string; title: string; order: number; lessons: Array<{ __typename?: "Lesson"; id: string; lessonType: LessonTypes$1; title: string; order: number; visibility: LessonVisibilities$1; daysFromCourseStartUntilUnlock?: number | null; content?: string | null; muxAsset?: { __typename?: "MuxAsset"; id: string; muxAssetId?: string | null; playbackId?: string | null; signedPlaybackId?: string | null; signedThumbnailPlaybackToken?: string | null; signedVideoPlaybackToken?: string | null; signedStoryboardPlaybackToken?: string | null; durationSeconds?: number | null; status: MuxAssetStatuses$1; finishedUploadingAt?: number | null; } | null; }>; }>; } | null; }; type CreateLessonMutationVariables$1 = Exact$1<{ input: CreateLessonInput$1; }>; type CreateLessonMutation$1 = { __typename?: "PublicMutation"; createLesson?: { __typename?: "Lesson"; id: string; lessonType: LessonTypes$1; title: string; order: number; visibility: LessonVisibilities$1; content?: string | null; daysFromCourseStartUntilUnlock?: number | null; muxAsset?: { __typename?: "MuxAsset"; id: string; muxAssetId?: string | null; playbackId?: string | null; signedPlaybackId?: string | null; signedThumbnailPlaybackToken?: string | null; signedVideoPlaybackToken?: string | null; signedStoryboardPlaybackToken?: string | null; durationSeconds?: number | null; status: MuxAssetStatuses$1; finishedUploadingAt?: number | null; } | null; assessmentQuestions: Array<{ __typename?: "AssessmentQuestion"; id: string; correctAnswer: string; order: number; questionText: string; questionType: CoursesAssessmentQuestionTypes$1; image?: { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null; options: Array<{ __typename?: "AssessmentQuestionOption"; id: string; isCorrect: boolean; optionText: string; order: number; }>; }>; attachments: { __typename?: "AttachmentInterfaceConnection"; nodes?: Array<{ __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null> | null; }; mainPdf?: { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null; } | null; }; type DeleteAssessmentQuestionImageMutationVariables$1 = Exact$1<{ input: DeleteAssessmentQuestionImageInput$1; }>; type DeleteAssessmentQuestionImageMutation$1 = { __typename?: "PublicMutation"; deleteAssessmentQuestionImage?: boolean | null; }; type DeleteChapterMutationVariables$1 = Exact$1<{ input: DeleteChapterInput$1; }>; type DeleteChapterMutation$1 = { __typename?: "PublicMutation"; deleteChapter?: boolean | null; }; type DeleteLessonAttachmentMutationVariables$1 = Exact$1<{ input: DeleteLessonAttachmentInput$1; }>; type DeleteLessonAttachmentMutation$1 = { __typename?: "PublicMutation"; deleteLessonAttachment?: boolean | null; }; type DeleteLessonMutationVariables$1 = Exact$1<{ input: DeleteLessonInput$1; }>; type DeleteLessonMutation$1 = { __typename?: "PublicMutation"; deleteLesson?: boolean | null; }; type GetCourseQueryVariables$1 = Exact$1<{ courseId: Scalars$1["ID"]["input"]; }>; type GetCourseQuery$1 = { __typename?: "PublicQuery"; course?: { __typename?: "Course"; certificateAfterCompletionEnabled?: boolean | null; coverImage?: string | null; description?: string | null; id: string; language: Languages$1; requireCompletingLessonsInOrder: boolean; tagline?: string | null; title?: string | null; videoProtectionEnabled: boolean; chapters: Array<{ __typename?: "Chapter"; id: string; title: string; order: number; lessons: Array<{ __typename?: "Lesson"; id: string; lessonType: LessonTypes$1; title: string; order: number; visibility: LessonVisibilities$1; daysFromCourseStartUntilUnlock?: number | null; content?: string | null; muxAsset?: { __typename?: "MuxAsset"; id: string; muxAssetId?: string | null; playbackId?: string | null; signedPlaybackId?: string | null; signedThumbnailPlaybackToken?: string | null; signedVideoPlaybackToken?: string | null; signedStoryboardPlaybackToken?: string | null; durationSeconds?: number | null; status: MuxAssetStatuses$1; finishedUploadingAt?: number | null; } | null; }>; }>; } | null; }; type GetLessonQueryVariables$1 = Exact$1<{ courseId: Scalars$1["ID"]["input"]; lessonId: Scalars$1["ID"]["input"]; }>; type GetLessonQuery$1 = { __typename?: "PublicQuery"; course?: { __typename?: "Course"; lesson?: { __typename?: "Lesson"; id: string; lessonType: LessonTypes$1; title: string; order: number; visibility: LessonVisibilities$1; content?: string | null; daysFromCourseStartUntilUnlock?: number | null; muxAsset?: { __typename?: "MuxAsset"; id: string; muxAssetId?: string | null; playbackId?: string | null; signedPlaybackId?: string | null; signedThumbnailPlaybackToken?: string | null; signedVideoPlaybackToken?: string | null; signedStoryboardPlaybackToken?: string | null; durationSeconds?: number | null; status: MuxAssetStatuses$1; finishedUploadingAt?: number | null; } | null; assessmentQuestions: Array<{ __typename?: "AssessmentQuestion"; id: string; correctAnswer: string; order: number; questionText: string; questionType: CoursesAssessmentQuestionTypes$1; image?: { __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "OtherAttachment"; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "VideoAttachment"; height?: number | null; width?: number | null; duration?: number | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; preview: { __typename?: "AttachmentSource"; url: string; }; source: { __typename?: "AttachmentSource"; url: string; }; } | null; options: Array<{ __typename?: "AssessmentQuestionOption"; id: string; isCorrect: boolean; optionText: string; order: number; }>; }>; attachments: { __typename?: "AttachmentInterfaceConnection"; nodes?: Array<{ __typename: "AudioAttachment"; duration?: number | null; waveformUrl?: string | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null; source: { __typename?: "AttachmentSource"; url: string; }; } | { __typename: "ImageAttachment"; height?: number | null; width?: number | null; blurhash?: string | null; aspectRatio?: number | null; id: string; signedId?: string | null; analyzed: boolean; byteSizeV2?: string | null; filename?: string | null; contentType?: string | null;