export type ErrorUserFacingDetailsWithMessage = { type: "toast" | "fullPageModal" | "shopifyStorePassword" | "billing.addPublishedElements" | "billing.addShopifyThemeProject" | "billing.addReploSite" | "agentBilling.shopifyThemeBuilder.publishedElements.exceeded" | "agentBilling.shopifyThemeBuilder.projects.exceeded" | "agentBilling.sites.exceeded" | "agentBilling.credits.exceeded" | "agentBilling.upgradeRequired"; message: string; isRecoverable?: boolean; detail?: string[] | string; key: string; details?: { [x: string]: unknown; }; usage?: { current: number; maximum: number; }; plan?: string; callToAction?: { type: "reload"; } | { type: "installApp"; } | { type: "goToHomepage"; } | { type: "navigateToProjectEditor"; } | { type: "closeModal"; } | { type: "navigateToLink"; link: { type: "errors.wrongJsonExtension"; } | { type: "errors.chunkingError"; } | { type: "errors.indexBackupError"; } | { type: "errors.shopifyIntegrationAlreadyAssigned"; } | { type: "errors.shopifyIntegrationMissingAccessScopes"; url: string; } | { type: "customLink"; url: string; } | { type: "errors.projectConnectedToBillingIntegrationForShopifyWorkspace"; } | { type: "errors.themeAssetSizeLimitExceeded"; } | { type: "errors.themeTotalSizeLimitExceeded"; } | { type: "errors.pageMetafieldDefinitionsChanged"; } | { type: "settings.billing"; }; }; }; export type ErrorUserFacingDetails = ErrorUserFacingDetailsWithMessage | { type: "uncommon_none"; key: string; usage?: { current: number; maximum: number; }; message?: string; isRecoverable?: boolean; detail?: string[] | string; };