/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The format for episodes for the podcast channel. This parameter only takes effect if podcasting is enabled for the channel. */ export const PutChannelsChannelHashedIdEpisodeFormat = { Episodic: "episodic", EpisodicWithSeasons: "episodic_with_seasons", Serial: "serial", } as const; /** * The format for episodes for the podcast channel. This parameter only takes effect if podcasting is enabled for the channel. */ export type PutChannelsChannelHashedIdEpisodeFormat = ClosedEnum< typeof PutChannelsChannelHashedIdEpisodeFormat >; /** * The primary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export const PutChannelsChannelHashedIdCategory1 = { ArtsGreaterThanBooks: "arts > books", ArtsGreaterThanDesign: "arts > design", ArtsGreaterThanFashionAndBeauty: "arts > fashion_and_beauty", ArtsGreaterThanFood: "arts > food", ArtsGreaterThanPerformingArts: "arts > performing_arts", ArtsGreaterThanVisualArts: "arts > visual_arts", BusinessGreaterThanCareers: "business > careers", BusinessGreaterThanEntrepreneurship: "business > entrepreneurship", BusinessGreaterThanInvesting: "business > investing", BusinessGreaterThanManagement: "business > management", BusinessGreaterThanMarketing: "business > marketing", BusinessGreaterThanNonProfit: "business > non_profit", ComedyGreaterThanComedyInterviews: "comedy > comedy_interviews", ComedyGreaterThanImprov: "comedy > improv", ComedyGreaterThanStandUp: "comedy > stand_up", EducationGreaterThanCourses: "education > courses", EducationGreaterThanHowTo: "education > how_to", EducationGreaterThanLanguageLearning: "education > language_learning", EducationGreaterThanSelfImprovement: "education > self_improvement", FictionGreaterThanComedyFiction: "fiction > comedy_fiction", FictionGreaterThanDrama: "fiction > drama", FictionGreaterThanScienceFiction: "fiction > science_fiction", HealthAndFitnessGreaterThanAlternativeHealth: "health_and_fitness > alternative_health", HealthAndFitnessGreaterThanFitness: "health_and_fitness > fitness", HealthAndFitnessGreaterThanMedicine: "health_and_fitness > medicine", HealthAndFitnessGreaterThanMentalHealth: "health_and_fitness > mental_health", HealthAndFitnessGreaterThanNutrition: "health_and_fitness > nutrition", HealthAndFitnessGreaterThanSexuality: "health_and_fitness > sexuality", KidsAndFamilyGreaterThanEducationForKids: "kids_and_family > education_for_kids", KidsAndFamilyGreaterThanParenting: "kids_and_family > parenting", KidsAndFamilyGreaterThanPetsAndAnimals: "kids_and_family > pets_and_animals", KidsAndFamilyGreaterThanStoriesForKids: "kids_and_family > stories_for_kids", LeisureGreaterThanAnimationAndManga: "leisure > animation_and_manga", LeisureGreaterThanAutomotive: "leisure > automotive", LeisureGreaterThanAviation: "leisure > aviation", LeisureGreaterThanCrafts: "leisure > crafts", LeisureGreaterThanGames: "leisure > games", LeisureGreaterThanHobbies: "leisure > hobbies", LeisureGreaterThanHomeAndGarden: "leisure > home_and_garden", LeisureGreaterThanVideoGames: "leisure > video_games", MusicGreaterThanMusicCommentary: "music > music_commentary", MusicGreaterThanMusicHistory: "music > music_history", MusicGreaterThanMusicInterviews: "music > music_interviews", NewsGreaterThanBusinessNews: "news > business_news", NewsGreaterThanDailyNews: "news > daily_news", NewsGreaterThanEntertainmentNews: "news > entertainment_news", NewsGreaterThanNewsCommentary: "news > news_commentary", NewsGreaterThanPolitics: "news > politics", NewsGreaterThanSportsNews: "news > sports_news", NewsGreaterThanTechNews: "news > tech_news", ReligionAndSpiritualityGreaterThanBuddhism: "religion_and_spirituality > buddhism", ReligionAndSpiritualityGreaterThanChristianity: "religion_and_spirituality > christianity", ReligionAndSpiritualityGreaterThanHinduism: "religion_and_spirituality > hinduism", ReligionAndSpiritualityGreaterThanIslam: "religion_and_spirituality > islam", ReligionAndSpiritualityGreaterThanJudaism: "religion_and_spirituality > judaism", ReligionAndSpiritualityGreaterThanReligion: "religion_and_spirituality > religion", ReligionAndSpiritualityGreaterThanSpirituality: "religion_and_spirituality > spirituality", ScienceGreaterThanAstronomy: "science > astronomy", ScienceGreaterThanChemistry: "science > chemistry", ScienceGreaterThanEarthSciences: "science > earth_sciences", ScienceGreaterThanLifeSciences: "science > life_sciences", ScienceGreaterThanMathematics: "science > mathematics", ScienceGreaterThanNaturalSciences: "science > natural_sciences", ScienceGreaterThanNature: "science > nature", ScienceGreaterThanPhysics: "science > physics", ScienceGreaterThanSocialSciences: "science > social_sciences", SocietyAndCultureGreaterThanDocumentary: "society_and_culture > documentary", SocietyAndCultureGreaterThanPersonalJournals: "society_and_culture > personal_journals", SocietyAndCultureGreaterThanPhilosophy: "society_and_culture > philosophy", SocietyAndCultureGreaterThanPlacesAndTravel: "society_and_culture > places_and_travel", SocietyAndCultureGreaterThanRelationships: "society_and_culture > relationships", SportsGreaterThanBaseball: "sports > baseball", SportsGreaterThanBasketball: "sports > basketball", SportsGreaterThanCricket: "sports > cricket", SportsGreaterThanFantasySports: "sports > fantasy_sports", SportsGreaterThanFootball: "sports > football", SportsGreaterThanGolf: "sports > golf", SportsGreaterThanHockey: "sports > hockey", SportsGreaterThanRugby: "sports > rugby", SportsGreaterThanRunning: "sports > running", SportsGreaterThanSoccer: "sports > soccer", SportsGreaterThanSwimming: "sports > swimming", SportsGreaterThanTennis: "sports > tennis", SportsGreaterThanVolleyball: "sports > volleyball", SportsGreaterThanWilderness: "sports > wilderness", SportsGreaterThanWrestling: "sports > wrestling", TvAndFilmGreaterThanAfterShows: "tv_and_film > after_shows", TvAndFilmGreaterThanFilmHistory: "tv_and_film > film_history", TvAndFilmGreaterThanFilmInterviews: "tv_and_film > film_interviews", TvAndFilmGreaterThanFilmReviews: "tv_and_film > film_reviews", TvAndFilmGreaterThanTvReviews: "tv_and_film > tv_reviews", } as const; /** * The primary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export type PutChannelsChannelHashedIdCategory1 = ClosedEnum< typeof PutChannelsChannelHashedIdCategory1 >; /** * The secondary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export const PutChannelsChannelHashedIdCategory2 = { ArtsGreaterThanBooks: "arts > books", ArtsGreaterThanDesign: "arts > design", ArtsGreaterThanFashionAndBeauty: "arts > fashion_and_beauty", ArtsGreaterThanFood: "arts > food", ArtsGreaterThanPerformingArts: "arts > performing_arts", ArtsGreaterThanVisualArts: "arts > visual_arts", BusinessGreaterThanCareers: "business > careers", BusinessGreaterThanEntrepreneurship: "business > entrepreneurship", BusinessGreaterThanInvesting: "business > investing", BusinessGreaterThanManagement: "business > management", BusinessGreaterThanMarketing: "business > marketing", BusinessGreaterThanNonProfit: "business > non_profit", ComedyGreaterThanComedyInterviews: "comedy > comedy_interviews", ComedyGreaterThanImprov: "comedy > improv", ComedyGreaterThanStandUp: "comedy > stand_up", EducationGreaterThanCourses: "education > courses", EducationGreaterThanHowTo: "education > how_to", EducationGreaterThanLanguageLearning: "education > language_learning", EducationGreaterThanSelfImprovement: "education > self_improvement", FictionGreaterThanComedyFiction: "fiction > comedy_fiction", FictionGreaterThanDrama: "fiction > drama", FictionGreaterThanScienceFiction: "fiction > science_fiction", HealthAndFitnessGreaterThanAlternativeHealth: "health_and_fitness > alternative_health", HealthAndFitnessGreaterThanFitness: "health_and_fitness > fitness", HealthAndFitnessGreaterThanMedicine: "health_and_fitness > medicine", HealthAndFitnessGreaterThanMentalHealth: "health_and_fitness > mental_health", HealthAndFitnessGreaterThanNutrition: "health_and_fitness > nutrition", HealthAndFitnessGreaterThanSexuality: "health_and_fitness > sexuality", KidsAndFamilyGreaterThanEducationForKids: "kids_and_family > education_for_kids", KidsAndFamilyGreaterThanParenting: "kids_and_family > parenting", KidsAndFamilyGreaterThanPetsAndAnimals: "kids_and_family > pets_and_animals", KidsAndFamilyGreaterThanStoriesForKids: "kids_and_family > stories_for_kids", LeisureGreaterThanAnimationAndManga: "leisure > animation_and_manga", LeisureGreaterThanAutomotive: "leisure > automotive", LeisureGreaterThanAviation: "leisure > aviation", LeisureGreaterThanCrafts: "leisure > crafts", LeisureGreaterThanGames: "leisure > games", LeisureGreaterThanHobbies: "leisure > hobbies", LeisureGreaterThanHomeAndGarden: "leisure > home_and_garden", LeisureGreaterThanVideoGames: "leisure > video_games", MusicGreaterThanMusicCommentary: "music > music_commentary", MusicGreaterThanMusicHistory: "music > music_history", MusicGreaterThanMusicInterviews: "music > music_interviews", NewsGreaterThanBusinessNews: "news > business_news", NewsGreaterThanDailyNews: "news > daily_news", NewsGreaterThanEntertainmentNews: "news > entertainment_news", NewsGreaterThanNewsCommentary: "news > news_commentary", NewsGreaterThanPolitics: "news > politics", NewsGreaterThanSportsNews: "news > sports_news", NewsGreaterThanTechNews: "news > tech_news", ReligionAndSpiritualityGreaterThanBuddhism: "religion_and_spirituality > buddhism", ReligionAndSpiritualityGreaterThanChristianity: "religion_and_spirituality > christianity", ReligionAndSpiritualityGreaterThanHinduism: "religion_and_spirituality > hinduism", ReligionAndSpiritualityGreaterThanIslam: "religion_and_spirituality > islam", ReligionAndSpiritualityGreaterThanJudaism: "religion_and_spirituality > judaism", ReligionAndSpiritualityGreaterThanReligion: "religion_and_spirituality > religion", ReligionAndSpiritualityGreaterThanSpirituality: "religion_and_spirituality > spirituality", ScienceGreaterThanAstronomy: "science > astronomy", ScienceGreaterThanChemistry: "science > chemistry", ScienceGreaterThanEarthSciences: "science > earth_sciences", ScienceGreaterThanLifeSciences: "science > life_sciences", ScienceGreaterThanMathematics: "science > mathematics", ScienceGreaterThanNaturalSciences: "science > natural_sciences", ScienceGreaterThanNature: "science > nature", ScienceGreaterThanPhysics: "science > physics", ScienceGreaterThanSocialSciences: "science > social_sciences", SocietyAndCultureGreaterThanDocumentary: "society_and_culture > documentary", SocietyAndCultureGreaterThanPersonalJournals: "society_and_culture > personal_journals", SocietyAndCultureGreaterThanPhilosophy: "society_and_culture > philosophy", SocietyAndCultureGreaterThanPlacesAndTravel: "society_and_culture > places_and_travel", SocietyAndCultureGreaterThanRelationships: "society_and_culture > relationships", SportsGreaterThanBaseball: "sports > baseball", SportsGreaterThanBasketball: "sports > basketball", SportsGreaterThanCricket: "sports > cricket", SportsGreaterThanFantasySports: "sports > fantasy_sports", SportsGreaterThanFootball: "sports > football", SportsGreaterThanGolf: "sports > golf", SportsGreaterThanHockey: "sports > hockey", SportsGreaterThanRugby: "sports > rugby", SportsGreaterThanRunning: "sports > running", SportsGreaterThanSoccer: "sports > soccer", SportsGreaterThanSwimming: "sports > swimming", SportsGreaterThanTennis: "sports > tennis", SportsGreaterThanVolleyball: "sports > volleyball", SportsGreaterThanWilderness: "sports > wilderness", SportsGreaterThanWrestling: "sports > wrestling", TvAndFilmGreaterThanAfterShows: "tv_and_film > after_shows", TvAndFilmGreaterThanFilmHistory: "tv_and_film > film_history", TvAndFilmGreaterThanFilmInterviews: "tv_and_film > film_interviews", TvAndFilmGreaterThanFilmReviews: "tv_and_film > film_reviews", TvAndFilmGreaterThanTvReviews: "tv_and_film > tv_reviews", } as const; /** * The secondary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export type PutChannelsChannelHashedIdCategory2 = ClosedEnum< typeof PutChannelsChannelHashedIdCategory2 >; /** * The third category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export const PutChannelsChannelHashedIdCategory3 = { ArtsGreaterThanBooks: "arts > books", ArtsGreaterThanDesign: "arts > design", ArtsGreaterThanFashionAndBeauty: "arts > fashion_and_beauty", ArtsGreaterThanFood: "arts > food", ArtsGreaterThanPerformingArts: "arts > performing_arts", ArtsGreaterThanVisualArts: "arts > visual_arts", BusinessGreaterThanCareers: "business > careers", BusinessGreaterThanEntrepreneurship: "business > entrepreneurship", BusinessGreaterThanInvesting: "business > investing", BusinessGreaterThanManagement: "business > management", BusinessGreaterThanMarketing: "business > marketing", BusinessGreaterThanNonProfit: "business > non_profit", ComedyGreaterThanComedyInterviews: "comedy > comedy_interviews", ComedyGreaterThanImprov: "comedy > improv", ComedyGreaterThanStandUp: "comedy > stand_up", EducationGreaterThanCourses: "education > courses", EducationGreaterThanHowTo: "education > how_to", EducationGreaterThanLanguageLearning: "education > language_learning", EducationGreaterThanSelfImprovement: "education > self_improvement", FictionGreaterThanComedyFiction: "fiction > comedy_fiction", FictionGreaterThanDrama: "fiction > drama", FictionGreaterThanScienceFiction: "fiction > science_fiction", HealthAndFitnessGreaterThanAlternativeHealth: "health_and_fitness > alternative_health", HealthAndFitnessGreaterThanFitness: "health_and_fitness > fitness", HealthAndFitnessGreaterThanMedicine: "health_and_fitness > medicine", HealthAndFitnessGreaterThanMentalHealth: "health_and_fitness > mental_health", HealthAndFitnessGreaterThanNutrition: "health_and_fitness > nutrition", HealthAndFitnessGreaterThanSexuality: "health_and_fitness > sexuality", KidsAndFamilyGreaterThanEducationForKids: "kids_and_family > education_for_kids", KidsAndFamilyGreaterThanParenting: "kids_and_family > parenting", KidsAndFamilyGreaterThanPetsAndAnimals: "kids_and_family > pets_and_animals", KidsAndFamilyGreaterThanStoriesForKids: "kids_and_family > stories_for_kids", LeisureGreaterThanAnimationAndManga: "leisure > animation_and_manga", LeisureGreaterThanAutomotive: "leisure > automotive", LeisureGreaterThanAviation: "leisure > aviation", LeisureGreaterThanCrafts: "leisure > crafts", LeisureGreaterThanGames: "leisure > games", LeisureGreaterThanHobbies: "leisure > hobbies", LeisureGreaterThanHomeAndGarden: "leisure > home_and_garden", LeisureGreaterThanVideoGames: "leisure > video_games", MusicGreaterThanMusicCommentary: "music > music_commentary", MusicGreaterThanMusicHistory: "music > music_history", MusicGreaterThanMusicInterviews: "music > music_interviews", NewsGreaterThanBusinessNews: "news > business_news", NewsGreaterThanDailyNews: "news > daily_news", NewsGreaterThanEntertainmentNews: "news > entertainment_news", NewsGreaterThanNewsCommentary: "news > news_commentary", NewsGreaterThanPolitics: "news > politics", NewsGreaterThanSportsNews: "news > sports_news", NewsGreaterThanTechNews: "news > tech_news", ReligionAndSpiritualityGreaterThanBuddhism: "religion_and_spirituality > buddhism", ReligionAndSpiritualityGreaterThanChristianity: "religion_and_spirituality > christianity", ReligionAndSpiritualityGreaterThanHinduism: "religion_and_spirituality > hinduism", ReligionAndSpiritualityGreaterThanIslam: "religion_and_spirituality > islam", ReligionAndSpiritualityGreaterThanJudaism: "religion_and_spirituality > judaism", ReligionAndSpiritualityGreaterThanReligion: "religion_and_spirituality > religion", ReligionAndSpiritualityGreaterThanSpirituality: "religion_and_spirituality > spirituality", ScienceGreaterThanAstronomy: "science > astronomy", ScienceGreaterThanChemistry: "science > chemistry", ScienceGreaterThanEarthSciences: "science > earth_sciences", ScienceGreaterThanLifeSciences: "science > life_sciences", ScienceGreaterThanMathematics: "science > mathematics", ScienceGreaterThanNaturalSciences: "science > natural_sciences", ScienceGreaterThanNature: "science > nature", ScienceGreaterThanPhysics: "science > physics", ScienceGreaterThanSocialSciences: "science > social_sciences", SocietyAndCultureGreaterThanDocumentary: "society_and_culture > documentary", SocietyAndCultureGreaterThanPersonalJournals: "society_and_culture > personal_journals", SocietyAndCultureGreaterThanPhilosophy: "society_and_culture > philosophy", SocietyAndCultureGreaterThanPlacesAndTravel: "society_and_culture > places_and_travel", SocietyAndCultureGreaterThanRelationships: "society_and_culture > relationships", SportsGreaterThanBaseball: "sports > baseball", SportsGreaterThanBasketball: "sports > basketball", SportsGreaterThanCricket: "sports > cricket", SportsGreaterThanFantasySports: "sports > fantasy_sports", SportsGreaterThanFootball: "sports > football", SportsGreaterThanGolf: "sports > golf", SportsGreaterThanHockey: "sports > hockey", SportsGreaterThanRugby: "sports > rugby", SportsGreaterThanRunning: "sports > running", SportsGreaterThanSoccer: "sports > soccer", SportsGreaterThanSwimming: "sports > swimming", SportsGreaterThanTennis: "sports > tennis", SportsGreaterThanVolleyball: "sports > volleyball", SportsGreaterThanWilderness: "sports > wilderness", SportsGreaterThanWrestling: "sports > wrestling", TvAndFilmGreaterThanAfterShows: "tv_and_film > after_shows", TvAndFilmGreaterThanFilmHistory: "tv_and_film > film_history", TvAndFilmGreaterThanFilmInterviews: "tv_and_film > film_interviews", TvAndFilmGreaterThanFilmReviews: "tv_and_film > film_reviews", TvAndFilmGreaterThanTvReviews: "tv_and_film > tv_reviews", } as const; /** * The third category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export type PutChannelsChannelHashedIdCategory3 = ClosedEnum< typeof PutChannelsChannelHashedIdCategory3 >; /** * The ISO 639-1 language code for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export const PutChannelsChannelHashedIdLanguage = { Af: "af", Be: "be", Bg: "bg", Ca: "ca", Cs: "cs", Da: "da", DeAt: "de-at", DeCh: "de-ch", DeDe: "de-de", DeLi: "de-li", DeLu: "de-lu", De: "de", El: "el", EnAu: "en-au", EnBz: "en-bz", EnCa: "en-ca", EnGb: "en-gb", EnIe: "en-ie", EnJm: "en-jm", EnNz: "en-nz", EnPh: "en-ph", EnTt: "en-tt", EnUs: "en-us", EnZa: "en-za", EnZw: "en-zw", En: "en", EsAr: "es-ar", EsBo: "es-bo", EsCl: "es-cl", EsCo: "es-co", EsCr: "es-cr", EsDo: "es-do", EsEc: "es-ec", EsEs: "es-es", EsGt: "es-gt", EsHn: "es-hn", EsMx: "es-mx", EsNi: "es-ni", EsPa: "es-pa", EsPe: "es-pe", EsPr: "es-pr", EsPy: "es-py", EsSv: "es-sv", EsUy: "es-uy", EsVe: "es-ve", Es: "es", Et: "et", Eu: "eu", Fi: "fi", Fo: "fo", FrBe: "fr-be", FrCa: "fr-ca", FrCh: "fr-ch", FrFr: "fr-fr", FrLu: "fr-lu", FrMc: "fr-mc", Fr: "fr", Ga: "ga", Gd: "gd", Gl: "gl", Haw: "haw", Hr: "hr", Hu: "hu", In: "in", Is: "is", ItCh: "it-ch", ItIt: "it-it", It: "it", Ja: "ja", Ko: "ko", Mk: "mk", NlBe: "nl-be", NlNl: "nl-nl", Nl: "nl", No: "no", Pl: "pl", PtBr: "pt-br", PtPt: "pt-pt", Pt: "pt", RoMo: "ro-mo", RoRo: "ro-ro", Ro: "ro", RuMo: "ru-mo", RuRu: "ru-ru", Ru: "ru", Sk: "sk", Sl: "sl", Sq: "sq", Sr: "sr", SvFi: "sv-fi", SvSe: "sv-se", Sv: "sv", Tr: "tr", Uk: "uk", ZhCn: "zh-cn", ZhTw: "zh-tw", } as const; /** * The ISO 639-1 language code for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ export type PutChannelsChannelHashedIdLanguage = ClosedEnum< typeof PutChannelsChannelHashedIdLanguage >; export type PutChannelsChannelHashedIdRequestBody = { /** * The display name for the channel */ name?: string | null | undefined; /** * The channel's description. */ description?: string | null | undefined; /** * Whether the episodes are automatically published when added to the channel. Cannot be enabled if podcasting is on. */ autoPublishEnabled?: boolean | undefined; /** * Whether podcasting is enabled for this channel. */ podcastEnabled?: boolean | undefined; /** * Use if embedding the channel on your own site. The custom URL ensures links always direct to your page and not Wistia's. */ customUrl?: string | null | undefined; /** * The channel's copyright information. This parameter only takes effect if podcasting is enabled for the channel. */ copyright?: string | null | undefined; /** * The format for episodes for the podcast channel. This parameter only takes effect if podcasting is enabled for the channel. */ episodeFormat?: PutChannelsChannelHashedIdEpisodeFormat | null | undefined; /** * The name of the author(s) for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ authorName?: string | null | undefined; /** * Whether the channel contains explicit content. This parameter only takes effect if podcasting is enabled for the channel. */ explicit?: boolean | null | undefined; /** * The name of the owner for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ ownerName?: string | null | undefined; /** * The email of the owner for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ ownerEmail?: string | null | undefined; /** * The primary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ category1?: PutChannelsChannelHashedIdCategory1 | null | undefined; /** * The secondary category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ category2?: PutChannelsChannelHashedIdCategory2 | null | undefined; /** * The third category for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ category3?: PutChannelsChannelHashedIdCategory3 | null | undefined; /** * The ISO 639-1 language code for the channel. This parameter only takes effect if podcasting is enabled for the channel. */ language?: PutChannelsChannelHashedIdLanguage | null | undefined; }; export type PutChannelsChannelHashedIdRequest = { /** * The hashed id of the Channel */ channelHashedId: string; requestBody?: PutChannelsChannelHashedIdRequestBody | undefined; }; /** * A Channel lets you take a collection of video (or audio) and embed them * * @remarks * on your site, as well as distribute through podcasting. */ export type PutChannelsChannelHashedIdResponse = { /** * The numeric id of the channel. */ id: number; /** * The date when the channel was originally created. */ created: Date; /** * The channel's description. */ description: string; /** * A unique alphanumeric identifier for this channel. */ hashedId: string; /** * The number of medias in the channel. */ mediaCount: number; /** * The display name for the channel */ name: string; /** * The date when the channel was last updated. */ updated: Date; /** * A cursor for stable pagination based on current `sort_by` order. You can pass this to `cursor[before]` or `cursor[after]` as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with `cursor[enabled]`, or `cursor[before]` or `cursor[after]`. */ cursor?: string | null | undefined; }; /** @internal */ export const PutChannelsChannelHashedIdEpisodeFormat$outboundSchema: z.ZodNativeEnum = z .nativeEnum(PutChannelsChannelHashedIdEpisodeFormat); /** @internal */ export const PutChannelsChannelHashedIdCategory1$outboundSchema: z.ZodNativeEnum = z.nativeEnum( PutChannelsChannelHashedIdCategory1, ); /** @internal */ export const PutChannelsChannelHashedIdCategory2$outboundSchema: z.ZodNativeEnum = z.nativeEnum( PutChannelsChannelHashedIdCategory2, ); /** @internal */ export const PutChannelsChannelHashedIdCategory3$outboundSchema: z.ZodNativeEnum = z.nativeEnum( PutChannelsChannelHashedIdCategory3, ); /** @internal */ export const PutChannelsChannelHashedIdLanguage$outboundSchema: z.ZodNativeEnum< typeof PutChannelsChannelHashedIdLanguage > = z.nativeEnum(PutChannelsChannelHashedIdLanguage); /** @internal */ export type PutChannelsChannelHashedIdRequestBody$Outbound = { name?: string | null | undefined; description?: string | null | undefined; auto_publish_enabled?: boolean | undefined; podcast_enabled?: boolean | undefined; custom_url?: string | null | undefined; copyright?: string | null | undefined; episode_format?: string | null | undefined; author_name?: string | null | undefined; explicit?: boolean | null | undefined; owner_name?: string | null | undefined; owner_email?: string | null | undefined; category1?: string | null | undefined; category2?: string | null | undefined; category3?: string | null | undefined; language?: string | null | undefined; }; /** @internal */ export const PutChannelsChannelHashedIdRequestBody$outboundSchema: z.ZodType< PutChannelsChannelHashedIdRequestBody$Outbound, z.ZodTypeDef, PutChannelsChannelHashedIdRequestBody > = z.object({ name: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), autoPublishEnabled: z.boolean().optional(), podcastEnabled: z.boolean().optional(), customUrl: z.nullable(z.string()).optional(), copyright: z.nullable(z.string()).optional(), episodeFormat: z.nullable( PutChannelsChannelHashedIdEpisodeFormat$outboundSchema, ).optional(), authorName: z.nullable(z.string()).optional(), explicit: z.nullable(z.boolean()).optional(), ownerName: z.nullable(z.string()).optional(), ownerEmail: z.nullable(z.string()).optional(), category1: z.nullable(PutChannelsChannelHashedIdCategory1$outboundSchema) .optional(), category2: z.nullable(PutChannelsChannelHashedIdCategory2$outboundSchema) .optional(), category3: z.nullable(PutChannelsChannelHashedIdCategory3$outboundSchema) .optional(), language: z.nullable(PutChannelsChannelHashedIdLanguage$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { autoPublishEnabled: "auto_publish_enabled", podcastEnabled: "podcast_enabled", customUrl: "custom_url", episodeFormat: "episode_format", authorName: "author_name", ownerName: "owner_name", ownerEmail: "owner_email", }); }); export function putChannelsChannelHashedIdRequestBodyToJSON( putChannelsChannelHashedIdRequestBody: PutChannelsChannelHashedIdRequestBody, ): string { return JSON.stringify( PutChannelsChannelHashedIdRequestBody$outboundSchema.parse( putChannelsChannelHashedIdRequestBody, ), ); } /** @internal */ export type PutChannelsChannelHashedIdRequest$Outbound = { channelHashedId: string; RequestBody?: PutChannelsChannelHashedIdRequestBody$Outbound | undefined; }; /** @internal */ export const PutChannelsChannelHashedIdRequest$outboundSchema: z.ZodType< PutChannelsChannelHashedIdRequest$Outbound, z.ZodTypeDef, PutChannelsChannelHashedIdRequest > = z.object({ channelHashedId: z.string(), requestBody: z.lazy(() => PutChannelsChannelHashedIdRequestBody$outboundSchema ).optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function putChannelsChannelHashedIdRequestToJSON( putChannelsChannelHashedIdRequest: PutChannelsChannelHashedIdRequest, ): string { return JSON.stringify( PutChannelsChannelHashedIdRequest$outboundSchema.parse( putChannelsChannelHashedIdRequest, ), ); } /** @internal */ export const PutChannelsChannelHashedIdResponse$inboundSchema: z.ZodType< PutChannelsChannelHashedIdResponse, z.ZodTypeDef, unknown > = z.object({ id: z.number().int(), created: z.string().datetime({ offset: true }).transform(v => new Date(v)), description: z.string(), hashed_id: z.string(), media_count: z.number().int(), name: z.string(), updated: z.string().datetime({ offset: true }).transform(v => new Date(v)), cursor: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { "hashed_id": "hashedId", "media_count": "mediaCount", }); }); export function putChannelsChannelHashedIdResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PutChannelsChannelHashedIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutChannelsChannelHashedIdResponse' from JSON`, ); }