import { z } from 'zod';
export const ZTikTokOAuthTokenResponse = z.object({
    access_token: z.string(),
    expires_in: z.number(),
    open_id: z.string(),
    refresh_expires_in: z.number(),
    refresh_token: z.string(),
    scope: z.string(),
    token_type: z.string()
});
export const ZTikTokUserInfoResponse = z.object({
    data: z.object({
        user: z.object({
            username: z.string(),
            open_id: z.string().optional()
        })
    }),
    error: z.object({
        code: z.string(),
        message: z.string(),
        log_id: z.string()
    })
});
export const ZTikTokCallbackQuery = z.object({
    code: z.string(),
    scopes: z.string(),
    state: z.string()
});
