/* * 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 GetFoldersFolderIdSubfoldersSubfolderIdInternalServerErrorData = { error?: string | undefined; }; /** * Internal server error */ export class GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetFoldersFolderIdSubfoldersSubfolderIdInternalServerErrorData; constructor( err: GetFoldersFolderIdSubfoldersSubfolderIdInternalServerErrorData, 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 = "GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError"; } } /** * Folder or subfolder not found */ export type GetFoldersFolderIdSubfoldersSubfolderIdNotFoundErrorData = { error?: string | undefined; }; /** * Folder or subfolder not found */ export class GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetFoldersFolderIdSubfoldersSubfolderIdNotFoundErrorData; constructor( err: GetFoldersFolderIdSubfoldersSubfolderIdNotFoundErrorData, 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 = "GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError"; } } /** * Unauthorized, invalid or missing token */ export type GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedErrorData = { error?: string | undefined; }; /** * Unauthorized, invalid or missing token */ export class GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedErrorData; constructor( err: GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedErrorData, 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 = "GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError"; } } /** @internal */ export const GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError$inboundSchema: z.ZodType< GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError(v, { request: v.request$, response: v.response$, body: v.body$, }); }); /** @internal */ export const GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError$inboundSchema: z.ZodType< GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError(v, { request: v.request$, response: v.response$, body: v.body$, }); }); /** @internal */ export const GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError$inboundSchema: z.ZodType< GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, }); });