import { ProfileTier } from '@komi-app/meta-profiles';
export var SubscriptionStatus;
(function (SubscriptionStatus) {
    SubscriptionStatus["ACTIVE"] = "active";
    SubscriptionStatus["CANCELED"] = "canceled";
    SubscriptionStatus["INCOMPLETE"] = "incomplete";
    SubscriptionStatus["INCOMPLETE_EXPIRED"] = "incomplete_expired";
    SubscriptionStatus["PAST_DUE"] = "past_due";
    SubscriptionStatus["TRIALING"] = "trialing";
    SubscriptionStatus["UNPAID"] = "unpaid";
})(SubscriptionStatus || (SubscriptionStatus = {}));
import { z } from 'zod';
import { createZodValidator } from '../../helpers/validation.js';
export const ZProfilePlan = z.object({
    profileId: z.string(),
    status: z.nativeEnum(SubscriptionStatus),
    synced: z.boolean(),
    tier: z.nativeEnum(ProfileTier).optional()
});
export const ZProfilePlanBody = z.object({
    status: z.nativeEnum(SubscriptionStatus),
    tier: z.nativeEnum(ProfileTier).optional(),
    profileId: z.string()
});
export const withProfilePlanBody = createZodValidator(ZProfilePlanBody);
