/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { WistiaError } from "./wistiaerror.js"; /** * Internal server error */ export type DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerErrorData = { error?: string | undefined; }; /** * Internal server error */ export class DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerErrorData; constructor( err: DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError"; } } /** * Forbidden, token is valid but account does not have access to feature */ export type DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenErrorData = { error?: string | undefined; }; /** * Forbidden, token is valid but account does not have access to feature */ export class DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenErrorData; constructor( err: DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError"; } } /** * Unauthorized, invalid or missing token */ export type DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedErrorData = { error?: string | undefined; }; /** * Unauthorized, invalid or missing token */ export class DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedErrorData; constructor( err: DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError"; } } /** @internal */ export const DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError$inboundSchema: z.ZodType< DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError$inboundSchema: z.ZodType< DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError(v, { request: v.request$, response: v.response$, body: v.body$, }); }); /** @internal */ export const DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError$inboundSchema: z.ZodType< DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); });