import * as z from "zod"; /** * HomeDashboardSummary contract (components#433, Fases 1-2). * * This is the wire shape for the future `GET` home-dashboard-summary endpoint * (ilovemacumba-api#418). It mirrors existing HomePage prop types wherever one * already exists so the mapper below is a thin translation layer, not a * second source of truth. * * NOTE: this file ONLY publishes the contract + mapper. The app does not call * the endpoint yet, and the API does not implement it yet. The server-side * cache (TTL 60s, see product decision #3) is documented on * `HomeDashboardSummarySchema` below for the API implementation to follow; * it is NOT implemented in this package. */ /** Whether the summary was computed for a terreiro-scoped medium or a personal (house-less) account. */ export declare const HomeDashboardScopeSchema: z.ZodEnum<["terreiro", "personal"]>; export type HomeDashboardScope = z.infer; /** * Per-section availability status. * - "ok": the section has data and should render normally. * - "empty": the section is allowed but there is nothing to show. * - "forbidden": the caller lacks permission/scope for the section. * * A section id that is absent from the map is treated the same as "forbidden" * by consumers (see `mapHomeDashboardSummaryToHomePageProps`), since the API * only includes keys it has an opinion about. */ export declare const HomeDashboardSectionStatusSchema: z.ZodEnum<["ok", "empty", "forbidden"]>; export type HomeDashboardSectionStatus = z.infer; /** Known section ids. Kept as a plain string record so the API can add new sections without a breaking schema change. */ export declare const HomeDashboardSectionsSchema: z.ZodRecord>; export type HomeDashboardSections = z.infer; export declare const HomeDashboardProfileSchema: z.ZodObject<{ firstName: z.ZodString; lastName: z.ZodString; avatarUrl: z.ZodNullable; /** * Onboarding progress flags. Shape is intentionally opaque at this stage * (no onboarding contract exists yet) so the API can evolve it without a * breaking change to this package. */ onboardingState: z.ZodRecord; }, "strip", z.ZodTypeAny, { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }, { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }>; export type HomeDashboardProfile = z.infer; /** Mirrors `MediumStatus` from HomePage.types.ts, minus the `undefined` member (the wire format always sends a string). */ export declare const HomeDashboardMediumStatusSchema: z.ZodEnum<["PENDING", "APPROVED", "REJECTED"]>; export type HomeDashboardMediumStatus = z.infer; /** * A single terreiro membership entry for the medium. Deliberately loose * (passthrough record) until the membership-list contract is defined; not * consumed by the Fase 1-2 mapper. */ export declare const HomeDashboardMediumMembershipSchema: z.ZodRecord; export type HomeDashboardMediumMembership = z.infer; export declare const HomeDashboardMediumSchema: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<["PENDING", "APPROVED", "REJECTED"]>; rejectionMessage: z.ZodNullable; memberships: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }, { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }>; export type HomeDashboardMedium = z.infer; export declare const HomeDashboardPermissionsSchema: z.ZodObject<{ codes: z.ZodArray; }, "strip", z.ZodTypeAny, { codes: string[]; }, { codes: string[]; }>; export type HomeDashboardPermissions = z.infer; /** Mirrors the inline `notificationItems` entry shape on `HomePageProps`, with the timestamp normalized to an ISO string for the wire format. */ export declare const HomeDashboardNotificationItemSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodString; message: z.ZodString; read: z.ZodBoolean; timestamp: z.ZodString; terreiroId: z.ZodOptional; imageUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }>; export type HomeDashboardNotificationItem = z.infer; export declare const HomeDashboardNotificationsSchema: z.ZodObject<{ unread: z.ZodNumber; items: z.ZodArray; imageUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }, { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }>; export type HomeDashboardNotifications = z.infer; /** * Highlighted product update. Shape is opaque (passthrough record) until the * product-updates feed contract is published; only `unreadCount` is consumed * by the Fase 1-2 mapper. */ export declare const HomeDashboardProductUpdateHighlightSchema: z.ZodRecord; export type HomeDashboardProductUpdateHighlight = z.infer; export declare const HomeDashboardProductUpdatesSchema: z.ZodObject<{ unreadCount: z.ZodNumber; highlight: z.ZodNullable>; }, "strip", z.ZodTypeAny, { unreadCount: number; highlight: Record | null; }, { unreadCount: number; highlight: Record | null; }>; export type HomeDashboardProductUpdates = z.infer; /** * Raw weekly engagement flags for the current week, scoped to the medium. * This is intentionally NOT the same shape as `WeeklyTask[]` (HomePage.types.ts): * turning these flags into tasks requires Portuguese CTA copy and routes that * do not exist in this contract yet. See `mapHomeDashboardSummaryToHomePageProps` * doc comment and the PR description for the Fase 3 follow-up. */ export declare const HomeDashboardWeeklySummarySchema: z.ZodObject<{ /** ISO date (YYYY-MM-DD) for the Monday of the summarized week. */ weekStart: z.ZodString; createdEventWeek: z.ZodBoolean; createdActivityWeek: z.ZodBoolean; rsvpWeek: z.ZodBoolean; presenceWeek: z.ZodBoolean; financeActedWeek: z.ZodBoolean; }, "strip", z.ZodTypeAny, { weekStart: string; createdEventWeek: boolean; createdActivityWeek: boolean; rsvpWeek: boolean; presenceWeek: boolean; financeActedWeek: boolean; }, { weekStart: string; createdEventWeek: boolean; createdActivityWeek: boolean; rsvpWeek: boolean; presenceWeek: boolean; financeActedWeek: boolean; }>; export type HomeDashboardWeeklySummary = z.infer; export declare const HomeDashboardCompletenessSchema: z.ZodObject<{ profile: z.ZodNullable; sections: z.ZodObject<{ profile: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; medium: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; contact: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; address: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; avatar: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; }, "strip", z.ZodTypeAny, { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }, { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }>; nextActions: z.ZodArray; }, "strip", z.ZodTypeAny, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; }, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; }>>; terreiro: z.ZodNullable; sections: z.ZodRecord; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>>; nextActions: z.ZodArray; }, "strip", z.ZodTypeAny, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; }, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; }>>; }, "strip", z.ZodTypeAny, { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; }, { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; }>; export type HomeDashboardCompleteness = z.infer; export declare const HomeDashboardCalendarSchema: z.ZodObject<{ viewMode: z.ZodEnum<["monthly", "weekly"]>; /** ISO date (YYYY-MM-DD) */ startDate: z.ZodString; /** ISO date (YYYY-MM-DD) */ endDate: z.ZodString; activities: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; events: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; ritualBaths: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; showEvents: z.ZodBoolean; }, "strip", z.ZodTypeAny, { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; }, { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; }>; export type HomeDashboardCalendar = z.infer; /** * Mirrors `HomePageRecentActivitySchema` (HomePage.types.ts), with the * timestamp normalized to an ISO string for the wire format instead of a * `Date` instance. */ export declare const HomeDashboardRecentActivitySchema: z.ZodObject<{ id: z.ZodNumber; title: z.ZodString; type: z.ZodEnum<["event", "financial", "inventory", "member"]>; description: z.ZodString; timestamp: z.ZodString; icon: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }>; export type HomeDashboardRecentActivity = z.infer; /** * Product decision (#433): the ranking part of the summary returns ONLY the * medium's own `rank`, `totalEntries`, and `positionChange`. It must never * include the ALL_TIME leaderboard list. The points/streak/badge fields are * reused from `GamificationSummary` (components/molecules/GamificationCard) * because the HomePage gamification card needs them to render; they are * optional here since a `forbidden`/`empty` section won't send them. */ export declare const HomeDashboardGamificationSchema: z.ZodObject<{ points: z.ZodOptional>; streak: z.ZodOptional; }, "strip", z.ZodTypeAny, { current: number; longest: number; lastActivityDate: string | null; }, { current: number; longest: number; lastActivityDate: string | null; }>>; totalBadges: z.ZodOptional; recentBadge: z.ZodOptional; tier: z.ZodEnum<["BRONZE", "SILVER", "GOLD", "PLATINUM", "DIAMOND"]>; earnedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; }, { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; }>>>; participationRate: z.ZodOptional; /** The medium's own rank. Never an ALL_TIME list. */ rank: z.ZodNullable; totalEntries: z.ZodNumber; positionChange: z.ZodNullable; }, "strip", z.ZodTypeAny, { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; }, { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; }>; export type HomeDashboardGamification = z.infer; /** Structural validation for `SupplyPlanSummary` (HomePage.types.ts). */ export declare const HomeDashboardSupplyPlanSchema: z.ZodNullable; demand: z.ZodObject<{ activityCount: z.ZodNumber; eventCount: z.ZodNumber; distinctItemCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { activityCount: number; eventCount: number; distinctItemCount: number; }, { activityCount: number; eventCount: number; distinctItemCount: number; }>; costs: z.ZodOptional; }, "strip", z.ZodTypeAny, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }>>; itemsToBuyCount: z.ZodNumber; readinessSummary: z.ZodOptional; missionsCount: z.ZodOptional; showCostMissionsTeaser: z.ZodOptional; coveragePercent: z.ZodOptional; itemsWithoutCostCount: z.ZodOptional; topItems: z.ZodArray; imageUrl: z.ZodOptional>; costSource: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }>>; /** Structural validation for `UsageHeatmapData` (HomePage.types.ts). */ export declare const HomeDashboardUsageHeatmapSchema: z.ZodNullable, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>; future: z.ZodBoolean; }, "strip", z.ZodTypeAny, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }>, "many">; summary: z.ZodObject<{ activeDays: z.ZodNumber; streak: z.ZodNumber; actionCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { streak: number; actionCount: number; activeDays: number; }, { streak: number; actionCount: number; activeDays: number; }>; }, "strip", z.ZodTypeAny, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }>>; /** `MoonData` already has a full Zod schema (components/MoonCard); reuse it directly. */ export declare const HomeDashboardMoonSchema: z.ZodNullable; moonrise: z.ZodString; moonrise_timestamp: z.ZodNumber; moonset: z.ZodString; moonset_timestamp: z.ZodNumber; next_lunar_eclipse: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; type: z.ZodString; visibility_regions: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; timestamp: number; datestamp: string; visibility_regions: string; }, { type: string; timestamp: number; datestamp: string; visibility_regions: string; }>; detailed: z.ZodObject<{ position: z.ZodObject<{ altitude: z.ZodNumber; azimuth: z.ZodNumber; distance: z.ZodNumber; parallactic_angle: z.ZodNumber; phase_angle: z.ZodNumber; }, "strip", z.ZodTypeAny, { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }, { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }>; visibility: z.ZodObject<{ visible_hours: z.ZodNumber; best_viewing_time: z.ZodString; visibility_rating: z.ZodString; illumination: z.ZodString; viewing_conditions: z.ZodObject<{ phase_quality: z.ZodString; recommended_equipment: z.ZodObject<{ filters: z.ZodString; telescope: z.ZodString; best_magnification: z.ZodString; }, "strip", z.ZodTypeAny, { filters: string; telescope: string; best_magnification: string; }, { filters: string; telescope: string; best_magnification: string; }>; }, "strip", z.ZodTypeAny, { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }, { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }>; }, "strip", z.ZodTypeAny, { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }, { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }>; upcoming_phases: z.ZodObject<{ new_moon: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; first_quarter: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; full_moon: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; last_quarter: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; }, "strip", z.ZodTypeAny, { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }, { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }>; illumination_details: z.ZodObject<{ percentage: z.ZodNumber; visible_fraction: z.ZodNumber; phase_angle: z.ZodNumber; }, "strip", z.ZodTypeAny, { percentage: number; phase_angle: number; visible_fraction: number; }, { percentage: number; phase_angle: number; visible_fraction: number; }>; }, "strip", z.ZodTypeAny, { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }, { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }>; events: z.ZodObject<{ moonrise_visible: z.ZodBoolean; moonset_visible: z.ZodBoolean; optimal_viewing_period: z.ZodObject<{ start_time: z.ZodString; end_time: z.ZodString; duration_hours: z.ZodNumber; viewing_quality: z.ZodString; recommendations: z.ZodArray; }, "strip", z.ZodTypeAny, { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }, { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }>; }, "strip", z.ZodTypeAny, { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }, { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }>; }, "strip", z.ZodTypeAny, { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; }, { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; }>>; export declare const HomeDashboardAffiliateSchema: z.ZodObject<{ shareUrl: z.ZodNullable; }, "strip", z.ZodTypeAny, { shareUrl: string | null; }, { shareUrl: string | null; }>; export type HomeDashboardAffiliate = z.infer; /** * Root HomeDashboardSummary schema. * * Server-side caching (product decision #3): the API is expected to cache * this payload per (scope, terreiroId | personal, mediumId) with a TTL of * 60 seconds. This PR only documents that contract; the cache itself is * implemented server-side (ilovemacumba-api#418), not in this package. */ export declare const HomeDashboardSummarySchema: z.ZodObject<{ scope: z.ZodEnum<["terreiro", "personal"]>; /** Present for `scope: "terreiro"`; absent/null for `scope: "personal"`. */ terreiroId: z.ZodOptional>; mediumId: z.ZodString; /** ISO 8601 timestamp of when the server generated this payload. */ generatedAt: z.ZodString; profile: z.ZodObject<{ firstName: z.ZodString; lastName: z.ZodString; avatarUrl: z.ZodNullable; /** * Onboarding progress flags. Shape is intentionally opaque at this stage * (no onboarding contract exists yet) so the API can evolve it without a * breaking change to this package. */ onboardingState: z.ZodRecord; }, "strip", z.ZodTypeAny, { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }, { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }>; medium: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<["PENDING", "APPROVED", "REJECTED"]>; rejectionMessage: z.ZodNullable; memberships: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }, { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }>; permissions: z.ZodObject<{ codes: z.ZodArray; }, "strip", z.ZodTypeAny, { codes: string[]; }, { codes: string[]; }>; notifications: z.ZodObject<{ unread: z.ZodNumber; items: z.ZodArray; imageUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }, { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }, { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }>; productUpdates: z.ZodObject<{ unreadCount: z.ZodNumber; highlight: z.ZodNullable>; }, "strip", z.ZodTypeAny, { unreadCount: number; highlight: Record | null; }, { unreadCount: number; highlight: Record | null; }>; weeklySummary: z.ZodOptional>; completeness: z.ZodOptional; sections: z.ZodObject<{ profile: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; medium: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; contact: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; address: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; avatar: z.ZodObject<{ complete: z.ZodBoolean; missing: z.ZodArray; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>; }, "strip", z.ZodTypeAny, { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }, { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }>; nextActions: z.ZodArray; }, "strip", z.ZodTypeAny, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; }, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; }>>; terreiro: z.ZodNullable; sections: z.ZodRecord; percentage: z.ZodNumber; }, "strip", z.ZodTypeAny, { complete: boolean; percentage: number; missing: string[]; }, { complete: boolean; percentage: number; missing: string[]; }>>; nextActions: z.ZodArray; }, "strip", z.ZodTypeAny, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; }, { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; }>>; }, "strip", z.ZodTypeAny, { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; }, { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; }>>; /** Absent/null for `scope: "personal"` unless/until a personal calendar contract is defined. */ calendar: z.ZodOptional; /** ISO date (YYYY-MM-DD) */ startDate: z.ZodString; /** ISO date (YYYY-MM-DD) */ endDate: z.ZodString; activities: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; events: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; ritualBaths: z.ZodArray; type: z.ZodEnum<["activity", "event", "ritual_bath"]>; activityType: z.ZodOptional>; color: z.ZodOptional; status: z.ZodOptional; source: z.ZodOptional>; description: z.ZodOptional; imageUrl: z.ZodOptional; category: z.ZodOptional; steps: z.ZodOptional; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; icon?: string | undefined; }, { text: string; icon?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }, { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }>, "many">; showEvents: z.ZodBoolean; }, "strip", z.ZodTypeAny, { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; }, { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; }>>>; highlights: z.ZodArray; name: z.ZodString; type: z.ZodOptional>; date: z.ZodOptional; time: z.ZodOptional; endTime: z.ZodOptional; address: z.ZodOptional; participantsCount: z.ZodOptional; status: z.ZodString; qrCheckinEnabled: z.ZodOptional>; qrReleaseOffsetMinutes: z.ZodOptional>; qrCheckinGraceMinutes: z.ZodOptional>; checkinStartWindowMinutes: z.ZodOptional>; checkinEndWindowMinutes: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }, { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }>, "many">; recentActivities: z.ZodArray; description: z.ZodString; timestamp: z.ZodString; icon: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }, { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }>, "many">; gamification: z.ZodNullable>; streak: z.ZodOptional; }, "strip", z.ZodTypeAny, { current: number; longest: number; lastActivityDate: string | null; }, { current: number; longest: number; lastActivityDate: string | null; }>>; totalBadges: z.ZodOptional; recentBadge: z.ZodOptional; tier: z.ZodEnum<["BRONZE", "SILVER", "GOLD", "PLATINUM", "DIAMOND"]>; earnedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; }, { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; }>>>; participationRate: z.ZodOptional; /** The medium's own rank. Never an ALL_TIME list. */ rank: z.ZodNullable; totalEntries: z.ZodNumber; positionChange: z.ZodNullable; }, "strip", z.ZodTypeAny, { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; }, { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; }>>; supplyPlan: z.ZodNullable; demand: z.ZodObject<{ activityCount: z.ZodNumber; eventCount: z.ZodNumber; distinctItemCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { activityCount: number; eventCount: number; distinctItemCount: number; }, { activityCount: number; eventCount: number; distinctItemCount: number; }>; costs: z.ZodOptional; }, "strip", z.ZodTypeAny, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }, { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; }>>; itemsToBuyCount: z.ZodNumber; readinessSummary: z.ZodOptional; missionsCount: z.ZodOptional; showCostMissionsTeaser: z.ZodOptional; coveragePercent: z.ZodOptional; itemsWithoutCostCount: z.ZodOptional; topItems: z.ZodArray; imageUrl: z.ZodOptional>; costSource: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }, { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }, { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; }>>; usageHeatmap: z.ZodNullable, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>; future: z.ZodBoolean; }, "strip", z.ZodTypeAny, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }, { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }>, "many">; summary: z.ZodObject<{ activeDays: z.ZodNumber; streak: z.ZodNumber; actionCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { streak: number; actionCount: number; activeDays: number; }, { streak: number; actionCount: number; activeDays: number; }>; }, "strip", z.ZodTypeAny, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }, { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; }>>; moon: z.ZodNullable; moonrise: z.ZodString; moonrise_timestamp: z.ZodNumber; moonset: z.ZodString; moonset_timestamp: z.ZodNumber; next_lunar_eclipse: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; type: z.ZodString; visibility_regions: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; timestamp: number; datestamp: string; visibility_regions: string; }, { type: string; timestamp: number; datestamp: string; visibility_regions: string; }>; detailed: z.ZodObject<{ position: z.ZodObject<{ altitude: z.ZodNumber; azimuth: z.ZodNumber; distance: z.ZodNumber; parallactic_angle: z.ZodNumber; phase_angle: z.ZodNumber; }, "strip", z.ZodTypeAny, { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }, { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }>; visibility: z.ZodObject<{ visible_hours: z.ZodNumber; best_viewing_time: z.ZodString; visibility_rating: z.ZodString; illumination: z.ZodString; viewing_conditions: z.ZodObject<{ phase_quality: z.ZodString; recommended_equipment: z.ZodObject<{ filters: z.ZodString; telescope: z.ZodString; best_magnification: z.ZodString; }, "strip", z.ZodTypeAny, { filters: string; telescope: string; best_magnification: string; }, { filters: string; telescope: string; best_magnification: string; }>; }, "strip", z.ZodTypeAny, { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }, { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }>; }, "strip", z.ZodTypeAny, { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }, { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }>; upcoming_phases: z.ZodObject<{ new_moon: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; first_quarter: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; full_moon: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; last_quarter: z.ZodObject<{ last: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; next: z.ZodObject<{ timestamp: z.ZodNumber; datestamp: z.ZodString; days_ago: z.ZodOptional; days_ahead: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }, { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }>; }, "strip", z.ZodTypeAny, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }, { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }>; }, "strip", z.ZodTypeAny, { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }, { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }>; illumination_details: z.ZodObject<{ percentage: z.ZodNumber; visible_fraction: z.ZodNumber; phase_angle: z.ZodNumber; }, "strip", z.ZodTypeAny, { percentage: number; phase_angle: number; visible_fraction: number; }, { percentage: number; phase_angle: number; visible_fraction: number; }>; }, "strip", z.ZodTypeAny, { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }, { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }>; events: z.ZodObject<{ moonrise_visible: z.ZodBoolean; moonset_visible: z.ZodBoolean; optimal_viewing_period: z.ZodObject<{ start_time: z.ZodString; end_time: z.ZodString; duration_hours: z.ZodNumber; viewing_quality: z.ZodString; recommendations: z.ZodArray; }, "strip", z.ZodTypeAny, { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }, { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }>; }, "strip", z.ZodTypeAny, { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }, { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }>; }, "strip", z.ZodTypeAny, { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; }, { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; }>>; affiliate: z.ZodOptional; }, "strip", z.ZodTypeAny, { shareUrl: string | null; }, { shareUrl: string | null; }>>; sections: z.ZodRecord>; }, "strip", z.ZodTypeAny, { medium: { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }; scope: "terreiro" | "personal"; profile: { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }; mediumId: string; sections: Record; permissions: { codes: string[]; }; moon: { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; } | null; highlights: { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }[]; notifications: { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }; usageHeatmap: { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; } | null; gamification: { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; } | null; supplyPlan: { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; } | null; recentActivities: { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }[]; generatedAt: string; productUpdates: { unreadCount: number; highlight: Record | null; }; terreiroId?: string | null | undefined; calendar?: { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; } | null | undefined; weeklySummary?: { weekStart: string; createdEventWeek: boolean; createdActivityWeek: boolean; rsvpWeek: boolean; presenceWeek: boolean; financeActedWeek: boolean; } | undefined; completeness?: { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; } | undefined; affiliate?: { shareUrl: string | null; } | undefined; }, { medium: { id: string; status: "PENDING" | "APPROVED" | "REJECTED"; rejectionMessage: string | null; memberships: Record[]; }; scope: "terreiro" | "personal"; profile: { firstName: string; lastName: string; avatarUrl: string | null; onboardingState: Record; }; mediumId: string; sections: Record; permissions: { codes: string[]; }; moon: { emoji: string; events: { moonrise_visible: boolean; moonset_visible: boolean; optimal_viewing_period: { start_time: string; end_time: string; duration_hours: number; viewing_quality: string; recommendations: string[]; }; }; illumination: string; phase: number; phase_name: string; major_phase: string; stage: string; age_days: number; lunar_cycle: string; zodiac: { sun_sign: string; moon_sign: string; }; moonrise: string; moonrise_timestamp: number; moonset: string; moonset_timestamp: number; next_lunar_eclipse: { type: string; timestamp: number; datestamp: string; visibility_regions: string; }; detailed: { position: { azimuth: number; altitude: number; distance: number; parallactic_angle: number; phase_angle: number; }; visibility: { visible_hours: number; best_viewing_time: string; visibility_rating: string; illumination: string; viewing_conditions: { phase_quality: string; recommended_equipment: { filters: string; telescope: string; best_magnification: string; }; }; }; upcoming_phases: { new_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; first_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; full_moon: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; last_quarter: { next: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; last: { timestamp: number; datestamp: string; name?: string | undefined; description?: string | undefined; days_ago?: number | undefined; days_ahead?: number | undefined; }; }; }; illumination_details: { percentage: number; phase_angle: number; visible_fraction: number; }; }; } | null; highlights: { id: string | number; status: string; name: string; address?: string | undefined; time?: string | undefined; type?: "event" | "activity" | undefined; date?: string | undefined; endTime?: string | undefined; qrCheckinEnabled?: boolean | null | undefined; checkinStartWindowMinutes?: number | null | undefined; checkinEndWindowMinutes?: number | null | undefined; qrReleaseOffsetMinutes?: number | null | undefined; qrCheckinGraceMinutes?: number | null | undefined; participantsCount?: number | undefined; }[]; notifications: { items: { id: string; message: string; type: string; timestamp: string; read: boolean; imageUrl?: string | undefined; terreiroId?: string | undefined; }[]; unread: number; }; usageHeatmap: { summary: { streak: number; actionCount: number; activeDays: number; }; from: string; to: string; days: { date: string; level: 0 | 2 | 1 | 3; opened: boolean; actionCount: number; future: boolean; }[]; timezone: string; today: string; weeks: number; } | null; gamification: { rank: number | null; positionChange: number | null; totalEntries: number; points?: { monthly: number; yearly: number; weekly: number; total: number; } | undefined; streak?: { current: number; longest: number; lastActivityDate: string | null; } | undefined; recentBadge?: { id: string; type: "PARTICIPATION" | "STREAK" | "MILESTONE" | "SPECIAL" | "SEASONAL"; name: string; icon: string; description: string; tier: "BRONZE" | "SILVER" | "GOLD" | "PLATINUM" | "DIAMOND"; earnedAt?: string | undefined; } | null | undefined; totalBadges?: number | undefined; participationRate?: number | undefined; } | null; supplyPlan: { stock: { totalItems: number; totalUnits: number; lowStockCount: number; outOfStockCount: number; }; demand: { activityCount: number; eventCount: number; distinctItemCount: number; }; itemsToBuyCount: number; topItems: { id: string; name: string; unit: string; toBuyQuantity: number; imageUrl?: string | null | undefined; estimatedCost?: number | undefined; costSource?: "manual" | "purchase_history" | null | undefined; }[]; itemsWithoutCostCount?: number | undefined; coveragePercent?: number | undefined; costs?: { totalEstimatedCost: number; itemsWithCostCount: number; itemsWithoutCostCount: number; coveragePercent: number; formatted: { totalEstimatedCost: string; }; } | undefined; readinessSummary?: string | undefined; missionsCount?: number | undefined; showCostMissionsTeaser?: boolean | undefined; } | null; recentActivities: { title: string; id: number; type: "event" | "member" | "inventory" | "financial"; icon: string; description: string; timestamp: string; }[]; generatedAt: string; productUpdates: { unreadCount: number; highlight: Record | null; }; terreiroId?: string | null | undefined; calendar?: { events: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; activities: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; ritualBaths: { title: string; id: string; type: "event" | "activity" | "ritual_bath"; date: string; color?: string | undefined; source?: "scheduled" | "recommendation" | undefined; time?: string | undefined; status?: string | undefined; description?: string | undefined; category?: string | undefined; imageUrl?: string | undefined; steps?: { text: string; icon?: string | undefined; }[] | undefined; activityType?: "ACTIVITY" | "RITUAL" | undefined; }[]; startDate: string; endDate: string; viewMode: "monthly" | "weekly"; showEvents: boolean; } | null | undefined; weeklySummary?: { weekStart: string; createdEventWeek: boolean; createdActivityWeek: boolean; rsvpWeek: boolean; presenceWeek: boolean; financeActedWeek: boolean; } | undefined; completeness?: { terreiro: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: Record; nextActions: string[]; } | null; profile: { completenessScore: number; badgeTier: "STARTER" | "BASIC" | "ACTIVE" | "VERIFIED"; sections: { address: { complete: boolean; percentage: number; missing: string[]; }; medium: { complete: boolean; percentage: number; missing: string[]; }; avatar: { complete: boolean; percentage: number; missing: string[]; }; profile: { complete: boolean; percentage: number; missing: string[]; }; contact: { complete: boolean; percentage: number; missing: string[]; }; }; nextActions: string[]; } | null; } | undefined; affiliate?: { shareUrl: string | null; } | undefined; }>; export type HomeDashboardSummary = z.infer; /** Convenience alias for a section id key used in `sections`. Not exhaustive — the API may add new ids. */ export type HomeDashboardSectionId = "profile" | "medium" | "permissions" | "notifications" | "productUpdates" | "weeklySummary" | "completeness" | "calendar" | "highlights" | "recentActivities" | "gamification" | "supplyPlan" | "usageHeatmap" | "moon" | "affiliate";