import { z } from 'zod';
import { ZBaseAutomationItem, ZBaseAutomationLink } from './base.js';
export var InstagramContentType;
(function (InstagramContentType) {
    InstagramContentType["POSTS"] = "posts";
    InstagramContentType["REELS"] = "reels";
})(InstagramContentType || (InstagramContentType = {}));
export const ZInstagramContentType = z.nativeEnum(InstagramContentType);
export const ZInstagramAccount = z.object({
    id: z.string().uuid(),
    profileId: z.string(),
    instagramId: z.string(),
    accessToken: z.string(),
    refreshToken: z.string(),
    expiry: z.string().datetime(),
    username: z.string(),
    deletedAt: z.string().datetime().nullable()
});
export const ZInstagramAutomationLink = ZBaseAutomationLink.extend({
    instagramItemId: z.string().uuid().optional().nullable()
});
export const ZInstagramAutomationItem = ZBaseAutomationItem.extend({
    type: ZInstagramContentType,
    numberOfItems: z.number(),
    instagramAccountId: z.string().uuid().nullable(),
    links: z.array(ZInstagramAutomationLink)
});
