Variable storageFileSchemaConst
storageFileSchema: ZodObject<
{
app: ZodOptional<ZodString>;
content_type: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
filename: ZodOptional<ZodString>;
id: ZodString;
image_source: ZodOptional<
ZodObject<
{
file: ZodOptional<ZodNullable<ZodString>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
media: ZodOptional<ZodNullable<ZodString>>;
mime_type: ZodOptional<ZodNullable<ZodString>>;
refresh_url: ZodOptional<ZodNullable<ZodString>>;
url: ZodOptional<ZodNullable<ZodString>>;
width: ZodOptional<ZodNullable<ZodNumber>>;
},
"strip",
ZodTypeAny,
{
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
{
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
>,
>;
org: ZodOptional<ZodString>;
sandbox: ZodOptional<ZodString>;
share_url: ZodOptional<ZodString>;
size: ZodOptional<ZodNumber>;
team: ZodOptional<ZodString>;
updated_at: ZodOptional<ZodString>;
url: ZodOptional<ZodString>;
user: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
app?: string;
content_type?: string;
created_at?: string;
filename?: string;
id: string;
image_source?: {
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
};
org?: string;
sandbox?: string;
share_url?: string;
size?: number;
team?: string;
updated_at?: string;
url?: string;
user?: string;
},
{
app?: string;
content_type?: string;
created_at?: string;
filename?: string;
id: string;
image_source?: {
file?: string
| null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
};
org?: string;
sandbox?: string;
share_url?: string;
size?: number;
team?: string;
updated_at?: string;
url?: string;
user?: string;
},
> = ...
Runtime validator for StorageFile.