package p.studio.debug.runtime;

import com.fasterxml.jackson.annotation.JsonProperty;

public record StudioRuntimeHandshakeClientToRuntime(
        @JsonProperty("type") String type) {

    public StudioRuntimeHandshakeClientToRuntime {
        if (!"start".equals(type) && !"ok".equals(type)) {
            throw new IllegalArgumentException("type must be 'start' or 'ok'");
        }
    }
}
