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


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

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

class SearchCertstreamInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "domain": {
      "type": "string",
      "title": "Domain",
      "description": "Domain to check",
      "default": "google.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(komand.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)
