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
Fix: Kept optional fields optional on looping Zod schemas
Claude08c72d6a9338
diff --git a/packages/admin-sdk/src/zod/generated/Category.ts b/packages/admin-sdk/src/zod/generated/Category.tsindex 2ce95d68c3..58c2874db8 100644--- a/packages/admin-sdk/src/zod/generated/Category.ts+++ b/packages/admin-sdk/src/zod/generated/Category.ts@@ -34,6 +34,37 @@ export const CategorySchema = z.object({products_count: z.number(),created_at: z.string(),updated_at: z.string(),-}) as unknown as z.ZodObject<{ [K in keyof Category]-?: z.ZodType<Category[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Category['id']>;+ name: z.ZodType<Category['name']>;+ permalink: z.ZodType<Category['permalink']>;+ position: z.ZodType<Category['position']>;+ depth: z.ZodType<Category['depth']>;+ meta_title: z.ZodType<Category['meta_title']>;+ meta_description: z.ZodType<Category['meta_description']>;+ meta_keywords: z.ZodType<Category['meta_keywords']>;+ children_count: z.ZodType<Category['children_count']>;+ parent_id: z.ZodType<Category['parent_id']>;+ description: z.ZodType<Category['description']>;+ description_html: z.ZodType<Category['description_html']>;+ image_url: z.ZodType<Category['image_url']>;+ square_image_url: z.ZodType<Category['square_image_url']>;+ is_root: z.ZodType<Category['is_root']>;+ is_child: z.ZodType<Category['is_child']>;+ is_leaf: z.ZodType<Category['is_leaf']>;+ parent: z.ZodOptional<z.ZodType<Exclude<Category['parent'], undefined>>>;+ children: z.ZodOptional<z.ZodType<Exclude<Category['children'], undefined>>>;+ ancestors: z.ZodOptional<z.ZodType<Exclude<Category['ancestors'], undefined>>>;+ custom_fields: z.ZodOptional<z.ZodType<Exclude<Category['custom_fields'], undefined>>>;+ external_references: z.ZodType<Category['external_references']>;+ translations: z.ZodOptional<z.ZodType<Exclude<Category['translations'], undefined>>>;+ metadata: z.ZodType<Category['metadata']>;+ pretty_name: z.ZodType<Category['pretty_name']>;+ lft: z.ZodType<Category['lft']>;+ rgt: z.ZodType<Category['rgt']>;+ products_count: z.ZodType<Category['products_count']>;+ created_at: z.ZodType<Category['created_at']>;+ updated_at: z.ZodType<Category['updated_at']>;+}>;export type { Category };diff --git a/packages/admin-sdk/src/zod/generated/Claim.ts b/packages/admin-sdk/src/zod/generated/Claim.tsindex 72ed378620..0868d1a109 100644--- a/packages/admin-sdk/src/zod/generated/Claim.ts+++ b/packages/admin-sdk/src/zod/generated/Claim.ts@@ -30,6 +30,29 @@ export const ClaimSchema = z.object({created_by: ActorSchema.optional(),get order() { return OrderSchema.optional(); },get refunds() { return z.array(RefundSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Claim]-?: z.ZodType<Claim[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Claim['id']>;+ number: z.ZodType<Claim['number']>;+ status: z.ZodType<Claim['status']>;+ resolution: z.ZodType<Claim['resolution']>;+ order_id: z.ZodType<Claim['order_id']>;+ reason_id: z.ZodType<Claim['reason_id']>;+ refund_total: z.ZodType<Claim['refund_total']>;+ approved_at: z.ZodType<Claim['approved_at']>;+ resolved_at: z.ZodType<Claim['resolved_at']>;+ denied_at: z.ZodType<Claim['denied_at']>;+ canceled_at: z.ZodType<Claim['canceled_at']>;+ reason: z.ZodOptional<z.ZodType<Exclude<Claim['reason'], undefined>>>;+ claim_line_items: z.ZodOptional<z.ZodType<Exclude<Claim['claim_line_items'], undefined>>>;+ memo: z.ZodType<Claim['memo']>;+ metadata: z.ZodType<Claim['metadata']>;+ created_at: z.ZodType<Claim['created_at']>;+ updated_at: z.ZodType<Claim['updated_at']>;+ created_by_id: z.ZodType<Claim['created_by_id']>;+ created_by_type: z.ZodType<Claim['created_by_type']>;+ created_by: z.ZodOptional<z.ZodType<Exclude<Claim['created_by'], undefined>>>;+ order: z.ZodOptional<z.ZodType<Exclude<Claim['order'], undefined>>>;+ refunds: z.ZodOptional<z.ZodType<Exclude<Claim['refunds'], undefined>>>;+}>;export type { Claim };diff --git a/packages/admin-sdk/src/zod/generated/Company.ts b/packages/admin-sdk/src/zod/generated/Company.tsindex a027a38251..0570d0a440 100644--- a/packages/admin-sdk/src/zod/generated/Company.ts+++ b/packages/admin-sdk/src/zod/generated/Company.ts@@ -20,6 +20,22 @@ export const CompanySchema = z.object({get children() { return z.array(CompanySchema).optional(); },addresses: z.array(AddressSchema).optional(),memberships: z.array(CompanyMembershipSchema).optional(),-}) as unknown as z.ZodObject<{ [K in keyof Company]-?: z.ZodType<Company[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Company['id']>;+ name: z.ZodType<Company['name']>;+ kind: z.ZodType<Company['kind']>;+ po_number_required: z.ZodType<Company['po_number_required']>;+ parent_id: z.ZodType<Company['parent_id']>;+ ancestors: z.ZodType<Company['ancestors']>;+ external_references: z.ZodType<Company['external_references']>;+ metadata: z.ZodType<Company['metadata']>;+ created_at: z.ZodType<Company['created_at']>;+ updated_at: z.ZodType<Company['updated_at']>;+ children_count: z.ZodType<Company['children_count']>;+ members_count: z.ZodType<Company['members_count']>;+ children: z.ZodOptional<z.ZodType<Exclude<Company['children'], undefined>>>;+ addresses: z.ZodOptional<z.ZodType<Exclude<Company['addresses'], undefined>>>;+ memberships: z.ZodOptional<z.ZodType<Exclude<Company['memberships'], undefined>>>;+}>;export type { Company };diff --git a/packages/admin-sdk/src/zod/generated/Country.ts b/packages/admin-sdk/src/zod/generated/Country.tsindex 16dd1867ac..058a135ba6 100644--- a/packages/admin-sdk/src/zod/generated/Country.ts+++ b/packages/admin-sdk/src/zod/generated/Country.ts@@ -11,6 +11,13 @@ export const CountrySchema = z.object({zipcode_required: z.boolean(),states: z.array(StateSchema).optional(),get market() { return MarketSchema.nullable().optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Country]-?: z.ZodType<Country[K]> }>;+}) as unknown as z.ZodObject<{+ iso: z.ZodType<Country['iso']>;+ iso3: z.ZodType<Country['iso3']>;+ states_required: z.ZodType<Country['states_required']>;+ zipcode_required: z.ZodType<Country['zipcode_required']>;+ states: z.ZodOptional<z.ZodType<Exclude<Country['states'], undefined>>>;+ market: z.ZodOptional<z.ZodType<Exclude<Country['market'], undefined>>>;+}>;export type { Country };diff --git a/packages/admin-sdk/src/zod/generated/Customer.ts b/packages/admin-sdk/src/zod/generated/Customer.tsindex 207dc6d039..9742eff696 100644--- a/packages/admin-sdk/src/zod/generated/Customer.ts+++ b/packages/admin-sdk/src/zod/generated/Customer.ts@@ -42,6 +42,40 @@ export const CustomerSchema = z.object({get store_credits() { return z.array(StoreCreditSchema).optional(); },customer_group_ids: z.array(z.string()),get companies() { return z.array(CompanySchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Customer]-?: z.ZodType<Customer[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Customer['id']>;+ email: z.ZodType<Customer['email']>;+ first_name: z.ZodType<Customer['first_name']>;+ last_name: z.ZodType<Customer['last_name']>;+ phone: z.ZodType<Customer['phone']>;+ accepts_email_marketing: z.ZodType<Customer['accepts_email_marketing']>;+ email_marketing_consent_updated_at: z.ZodType<Customer['email_marketing_consent_updated_at']>;+ full_name: z.ZodType<Customer['full_name']>;+ available_store_credit_total: z.ZodType<Customer['available_store_credit_total']>;+ addresses: z.ZodOptional<z.ZodType<Exclude<Customer['addresses'], undefined>>>;+ default_billing_address: z.ZodOptional<z.ZodType<Exclude<Customer['default_billing_address'], undefined>>>;+ default_shipping_address: z.ZodOptional<z.ZodType<Exclude<Customer['default_shipping_address'], undefined>>>;+ newsletter_subscriber: z.ZodOptional<z.ZodType<Exclude<Customer['newsletter_subscriber'], undefined>>>;+ customer_groups: z.ZodOptional<z.ZodType<Exclude<Customer['customer_groups'], undefined>>>;+ failed_attempts: z.ZodType<Customer['failed_attempts']>;+ metadata: z.ZodType<Customer['metadata']>;+ email_marketing_consent_source: z.ZodType<Customer['email_marketing_consent_source']>;+ created_at: z.ZodType<Customer['created_at']>;+ updated_at: z.ZodType<Customer['updated_at']>;+ anonymized_at: z.ZodType<Customer['anonymized_at']>;+ anonymized: z.ZodType<Customer['anonymized']>;+ tags: z.ZodType<Customer['tags']>;+ internal_note: z.ZodType<Customer['internal_note']>;+ internal_note_html: z.ZodType<Customer['internal_note_html']>;+ default_billing_address_id: z.ZodType<Customer['default_billing_address_id']>;+ default_shipping_address_id: z.ZodType<Customer['default_shipping_address_id']>;+ orders_count: z.ZodType<Customer['orders_count']>;+ total_spent: z.ZodType<Customer['total_spent']>;+ last_order_completed_at: z.ZodType<Customer['last_order_completed_at']>;+ orders: z.ZodOptional<z.ZodType<Exclude<Customer['orders'], undefined>>>;+ store_credits: z.ZodOptional<z.ZodType<Exclude<Customer['store_credits'], undefined>>>;+ customer_group_ids: z.ZodType<Customer['customer_group_ids']>;+ companies: z.ZodOptional<z.ZodType<Exclude<Customer['companies'], undefined>>>;+}>;export type { Customer };diff --git a/packages/admin-sdk/src/zod/generated/CustomerGroup.ts b/packages/admin-sdk/src/zod/generated/CustomerGroup.tsindex e4b8c6e69c..1f7e73ae3b 100644--- a/packages/admin-sdk/src/zod/generated/CustomerGroup.ts+++ b/packages/admin-sdk/src/zod/generated/CustomerGroup.ts@@ -11,6 +11,14 @@ export const CustomerGroupSchema = z.object({created_at: z.string(),updated_at: z.string(),get customers() { return z.array(CustomerSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof CustomerGroup]-?: z.ZodType<CustomerGroup[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<CustomerGroup['id']>;+ name: z.ZodType<CustomerGroup['name']>;+ description: z.ZodType<CustomerGroup['description']>;+ customers_count: z.ZodType<CustomerGroup['customers_count']>;+ created_at: z.ZodType<CustomerGroup['created_at']>;+ updated_at: z.ZodType<CustomerGroup['updated_at']>;+ customers: z.ZodOptional<z.ZodType<Exclude<CustomerGroup['customers'], undefined>>>;+}>;export type { CustomerGroup };diff --git a/packages/admin-sdk/src/zod/generated/Exchange.ts b/packages/admin-sdk/src/zod/generated/Exchange.tsindex 559927ecc6..7c537d3b0a 100644--- a/packages/admin-sdk/src/zod/generated/Exchange.ts+++ b/packages/admin-sdk/src/zod/generated/Exchange.ts@@ -32,6 +32,30 @@ export const ExchangeSchema = z.object({get order() { return OrderSchema.optional(); },stock_location: StockLocationSchema.optional(),get refunds() { return z.array(RefundSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Exchange]-?: z.ZodType<Exchange[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Exchange['id']>;+ number: z.ZodType<Exchange['number']>;+ status: z.ZodType<Exchange['status']>;+ order_id: z.ZodType<Exchange['order_id']>;+ reason_id: z.ZodType<Exchange['reason_id']>;+ price_difference: z.ZodType<Exchange['price_difference']>;+ approved_at: z.ZodType<Exchange['approved_at']>;+ received_at: z.ZodType<Exchange['received_at']>;+ fulfilled_at: z.ZodType<Exchange['fulfilled_at']>;+ canceled_at: z.ZodType<Exchange['canceled_at']>;+ reason: z.ZodOptional<z.ZodType<Exclude<Exchange['reason'], undefined>>>;+ exchange_line_items: z.ZodOptional<z.ZodType<Exclude<Exchange['exchange_line_items'], undefined>>>;+ memo: z.ZodType<Exchange['memo']>;+ metadata: z.ZodType<Exchange['metadata']>;+ created_at: z.ZodType<Exchange['created_at']>;+ updated_at: z.ZodType<Exchange['updated_at']>;+ stock_location_id: z.ZodType<Exchange['stock_location_id']>;+ created_by_id: z.ZodType<Exchange['created_by_id']>;+ created_by_type: z.ZodType<Exchange['created_by_type']>;+ created_by: z.ZodOptional<z.ZodType<Exclude<Exchange['created_by'], undefined>>>;+ order: z.ZodOptional<z.ZodType<Exclude<Exchange['order'], undefined>>>;+ stock_location: z.ZodOptional<z.ZodType<Exclude<Exchange['stock_location'], undefined>>>;+ refunds: z.ZodOptional<z.ZodType<Exclude<Exchange['refunds'], undefined>>>;+}>;export type { Exchange };diff --git a/packages/admin-sdk/src/zod/generated/Fulfillment.ts b/packages/admin-sdk/src/zod/generated/Fulfillment.tsindex a951270201..042f1828ff 100644--- a/packages/admin-sdk/src/zod/generated/Fulfillment.ts+++ b/packages/admin-sdk/src/zod/generated/Fulfillment.ts@@ -47,6 +47,43 @@ export const FulfillmentSchema = z.object({provider_generates_labels: z.boolean(),fulfillment_items: z.array(FulfillmentItemSchema).optional(),get order() { return OrderSchema.optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Fulfillment]-?: z.ZodType<Fulfillment[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Fulfillment['id']>;+ number: z.ZodType<Fulfillment['number']>;+ tracking: z.ZodType<Fulfillment['tracking']>;+ tracking_url: z.ZodType<Fulfillment['tracking_url']>;+ pickup_point_data: z.ZodType<Fulfillment['pickup_point_data']>;+ selected_delivery_rate_id: z.ZodType<Fulfillment['selected_delivery_rate_id']>;+ unpriced: z.ZodType<Fulfillment['unpriced']>;+ cost: z.ZodType<Fulfillment['cost']>;+ total: z.ZodType<Fulfillment['total']>;+ discount_total: z.ZodType<Fulfillment['discount_total']>;+ additional_tax_total: z.ZodType<Fulfillment['additional_tax_total']>;+ included_tax_total: z.ZodType<Fulfillment['included_tax_total']>;+ tax_total: z.ZodType<Fulfillment['tax_total']>;+ status: z.ZodType<Fulfillment['status']>;+ fulfillment_type: z.ZodType<Fulfillment['fulfillment_type']>;+ fulfilled_at: z.ZodType<Fulfillment['fulfilled_at']>;+ delivered_at: z.ZodType<Fulfillment['delivered_at']>;+ items: z.ZodType<Fulfillment['items']>;+ deliveries: z.ZodType<Fulfillment['deliveries']>;+ delivery_method: z.ZodOptional<z.ZodType<Exclude<Fulfillment['delivery_method'], undefined>>>;+ stock_location: z.ZodOptional<z.ZodType<Exclude<Fulfillment['stock_location'], undefined>>>;+ delivery_rates: z.ZodOptional<z.ZodType<Exclude<Fulfillment['delivery_rates'], undefined>>>;+ tax_lines: z.ZodOptional<z.ZodType<Exclude<Fulfillment['tax_lines'], undefined>>>;+ external_references: z.ZodType<Fulfillment['external_references']>;+ metadata: z.ZodType<Fulfillment['metadata']>;+ created_at: z.ZodType<Fulfillment['created_at']>;+ updated_at: z.ZodType<Fulfillment['updated_at']>;+ adjustment_total: z.ZodType<Fulfillment['adjustment_total']>;+ pre_tax_amount: z.ZodType<Fulfillment['pre_tax_amount']>;+ order_id: z.ZodType<Fulfillment['order_id']>;+ stock_location_id: z.ZodType<Fulfillment['stock_location_id']>;+ documents: z.ZodType<Fulfillment['documents']>;+ labels: z.ZodType<Fulfillment['labels']>;+ provider_generates_labels: z.ZodType<Fulfillment['provider_generates_labels']>;+ fulfillment_items: z.ZodOptional<z.ZodType<Exclude<Fulfillment['fulfillment_items'], undefined>>>;+ order: z.ZodOptional<z.ZodType<Exclude<Fulfillment['order'], undefined>>>;+}>;export type { Fulfillment };diff --git a/packages/admin-sdk/src/zod/generated/GiftCard.ts b/packages/admin-sdk/src/zod/generated/GiftCard.tsindex 0acf803785..aeef9567a0 100644--- a/packages/admin-sdk/src/zod/generated/GiftCard.ts+++ b/packages/admin-sdk/src/zod/generated/GiftCard.ts@@ -27,6 +27,27 @@ export const GiftCardSchema = z.object({created_by: AdminUserSchema.optional(),gift_card_batch: GiftCardBatchSchema.optional(),get orders() { return z.array(OrderSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof GiftCard]-?: z.ZodType<GiftCard[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<GiftCard['id']>;+ code: z.ZodType<GiftCard['code']>;+ status: z.ZodType<GiftCard['status']>;+ currency: z.ZodType<GiftCard['currency']>;+ amount: z.ZodType<GiftCard['amount']>;+ amount_used: z.ZodType<GiftCard['amount_used']>;+ amount_authorized: z.ZodType<GiftCard['amount_authorized']>;+ amount_remaining: z.ZodType<GiftCard['amount_remaining']>;+ expires_at: z.ZodType<GiftCard['expires_at']>;+ redeemed_at: z.ZodType<GiftCard['redeemed_at']>;+ expired: z.ZodType<GiftCard['expired']>;+ active: z.ZodType<GiftCard['active']>;+ created_at: z.ZodType<GiftCard['created_at']>;+ updated_at: z.ZodType<GiftCard['updated_at']>;+ customer_id: z.ZodType<GiftCard['customer_id']>;+ created_by_id: z.ZodType<GiftCard['created_by_id']>;+ customer: z.ZodOptional<z.ZodType<Exclude<GiftCard['customer'], undefined>>>;+ created_by: z.ZodOptional<z.ZodType<Exclude<GiftCard['created_by'], undefined>>>;+ gift_card_batch: z.ZodOptional<z.ZodType<Exclude<GiftCard['gift_card_batch'], undefined>>>;+ orders: z.ZodOptional<z.ZodType<Exclude<GiftCard['orders'], undefined>>>;+}>;export type { GiftCard };diff --git a/packages/admin-sdk/src/zod/generated/Market.ts b/packages/admin-sdk/src/zod/generated/Market.tsindex 0157cf31f5..aff64e0182 100644--- a/packages/admin-sdk/src/zod/generated/Market.ts+++ b/packages/admin-sdk/src/zod/generated/Market.ts@@ -16,6 +16,19 @@ export const MarketSchema = z.object({created_at: z.string(),updated_at: z.string(),tax_provider: z.string().nullable(),-}) as unknown as z.ZodObject<{ [K in keyof Market]-?: z.ZodType<Market[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Market['id']>;+ name: z.ZodType<Market['name']>;+ currency: z.ZodType<Market['currency']>;+ default_locale: z.ZodType<Market['default_locale']>;+ tax_inclusive: z.ZodType<Market['tax_inclusive']>;+ default: z.ZodType<Market['default']>;+ country_codes: z.ZodType<Market['country_codes']>;+ supported_locales: z.ZodType<Market['supported_locales']>;+ countries: z.ZodOptional<z.ZodType<Exclude<Market['countries'], undefined>>>;+ created_at: z.ZodType<Market['created_at']>;+ updated_at: z.ZodType<Market['updated_at']>;+ tax_provider: z.ZodType<Market['tax_provider']>;+}>;export type { Market };diff --git a/packages/admin-sdk/src/zod/generated/OptionType.ts b/packages/admin-sdk/src/zod/generated/OptionType.tsindex 24b87161e7..7d2f131dfb 100644--- a/packages/admin-sdk/src/zod/generated/OptionType.ts+++ b/packages/admin-sdk/src/zod/generated/OptionType.ts@@ -15,6 +15,18 @@ export const OptionTypeSchema = z.object({created_at: z.string(),updated_at: z.string(),get option_values() { return z.array(OptionValueSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof OptionType]-?: z.ZodType<OptionType[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<OptionType['id']>;+ name: z.ZodType<OptionType['name']>;+ label: z.ZodType<OptionType['label']>;+ position: z.ZodType<OptionType['position']>;+ kind: z.ZodType<OptionType['kind']>;+ translations: z.ZodOptional<z.ZodType<Exclude<OptionType['translations'], undefined>>>;+ metadata: z.ZodType<OptionType['metadata']>;+ filterable: z.ZodType<OptionType['filterable']>;+ created_at: z.ZodType<OptionType['created_at']>;+ updated_at: z.ZodType<OptionType['updated_at']>;+ option_values: z.ZodOptional<z.ZodType<Exclude<OptionType['option_values'], undefined>>>;+}>;export type { OptionType };diff --git a/packages/admin-sdk/src/zod/generated/OptionValue.ts b/packages/admin-sdk/src/zod/generated/OptionValue.tsindex 1b67840d8a..fb4ae8574f 100644--- a/packages/admin-sdk/src/zod/generated/OptionValue.ts+++ b/packages/admin-sdk/src/zod/generated/OptionValue.ts@@ -17,6 +17,20 @@ export const OptionValueSchema = z.object({created_at: z.string(),updated_at: z.string(),get option_type() { return OptionTypeSchema.optional(); },-}) as unknown as z.ZodObject<{ [K in keyof OptionValue]-?: z.ZodType<OptionValue[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<OptionValue['id']>;+ option_type_id: z.ZodType<OptionValue['option_type_id']>;+ name: z.ZodType<OptionValue['name']>;+ label: z.ZodType<OptionValue['label']>;+ position: z.ZodType<OptionValue['position']>;+ color_code: z.ZodType<OptionValue['color_code']>;+ option_type_name: z.ZodType<OptionValue['option_type_name']>;+ option_type_label: z.ZodType<OptionValue['option_type_label']>;+ image_url: z.ZodType<OptionValue['image_url']>;+ metadata: z.ZodType<OptionValue['metadata']>;+ created_at: z.ZodType<OptionValue['created_at']>;+ updated_at: z.ZodType<OptionValue['updated_at']>;+ option_type: z.ZodOptional<z.ZodType<Exclude<OptionValue['option_type'], undefined>>>;+}>;export type { OptionValue };diff --git a/packages/admin-sdk/src/zod/generated/Order.ts b/packages/admin-sdk/src/zod/generated/Order.tsindex 54c1869f42..2c6450e033 100644--- a/packages/admin-sdk/src/zod/generated/Order.ts+++ b/packages/admin-sdk/src/zod/generated/Order.ts@@ -112,6 +112,96 @@ export const OrderSchema = z.object({get exchanges() { return z.array(ExchangeSchema).optional(); },get claims() { return z.array(ClaimSchema).optional(); },freight_summary: FreightSummarySchema.nullable(),-}) as unknown as z.ZodObject<{ [K in keyof Order]-?: z.ZodType<Order[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Order['id']>;+ market_id: z.ZodType<Order['market_id']>;+ withdrawal_period_ends_at: z.ZodType<Order['withdrawal_period_ends_at']>;+ within_withdrawal_period: z.ZodType<Order['within_withdrawal_period']>;+ cart_id: z.ZodType<Order['cart_id']>;+ channel_id: z.ZodType<Order['channel_id']>;+ company_id: z.ZodType<Order['company_id']>;+ company_name: z.ZodType<Order['company_name']>;+ po_document_filename: z.ZodType<Order['po_document_filename']>;+ po_document_byte_size: z.ZodType<Order['po_document_byte_size']>;+ number: z.ZodType<Order['number']>;+ email: z.ZodType<Order['email']>;+ customer_note: z.ZodType<Order['customer_note']>;+ po_number: z.ZodType<Order['po_number']>;+ currency: z.ZodType<Order['currency']>;+ locale: z.ZodType<Order['locale']>;+ total_quantity: z.ZodType<Order['total_quantity']>;+ coupon_code: z.ZodType<Order['coupon_code']>;+ fulfillment_status: z.ZodType<Order['fulfillment_status']>;+ payment_status: z.ZodType<Order['payment_status']>;+ completed_at: z.ZodType<Order['completed_at']>;+ item_total: z.ZodType<Order['item_total']>;+ discount_total: z.ZodType<Order['discount_total']>;+ tax_total: z.ZodType<Order['tax_total']>;+ included_tax_total: z.ZodType<Order['included_tax_total']>;+ additional_tax_total: z.ZodType<Order['additional_tax_total']>;+ delivery_total: z.ZodType<Order['delivery_total']>;+ fee_total: z.ZodType<Order['fee_total']>;+ gift_card_total: z.ZodType<Order['gift_card_total']>;+ store_credit_total: z.ZodType<Order['store_credit_total']>;+ total: z.ZodType<Order['total']>;+ amount_due: z.ZodType<Order['amount_due']>;+ covered_by_store_credit: z.ZodType<Order['covered_by_store_credit']>;+ payments: z.ZodOptional<z.ZodType<Exclude<Order['payments'], undefined>>>;+ adjustment_total: z.ZodType<Order['adjustment_total']>;+ items: z.ZodOptional<z.ZodType<Exclude<Order['items'], undefined>>>;+ fulfillments: z.ZodOptional<z.ZodType<Exclude<Order['fulfillments'], undefined>>>;+ billing_address: z.ZodOptional<z.ZodType<Exclude<Order['billing_address'], undefined>>>;+ shipping_address: z.ZodOptional<z.ZodType<Exclude<Order['shipping_address'], undefined>>>;+ gift_card: z.ZodType<Order['gift_card']>;+ market: z.ZodType<Order['market']>;+ external_references: z.ZodType<Order['external_references']>;+ status: z.ZodType<Order['status']>;+ last_ip_address: z.ZodType<Order['last_ip_address']>;+ considered_risky: z.ZodType<Order['considered_risky']>;+ confirmation_delivered: z.ZodType<Order['confirmation_delivered']>;+ store_owner_notification_delivered: z.ZodType<Order['store_owner_notification_delivered']>;+ metadata: z.ZodType<Order['metadata']>;+ cancel_note: z.ZodType<Order['cancel_note']>;+ canceled_at: z.ZodType<Order['canceled_at']>;+ approved_at: z.ZodType<Order['approved_at']>;+ created_at: z.ZodType<Order['created_at']>;+ updated_at: z.ZodType<Order['updated_at']>;+ payment_total: z.ZodType<Order['payment_total']>;+ commission_amount_total: z.ZodType<Order['commission_amount_total']>;+ commission_tax_total: z.ZodType<Order['commission_tax_total']>;+ commission_total: z.ZodType<Order['commission_total']>;+ preferred_stock_location_id: z.ZodType<Order['preferred_stock_location_id']>;+ po_document_url: z.ZodType<Order['po_document_url']>;+ seller_id: z.ZodType<Order['seller_id']>;+ seller: z.ZodOptional<z.ZodType<Exclude<Order['seller'], undefined>>>;+ order_group_id: z.ZodType<Order['order_group_id']>;+ tags: z.ZodType<Order['tags']>;+ internal_note: z.ZodType<Order['internal_note']>;+ internal_note_html: z.ZodType<Order['internal_note_html']>;+ approver_id: z.ZodType<Order['approver_id']>;+ approver_type: z.ZodType<Order['approver_type']>;+ approver: z.ZodOptional<z.ZodType<Exclude<Order['approver'], undefined>>>;+ canceler_id: z.ZodType<Order['canceler_id']>;+ canceler_type: z.ZodType<Order['canceler_type']>;+ canceler: z.ZodOptional<z.ZodType<Exclude<Order['canceler'], undefined>>>;+ created_by_id: z.ZodType<Order['created_by_id']>;+ created_by_type: z.ZodType<Order['created_by_type']>;+ created_by: z.ZodOptional<z.ZodType<Exclude<Order['created_by'], undefined>>>;+ cancel_reason_id: z.ZodType<Order['cancel_reason_id']>;+ cancel_reason_name: z.ZodType<Order['cancel_reason_name']>;+ customer_id: z.ZodType<Order['customer_id']>;+ applied_promotions: z.ZodOptional<z.ZodType<Exclude<Order['applied_promotions'], undefined>>>;+ payment_splits: z.ZodOptional<z.ZodType<Exclude<Order['payment_splits'], undefined>>>;+ cart: z.ZodOptional<z.ZodType<Exclude<Order['cart'], undefined>>>;+ channel: z.ZodOptional<z.ZodType<Exclude<Order['channel'], undefined>>>;+ preferred_stock_location: z.ZodOptional<z.ZodType<Exclude<Order['preferred_stock_location'], undefined>>>;+ payment_methods: z.ZodOptional<z.ZodType<Exclude<Order['payment_methods'], undefined>>>;+ customer: z.ZodOptional<z.ZodType<Exclude<Order['customer'], undefined>>>;+ cancel_reason: z.ZodOptional<z.ZodType<Exclude<Order['cancel_reason'], undefined>>>;+ returns: z.ZodOptional<z.ZodType<Exclude<Order['returns'], undefined>>>;+ exchanges: z.ZodOptional<z.ZodType<Exclude<Order['exchanges'], undefined>>>;+ claims: z.ZodOptional<z.ZodType<Exclude<Order['claims'], undefined>>>;+ freight_summary: z.ZodType<Order['freight_summary']>;+}>;export type { Order };diff --git a/packages/admin-sdk/src/zod/generated/Payment.ts b/packages/admin-sdk/src/zod/generated/Payment.tsindex 1d20055019..0a8758aef8 100644--- a/packages/admin-sdk/src/zod/generated/Payment.ts+++ b/packages/admin-sdk/src/zod/generated/Payment.ts@@ -36,6 +36,32 @@ export const PaymentSchema = z.object({get order() { return OrderSchema.optional(); },get refunds() { return z.array(RefundSchema).optional(); },payment_splits: z.array(PaymentSplitSchema).optional(),-}) as unknown as z.ZodObject<{ [K in keyof Payment]-?: z.ZodType<Payment[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Payment['id']>;+ payment_method_id: z.ZodType<Payment['payment_method_id']>;+ response_code: z.ZodType<Payment['response_code']>;+ number: z.ZodType<Payment['number']>;+ status: z.ZodType<Payment['status']>;+ amount: z.ZodType<Payment['amount']>;+ source_type: z.ZodType<Payment['source_type']>;+ source_id: z.ZodType<Payment['source_id']>;+ source: z.ZodType<Payment['source']>;+ payment_method: z.ZodOptional<z.ZodType<Exclude<Payment['payment_method'], undefined>>>;+ metadata: z.ZodType<Payment['metadata']>;+ avs_response: z.ZodType<Payment['avs_response']>;+ cvv_response_code: z.ZodType<Payment['cvv_response_code']>;+ cvv_response_message: z.ZodType<Payment['cvv_response_message']>;+ gateway_dashboard_payment_url: z.ZodType<Payment['gateway_dashboard_payment_url']>;+ created_at: z.ZodType<Payment['created_at']>;+ updated_at: z.ZodType<Payment['updated_at']>;+ avs_risky: z.ZodType<Payment['avs_risky']>;+ cvv_risky: z.ZodType<Payment['cvv_risky']>;+ captured_amount: z.ZodType<Payment['captured_amount']>;+ order_id: z.ZodType<Payment['order_id']>;+ capture_events: z.ZodOptional<z.ZodType<Exclude<Payment['capture_events'], undefined>>>;+ order: z.ZodOptional<z.ZodType<Exclude<Payment['order'], undefined>>>;+ refunds: z.ZodOptional<z.ZodType<Exclude<Payment['refunds'], undefined>>>;+ payment_splits: z.ZodOptional<z.ZodType<Exclude<Payment['payment_splits'], undefined>>>;+}>;export type { Payment };diff --git a/packages/admin-sdk/src/zod/generated/Price.ts b/packages/admin-sdk/src/zod/generated/Price.tsindex badb3cebc1..efcf57749e 100644--- a/packages/admin-sdk/src/zod/generated/Price.ts+++ b/packages/admin-sdk/src/zod/generated/Price.ts@@ -14,6 +14,17 @@ export const PriceSchema = z.object({created_at: z.string(),updated_at: z.string(),get variant() { return VariantSchema.optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Price]-?: z.ZodType<Price[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Price['id']>;+ currency: z.ZodType<Price['currency']>;+ amount: z.ZodType<Price['amount']>;+ compare_at_amount: z.ZodType<Price['compare_at_amount']>;+ price_list_id: z.ZodType<Price['price_list_id']>;+ min_quantity: z.ZodType<Price['min_quantity']>;+ variant_id: z.ZodType<Price['variant_id']>;+ created_at: z.ZodType<Price['created_at']>;+ updated_at: z.ZodType<Price['updated_at']>;+ variant: z.ZodOptional<z.ZodType<Exclude<Price['variant'], undefined>>>;+}>;export type { Price };diff --git a/packages/admin-sdk/src/zod/generated/Refund.ts b/packages/admin-sdk/src/zod/generated/Refund.tsindex f7bfd037fb..a00fef619b 100644--- a/packages/admin-sdk/src/zod/generated/Refund.ts+++ b/packages/admin-sdk/src/zod/generated/Refund.ts@@ -20,6 +20,22 @@ export const RefundSchema = z.object({refunder_type: z.string().nullable(),refunder: ActorSchema.optional(),get payment() { return PaymentSchema.optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Refund]-?: z.ZodType<Refund[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Refund['id']>;+ transaction_id: z.ZodType<Refund['transaction_id']>;+ amount: z.ZodType<Refund['amount']>;+ payment_id: z.ZodType<Refund['payment_id']>;+ refund_reason_id: z.ZodType<Refund['refund_reason_id']>;+ originator_id: z.ZodType<Refund['originator_id']>;+ originator_type: z.ZodType<Refund['originator_type']>;+ metadata: z.ZodType<Refund['metadata']>;+ created_at: z.ZodType<Refund['created_at']>;+ updated_at: z.ZodType<Refund['updated_at']>;+ tax_amount: z.ZodType<Refund['tax_amount']>;+ refunder_id: z.ZodType<Refund['refunder_id']>;+ refunder_type: z.ZodType<Refund['refunder_type']>;+ refunder: z.ZodOptional<z.ZodType<Exclude<Refund['refunder'], undefined>>>;+ payment: z.ZodOptional<z.ZodType<Exclude<Refund['payment'], undefined>>>;+}>;export type { Refund };diff --git a/packages/admin-sdk/src/zod/generated/Return.ts b/packages/admin-sdk/src/zod/generated/Return.tsindex a8fda8c7db..c5d4817c20 100644--- a/packages/admin-sdk/src/zod/generated/Return.ts+++ b/packages/admin-sdk/src/zod/generated/Return.ts@@ -41,6 +41,37 @@ export const ReturnSchema = z.object({documents: z.array(z.object({ kind: z.string(), url: z.string() })),labels: z.array(ShippingLabelSchema),deliveries: z.array(DeliverySchema),-}) as unknown as z.ZodObject<{ [K in keyof Return]-?: z.ZodType<Return[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Return['id']>;+ number: z.ZodType<Return['number']>;+ status: z.ZodType<Return['status']>;+ order_id: z.ZodType<Return['order_id']>;+ reason_id: z.ZodType<Return['reason_id']>;+ refund_total: z.ZodType<Return['refund_total']>;+ refund_tax_total: z.ZodType<Return['refund_tax_total']>;+ approved_at: z.ZodType<Return['approved_at']>;+ received_at: z.ZodType<Return['received_at']>;+ refunded_at: z.ZodType<Return['refunded_at']>;+ canceled_at: z.ZodType<Return['canceled_at']>;+ reason: z.ZodOptional<z.ZodType<Exclude<Return['reason'], undefined>>>;+ return_line_items: z.ZodOptional<z.ZodType<Exclude<Return['return_line_items'], undefined>>>;+ external_references: z.ZodType<Return['external_references']>;+ memo: z.ZodType<Return['memo']>;+ metadata: z.ZodType<Return['metadata']>;+ created_at: z.ZodType<Return['created_at']>;+ updated_at: z.ZodType<Return['updated_at']>;+ stock_location_id: z.ZodType<Return['stock_location_id']>;+ created_by_id: z.ZodType<Return['created_by_id']>;+ created_by_type: z.ZodType<Return['created_by_type']>;+ created_by: z.ZodOptional<z.ZodType<Exclude<Return['created_by'], undefined>>>;+ refunded_total: z.ZodType<Return['refunded_total']>;+ refundable_total: z.ZodType<Return['refundable_total']>;+ order: z.ZodOptional<z.ZodType<Exclude<Return['order'], undefined>>>;+ stock_location: z.ZodOptional<z.ZodType<Exclude<Return['stock_location'], undefined>>>;+ refunds: z.ZodOptional<z.ZodType<Exclude<Return['refunds'], undefined>>>;+ documents: z.ZodType<Return['documents']>;+ labels: z.ZodType<Return['labels']>;+ deliveries: z.ZodType<Return['deliveries']>;+}>;export type { Return };diff --git a/packages/admin-sdk/src/zod/generated/StockLevel.ts b/packages/admin-sdk/src/zod/generated/StockLevel.tsindex 537ad8d968..f475ba9bf4 100644--- a/packages/admin-sdk/src/zod/generated/StockLevel.ts+++ b/packages/admin-sdk/src/zod/generated/StockLevel.ts@@ -27,6 +27,29 @@ export const StockLevelSchema = z.object({available_count: z.number(),stock_location: StockLocationSchema.optional(),get variant() { return VariantSchema.optional(); },-}) as unknown as z.ZodObject<{ [K in keyof StockLevel]-?: z.ZodType<StockLevel[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<StockLevel['id']>;+ count_on_hand: z.ZodType<StockLevel['count_on_hand']>;+ backorderable: z.ZodType<StockLevel['backorderable']>;+ stock_location_id: z.ZodType<StockLevel['stock_location_id']>;+ variant_id: z.ZodType<StockLevel['variant_id']>;+ external_references: z.ZodType<StockLevel['external_references']>;+ metadata: z.ZodType<StockLevel['metadata']>;+ reserved_count: z.ZodType<StockLevel['reserved_count']>;+ incoming_count: z.ZodType<StockLevel['incoming_count']>;+ purchasable_count: z.ZodType<StockLevel['purchasable_count']>;+ variant_name: z.ZodType<StockLevel['variant_name']>;+ variant_sku: z.ZodType<StockLevel['variant_sku']>;+ created_at: z.ZodType<StockLevel['created_at']>;+ updated_at: z.ZodType<StockLevel['updated_at']>;+ stock_location_name: z.ZodType<StockLevel['stock_location_name']>;+ product_id: z.ZodType<StockLevel['product_id']>;+ options_text: z.ZodType<StockLevel['options_text']>;+ thumbnail_url: z.ZodType<StockLevel['thumbnail_url']>;+ allocated_count: z.ZodType<StockLevel['allocated_count']>;+ available_count: z.ZodType<StockLevel['available_count']>;+ stock_location: z.ZodOptional<z.ZodType<Exclude<StockLevel['stock_location'], undefined>>>;+ variant: z.ZodOptional<z.ZodType<Exclude<StockLevel['variant'], undefined>>>;+}>;export type { StockLevel };diff --git a/packages/admin-sdk/src/zod/generated/StoreCredit.ts b/packages/admin-sdk/src/zod/generated/StoreCredit.tsindex 8aba17c9e8..a9bb559248 100644--- a/packages/admin-sdk/src/zod/generated/StoreCredit.ts+++ b/packages/admin-sdk/src/zod/generated/StoreCredit.ts@@ -22,6 +22,24 @@ export const StoreCreditSchema = z.object({originator_id: z.string().nullable(),get customer() { return CustomerSchema.optional(); },created_by: AdminUserSchema.optional(),-}) as unknown as z.ZodObject<{ [K in keyof StoreCredit]-?: z.ZodType<StoreCredit[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<StoreCredit['id']>;+ amount: z.ZodType<StoreCredit['amount']>;+ amount_used: z.ZodType<StoreCredit['amount_used']>;+ amount_remaining: z.ZodType<StoreCredit['amount_remaining']>;+ currency: z.ZodType<StoreCredit['currency']>;+ memo: z.ZodType<StoreCredit['memo']>;+ metadata: z.ZodType<StoreCredit['metadata']>;+ created_at: z.ZodType<StoreCredit['created_at']>;+ updated_at: z.ZodType<StoreCredit['updated_at']>;+ amount_authorized: z.ZodType<StoreCredit['amount_authorized']>;+ outstanding: z.ZodType<StoreCredit['outstanding']>;+ customer_id: z.ZodType<StoreCredit['customer_id']>;+ created_by_id: z.ZodType<StoreCredit['created_by_id']>;+ originator_type: z.ZodType<StoreCredit['originator_type']>;+ originator_id: z.ZodType<StoreCredit['originator_id']>;+ customer: z.ZodOptional<z.ZodType<Exclude<StoreCredit['customer'], undefined>>>;+ created_by: z.ZodOptional<z.ZodType<Exclude<StoreCredit['created_by'], undefined>>>;+}>;export type { StoreCredit };diff --git a/packages/admin-sdk/src/zod/generated/Variant.ts b/packages/admin-sdk/src/zod/generated/Variant.tsindex 4abd71b1b3..d014426325 100644--- a/packages/admin-sdk/src/zod/generated/Variant.ts+++ b/packages/admin-sdk/src/zod/generated/Variant.ts@@ -67,6 +67,64 @@ export const VariantSchema = z.object({delivery_profile_id: z.string().nullable(),get prices() { return z.array(PriceSchema).optional(); },get stock_levels() { return z.array(StockLevelSchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Variant]-?: z.ZodType<Variant[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Variant['id']>;+ product_id: z.ZodType<Variant['product_id']>;+ sku: z.ZodType<Variant['sku']>;+ options_text: z.ZodType<Variant['options_text']>;+ track_inventory: z.ZodType<Variant['track_inventory']>;+ media_count: z.ZodType<Variant['media_count']>;+ preorder_ships_at: z.ZodType<Variant['preorder_ships_at']>;+ thumbnail_url: z.ZodType<Variant['thumbnail_url']>;+ purchasable: z.ZodType<Variant['purchasable']>;+ in_stock: z.ZodType<Variant['in_stock']>;+ backorderable: z.ZodType<Variant['backorderable']>;+ preorder: z.ZodType<Variant['preorder']>;+ weight: z.ZodType<Variant['weight']>;+ height: z.ZodType<Variant['height']>;+ width: z.ZodType<Variant['width']>;+ depth: z.ZodType<Variant['depth']>;+ weight_unit: z.ZodType<Variant['weight_unit']>;+ dimensions_unit: z.ZodType<Variant['dimensions_unit']>;+ minimum_order_quantity: z.ZodType<Variant['minimum_order_quantity']>;+ order_multiple: z.ZodType<Variant['order_multiple']>;+ purchase_unit: z.ZodType<Variant['purchase_unit']>;+ units_per_carton: z.ZodType<Variant['units_per_carton']>;+ price: z.ZodType<Variant['price']>;+ original_price: z.ZodType<Variant['original_price']>;+ seller_id: z.ZodType<Variant['seller_id']>;+ seller: z.ZodOptional<z.ZodType<Exclude<Variant['seller'], undefined>>>;+ primary_media: z.ZodOptional<z.ZodType<Exclude<Variant['primary_media'], undefined>>>;+ media: z.ZodOptional<z.ZodType<Exclude<Variant['media'], undefined>>>;+ option_values: z.ZodType<Variant['option_values']>;+ custom_fields: z.ZodOptional<z.ZodType<Exclude<Variant['custom_fields'], undefined>>>;+ prior_price: z.ZodOptional<z.ZodType<Exclude<Variant['prior_price'], undefined>>>;+ external_references: z.ZodType<Variant['external_references']>;+ metadata: z.ZodType<Variant['metadata']>;+ position: z.ZodType<Variant['position']>;+ cost_currency: z.ZodType<Variant['cost_currency']>;+ barcode: z.ZodType<Variant['barcode']>;+ backorder_limit: z.ZodType<Variant['backorder_limit']>;+ hs_code: z.ZodType<Variant['hs_code']>;+ country_of_origin: z.ZodType<Variant['country_of_origin']>;+ customs_description: z.ZodType<Variant['customs_description']>;+ carton_weight: z.ZodType<Variant['carton_weight']>;+ cartons_per_pallet: z.ZodType<Variant['cartons_per_pallet']>;+ deleted_at: z.ZodType<Variant['deleted_at']>;+ created_at: z.ZodType<Variant['created_at']>;+ updated_at: z.ZodType<Variant['updated_at']>;+ cost_price: z.ZodType<Variant['cost_price']>;+ preorderable: z.ZodType<Variant['preorderable']>;+ tax_category_id: z.ZodType<Variant['tax_category_id']>;+ carton_package_type_id: z.ZodType<Variant['carton_package_type_id']>;+ units_per_pallet: z.ZodType<Variant['units_per_pallet']>;+ available_stock: z.ZodType<Variant['available_stock']>;+ reserved_quantity: z.ZodType<Variant['reserved_quantity']>;+ total_on_hand: z.ZodType<Variant['total_on_hand']>;+ product_name: z.ZodType<Variant['product_name']>;+ delivery_profile_id: z.ZodType<Variant['delivery_profile_id']>;+ prices: z.ZodOptional<z.ZodType<Exclude<Variant['prices'], undefined>>>;+ stock_levels: z.ZodOptional<z.ZodType<Exclude<Variant['stock_levels'], undefined>>>;+}>;export type { Variant };diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.tsindex 77ae9cb88f..b35c8656de 100644--- a/packages/cli/src/commands/init.ts+++ b/packages/cli/src/commands/init.ts@@ -401,12 +401,13 @@ function resolveAdminCredentials(flags: { adminEmail?: string; adminPassword?: sexport async function openBrowser(url: string): Promise<void> {const os = platform()// `start` is built into cmd.exe rather than a program of its own; its first- // quoted argument is a window title, hence the empty one.+ // quoted argument is a window title. An empty argument reaches cmd.exe as+ // `""`, which is that empty title.const [cmd, args] =os === 'darwin'? ['open', [url]]: os === 'win32'- ? ['cmd', ['/c', 'start', '""', url]]+ ? ['cmd', ['/c', 'start', '', url]]: ['xdg-open', [url]]try {diff --git a/packages/sdk-core/scripts/generate-zod.ts b/packages/sdk-core/scripts/generate-zod.tsindex 29135fc2b5..db7c093f54 100644--- a/packages/sdk-core/scripts/generate-zod.ts+++ b/packages/sdk-core/scripts/generate-zod.ts@@ -266,7 +266,11 @@ function typeToZod(}}-function generateZodFile(parsed: ParsedType, cyclicTypes: Set<string>, typesImportDir: string): string {+function generateZodFile(+ parsed: ParsedType,+ cyclicTypes: Set<string>,+ typesImportDir: string,+): string {const referencedTypes = new Set<string>()const fieldLines: string[] = []@@ -311,9 +315,7 @@ function generateZodFile(parsed: ParsedType, cyclicTypes: Set<string>, typesImpo'',schemaDecl,...fieldLines,- cyclic- ? `}) as unknown as z.ZodObject<{ [K in keyof ${parsed.typeName}]-?: z.ZodType<${parsed.typeName}[K]> }>;`- : '});',+ cyclic ? `}) as unknown as z.ZodObject<{\n${cyclicShapeType(parsed)}\n}>;` : '});','',cyclic? `export type { ${parsed.typeName} };`@@ -324,6 +326,18 @@ function generateZodFile(parsed: ParsedType, cyclicTypes: Set<string>, typesImporeturn lines.join('\n')}+/** The object shape a cyclic schema is cast to: one entry per field, optional fields kept optional. */+function cyclicShapeType(parsed: ParsedType): string {+ return parsed.fields+ .map(({ name, optional }) => {+ const fieldType = `${parsed.typeName}['${name}']`+ return optional+ ? ` ${name}: z.ZodOptional<z.ZodType<Exclude<${fieldType}, undefined>>>;`+ : ` ${name}: z.ZodType<${fieldType}>;`+ })+ .join('\n')+}+/** Extract type references from field types */function extractTypeRefs(fields: FieldDef[]): Set<string> {const refs = new Set<string>()@@ -430,7 +444,11 @@ function generateFolder(typesDir: string, zodDir: string): void {for (const [, parsed] of parsedTypes) {fs.writeFileSync(path.join(zodDir, `${parsed.typeName}.ts`),- generateZodFile(parsed, cyclicTypes, path.relative(zodDir, typesDir).split(path.sep).join('/')),+ generateZodFile(+ parsed,+ cyclicTypes,+ path.relative(zodDir, typesDir).split(path.sep).join('/'),+ ),'utf-8',)generatedNames.push(parsed.typeName)diff --git a/packages/sdk/src/zod/generated/Category.ts b/packages/sdk/src/zod/generated/Category.tsindex 83a8c63a89..24ffe312ca 100644--- a/packages/sdk/src/zod/generated/Category.ts+++ b/packages/sdk/src/zod/generated/Category.ts@@ -25,6 +25,28 @@ export const CategorySchema = z.object({get children() { return z.array(CategorySchema).optional(); },get ancestors() { return z.array(CategorySchema).optional(); },custom_fields: z.array(CustomFieldSchema).optional(),-}) as unknown as z.ZodObject<{ [K in keyof Category]-?: z.ZodType<Category[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Category['id']>;+ name: z.ZodType<Category['name']>;+ permalink: z.ZodType<Category['permalink']>;+ position: z.ZodType<Category['position']>;+ depth: z.ZodType<Category['depth']>;+ meta_title: z.ZodType<Category['meta_title']>;+ meta_description: z.ZodType<Category['meta_description']>;+ meta_keywords: z.ZodType<Category['meta_keywords']>;+ children_count: z.ZodType<Category['children_count']>;+ parent_id: z.ZodType<Category['parent_id']>;+ description: z.ZodType<Category['description']>;+ description_html: z.ZodType<Category['description_html']>;+ image_url: z.ZodType<Category['image_url']>;+ square_image_url: z.ZodType<Category['square_image_url']>;+ is_root: z.ZodType<Category['is_root']>;+ is_child: z.ZodType<Category['is_child']>;+ is_leaf: z.ZodType<Category['is_leaf']>;+ parent: z.ZodOptional<z.ZodType<Exclude<Category['parent'], undefined>>>;+ children: z.ZodOptional<z.ZodType<Exclude<Category['children'], undefined>>>;+ ancestors: z.ZodOptional<z.ZodType<Exclude<Category['ancestors'], undefined>>>;+ custom_fields: z.ZodOptional<z.ZodType<Exclude<Category['custom_fields'], undefined>>>;+}>;export type { Category };diff --git a/packages/sdk/src/zod/generated/Country.ts b/packages/sdk/src/zod/generated/Country.tsindex f458b974eb..c16dd7f867 100644--- a/packages/sdk/src/zod/generated/Country.ts+++ b/packages/sdk/src/zod/generated/Country.ts@@ -12,6 +12,14 @@ export const CountrySchema = z.object({zipcode_required: z.boolean(),states: z.array(StateSchema).optional(),get market() { return MarketSchema.nullable().optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Country]-?: z.ZodType<Country[K]> }>;+}) as unknown as z.ZodObject<{+ iso: z.ZodType<Country['iso']>;+ iso3: z.ZodType<Country['iso3']>;+ name: z.ZodType<Country['name']>;+ states_required: z.ZodType<Country['states_required']>;+ zipcode_required: z.ZodType<Country['zipcode_required']>;+ states: z.ZodOptional<z.ZodType<Exclude<Country['states'], undefined>>>;+ market: z.ZodOptional<z.ZodType<Exclude<Country['market'], undefined>>>;+}>;export type { Country };diff --git a/packages/sdk/src/zod/generated/Market.ts b/packages/sdk/src/zod/generated/Market.tsindex 613a527e10..7cf0beea3b 100644--- a/packages/sdk/src/zod/generated/Market.ts+++ b/packages/sdk/src/zod/generated/Market.ts@@ -14,6 +14,17 @@ export const MarketSchema = z.object({country_isos: z.array(z.string()),supported_locales: z.array(z.string()),get countries() { return z.array(CountrySchema).optional(); },-}) as unknown as z.ZodObject<{ [K in keyof Market]-?: z.ZodType<Market[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Market['id']>;+ name: z.ZodType<Market['name']>;+ currency: z.ZodType<Market['currency']>;+ default_locale: z.ZodType<Market['default_locale']>;+ tax_inclusive: z.ZodType<Market['tax_inclusive']>;+ default: z.ZodType<Market['default']>;+ country_codes: z.ZodType<Market['country_codes']>;+ country_isos: z.ZodType<Market['country_isos']>;+ supported_locales: z.ZodType<Market['supported_locales']>;+ countries: z.ZodOptional<z.ZodType<Exclude<Market['countries'], undefined>>>;+}>;export type { Market };diff --git a/packages/seller-sdk/src/zod/generated/Category.ts b/packages/seller-sdk/src/zod/generated/Category.tsindex 83a8c63a89..24ffe312ca 100644--- a/packages/seller-sdk/src/zod/generated/Category.ts+++ b/packages/seller-sdk/src/zod/generated/Category.ts@@ -25,6 +25,28 @@ export const CategorySchema = z.object({get children() { return z.array(CategorySchema).optional(); },get ancestors() { return z.array(CategorySchema).optional(); },custom_fields: z.array(CustomFieldSchema).optional(),-}) as unknown as z.ZodObject<{ [K in keyof Category]-?: z.ZodType<Category[K]> }>;+}) as unknown as z.ZodObject<{+ id: z.ZodType<Category['id']>;+ name: z.ZodType<Category['name']>;+ permalink: z.ZodType<Category['permalink']>;+ position: z.ZodType<Category['position']>;+ depth: z.ZodType<Category['depth']>;+ meta_title: z.ZodType<Category['meta_title']>;+ meta_description: z.ZodType<Category['meta_description']>;+ meta_keywords: z.ZodType<Category['meta_keywords']>;+ children_count: z.ZodType<Category['children_count']>;+ parent_id: z.ZodType<Category['parent_id']>;+ description: z.ZodType<Category['description']>;+ description_html: z.ZodType<Category['description_html']>;+ image_url: z.ZodType<Category['image_url']>;+ square_image_url: z.ZodType<Category['square_image_url']>;+ is_root: z.ZodType<Category['is_root']>;+ is_child: z.ZodType<Category['is_child']>;+ is_leaf: z.ZodType<Category['is_leaf']>;+ parent: z.ZodOptional<z.ZodType<Exclude<Category['parent'], undefined>>>;+ children: z.ZodOptional<z.ZodType<Exclude<Category['children'], undefined>>>;+ ancestors: z.ZodOptional<z.ZodType<Exclude<Category['ancestors'], undefined>>>;+ custom_fields: z.ZodOptional<z.ZodType<Exclude<Category['custom_fields'], undefined>>>;+}>;export type { Category };