Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { CustomFieldSchema } from './CustomField';
export const MediaSchema = z.object({
id: z.string(),
product_id: z.string().nullable(),
variant_ids: z.array(z.string()),
position: z.number(),
alt: z.string().nullable(),
media_type: z.string(),
external_video_url: z.string().nullable(),
focal_point_x: z.number().nullable(),
focal_point_y: z.number().nullable(),
video_provider: z.string().nullable(),
video_embed_url: z.string().nullable(),
video_url: z.string().nullable(),
poster_url: z.string().nullable(),
original_url: z.string().nullable(),
mini_url: z.string().nullable(),
small_url: z.string().nullable(),
medium_url: z.string().nullable(),
large_url: z.string().nullable(),
xlarge_url: z.string().nullable(),
og_image_url: z.string().nullable(),
custom_fields: z.array(CustomFieldSchema).optional(),
});
export type Media = z.infer<typeof MediaSchema>;