require "dry/types" module Mihari module Types include Dry.Types() Int = Strict::Integer Nil = Strict::Nil Hash = Strict::Hash String = Strict::String Double = Strict::Float | Strict::Integer DateTime = Strict::DateTime DataTypes = Types::String.enum(*ALLOWED_DATA_TYPES) AnalyzerTypes = Types::String.enum( "binaryedge", "censys", "circl", "dnpedia", "dnstwister", "greynoise", "onyphe", "otx", "passivetotal", "pt", "pulsedive", "securitytrails", "shodan", "st", "virustotal_intelligence", "virustotal", "vt_intel", "vt" ) end end