# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Searches certstream for new certs matching query"


class Input:
    
    DOMAIN = "domain"
    LEVENSHTEIN = "levenshtein"
    QUERY = "query"
    

class Output:
    
    DOMAIN = "domain"
    SCORE = "score"
    

class SearchCertstreamInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "domain": {
      "type": "string",
      "title": "Domain",
      "description": "Domain to check",
      "default": "example.com",
      "order": 2
    },
    "levenshtein": {
      "type": "number",
      "title": "Levenshtein",
      "description": "Levenshtein distance from domain score to match",
      "order": 3
    },
    "query": {
      "type": "string",
      "title": "Query",
      "description": "Query to match",
      "order": 1
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class SearchCertstreamOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "domain": {
      "type": "string",
      "title": "Domain",
      "description": "Matched domain",
      "order": 2
    },
    "score": {
      "type": "number",
      "title": "Score",
      "description": "Phishing score",
      "order": 1
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
