package io.xpipe.beacon.api;

import io.xpipe.beacon.BeaconInterface;
import io.xpipe.core.FilePath;

import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;

import java.util.UUID;

public class FsScriptExchange extends BeaconInterface<FsScriptExchange.Request> {

    @Override
    public String getPath() {
        return "/fs/script";
    }

    @Jacksonized
    @Builder
    @Value
    public static class Request {
        @NonNull
        UUID connection;

        @NonNull
        UUID blob;
    }

    @Jacksonized
    @Builder
    @Value
    public static class Response {
        @NonNull
        FilePath path;
    }
}
