import * as v from "valibot";

export const tokenSchema = v.object({
    token: v.pipe(v.string(), v.minLength(1)),
});

export type OrchestratorPreparePayload = {
    deviceId: number;
    packageName: string;
    linkToken: string;
};

export type OrchestratorPrepareResponse = {
    data: {
        deviceId: number;
        containerId: string;
        packageName: string;
        serial: string;
        status: string;
    };
    error: null;
};
