<reponame>lukaszlaszuk/insightconnect-plugins<filename>plugins/domaintools_phisheye/icon_domaintools_phisheye/actions/domain_list/schema.py
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json


class Component:
    DESCRIPTION = "Returns domain results for monitored terms"


class Input:
    DAYS_BACK = "days_back"
    QUERY = "query"
    

class Output:
    DATE = "date"
    DOMAINS = "domains"
    TERM = "term"
    

class DomainListInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "days_back": {
      "type": "integer",
      "title": "Days Back",
      "description": "Use this parameter in exceptional circumstances where you need to find domains up to seven days prior to the current date. Set the value to an integer in the range of 1-7",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7
      ],
      "order": 2
    },
    "query": {
      "type": "string",
      "title": "Query",
      "description": "Term for which the day's domains are desired",
      "order": 1
    }
  },
  "required": [
    "query"
  ]
}
    """)

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


class DomainListOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "date": {
      "type": "string",
      "title": "Date",
      "description": "Date when query run",
      "order": 2
    },
    "domains": {
      "type": "array",
      "title": "Domains",
      "description": "Domains for query",
      "items": {
        "$ref": "#/definitions/domains"
      },
      "order": 3
    },
    "term": {
      "type": "string",
      "title": "Term",
      "description": "Query term",
      "order": 1
    }
  },
  "required": [
    "domains",
    "term"
  ],
  "definitions": {
    "domains": {
      "type": "object",
      "title": "domains",
      "properties": {
        "created_date": {
          "type": "string",
          "title": "Created Date",
          "description": "Date when domain created",
          "order": 3
        },
        "domain": {
          "type": "string",
          "title": "Domain",
          "description": "Links to WHOIS page for the domain",
          "order": 1
        },
        "ip_addresses": {
          "type": "array",
          "title": "IP Addresses",
          "description": "IPv4 addresses",
          "items": {
            "$ref": "#/definitions/ip_addresses"
          },
          "order": 5
        },
        "name_servers": {
          "type": "array",
          "title": "Name Servers",
          "description": "Name servers used by domain",
          "items": {
            "type": "string"
          },
          "order": 6
        },
        "registrant_email": {
          "type": "string",
          "title": "Registrant Email",
          "description": "Email used for register",
          "order": 4
        },
        "registrar_name": {
          "type": "string",
          "title": "Registrar Name",
          "description": "Registrar name where domain was registered",
          "order": 7
        },
        "risk_score": {
          "type": "integer",
          "title": "Risk Score",
          "description": "Calculated by the Domain Risk Score",
          "order": 8
        },
        "tld": {
          "type": "string",
          "title": "TLD",
          "description": "TLD domain",
          "order": 2
        }
      },
      "required": [
        "domain",
        "tld"
      ],
      "definitions": {
        "ip_addresses": {
          "type": "object",
          "title": "ip_addresses",
          "properties": {
            "country_code": {
              "type": "string",
              "title": "Country Code",
              "description": "Country code",
              "order": 2
            },
            "ip": {
              "type": "string",
              "title": "IPv4",
              "description": "IPv4 address",
              "order": 1
            }
          },
          "required": [
            "country_code",
            "ip"
          ]
        }
      }
    },
    "ip_addresses": {
      "type": "object",
      "title": "ip_addresses",
      "properties": {
        "country_code": {
          "type": "string",
          "title": "Country Code",
          "description": "Country code",
          "order": 2
        },
        "ip": {
          "type": "string",
          "title": "IPv4",
          "description": "IPv4 address",
          "order": 1
        }
      },
      "required": [
        "country_code",
        "ip"
      ]
    }
  }
}
    """)

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

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


class Component:
    DESCRIPTION = "Returns domain results for monitored terms"


class Input:
    DAYS_BACK = "days_back"
    QUERY = "query"
    

class Output:
    DATE = "date"
    DOMAINS = "domains"
    TERM = "term"
    

class DomainListInput(komand.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "days_back": {
      "type": "integer",
      "title": "Days Back",
      "description": "Use this parameter in exceptional circumstances where you need to find domains up to seven days prior to the current date. Set the value to an integer in the range of 1-7",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7
      ],
      "order": 2
    },
    "query": {
      "type": "string",
      "title": "Query",
      "description": "Term for which the day's domains are desired",
      "order": 1
    }
  },
  "required": [
    "query"
  ]
}
    """)

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


class DomainListOutput(komand.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "date": {
      "type": "string",
      "title": "Date",
      "description": "Date when query run",
      "order": 2
    },
    "domains": {
      "type": "array",
      "title": "Domains",
      "description": "Domains for query",
      "items": {
        "$ref": "#/definitions/domains"
      },
      "order": 3
    },
    "term": {
      "type": "string",
      "title": "Term",
      "description": "Query term",
      "order": 1
    }
  },
  "required": [
    "domains",
    "term"
  ],
  "definitions": {
    "domains": {
      "type": "object",
      "title": "domains",
      "properties": {
        "created_date": {
          "type": "string",
          "title": "Created Date",
          "description": "Date when domain created",
          "order": 3
        },
        "domain": {
          "type": "string",
          "title": "Domain",
          "description": "Links to WHOIS page for the domain",
          "order": 1
        },
        "ip_addresses": {
          "type": "array",
          "title": "IP Addresses",
          "description": "IPv4 addresses",
          "items": {
            "$ref": "#/definitions/ip_addresses"
          },
          "order": 5
        },
        "name_servers": {
          "type": "array",
          "title": "Name Servers",
          "description": "Name servers used by domain",
          "items": {
            "type": "string"
          },
          "order": 6
        },
        "registrant_email": {
          "type": "string",
          "title": "Registrant Email",
          "description": "Email used for register",
          "order": 4
        },
        "registrar_name": {
          "type": "string",
          "title": "Registrar Name",
          "description": "Registrar name where domain was registered",
          "order": 7
        },
        "risk_score": {
          "type": "integer",
          "title": "Risk Score",
          "description": "Calculated by the Domain Risk Score",
          "order": 8
        },
        "tld": {
          "type": "string",
          "title": "TLD",
          "description": "TLD domain",
          "order": 2
        }
      },
      "required": [
        "domain",
        "tld"
      ],
      "definitions": {
        "ip_addresses": {
          "type": "object",
          "title": "ip_addresses",
          "properties": {
            "country_code": {
              "type": "string",
              "title": "Country Code",
              "description": "Country code",
              "order": 2
            },
            "ip": {
              "type": "string",
              "title": "IPv4",
              "description": "IPv4 address",
              "order": 1
            }
          },
          "required": [
            "country_code",
            "ip"
          ]
        }
      }
    },
    "ip_addresses": {
      "type": "object",
      "title": "ip_addresses",
      "properties": {
        "country_code": {
          "type": "string",
          "title": "Country Code",
          "description": "Country code",
          "order": 2
        },
        "ip": {
          "type": "string",
          "title": "IPv4",
          "description": "IPv4 address",
          "order": 1
        }
      },
      "required": [
        "country_code",
        "ip"
      ]
    }
  }
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "days_back": {       "type": "integer",       "title": "Days Back",       "description": "Use this parameter in exceptional circumstances where you need to find domains up to seven days prior to the current date. Set the value to an integer in the range of 1-7",       "enum": [         0,         1,         2,         3,         4,         5,         6,         7       ],       "order": 2     },     "query": {       "type": "string",       "title": "Query",       "description": "Term for which the day's domains are desired",       "order": 1     }   },   "required": [     "query"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "date": {       "type": "string",       "title": "Date",       "description": "Date when query run",       "order": 2     },     "domains": {       "type": "array",       "title": "Domains",       "description": "Domains for query",       "items": {         "$ref": "#/definitions/domains"       },       "order": 3     },     "term": {       "type": "string",       "title": "Term",       "description": "Query term",       "order": 1     }   },   "required": [     "domains",     "term"   ],   "definitions": {     "domains": {       "type": "object",       "title": "domains",       "properties": {         "created_date": {           "type": "string",           "title": "Created Date",           "description": "Date when domain created",           "order": 3         },         "domain": {           "type": "string",           "title": "Domain",           "description": "Links to WHOIS page for the domain",           "order": 1         },         "ip_addresses": {           "type": "array",           "title": "IP Addresses",           "description": "IPv4 addresses",           "items": {             "$ref": "#/definitions/ip_addresses"           },           "order": 5         },         "name_servers": {           "type": "array",           "title": "Name Servers",           "description": "Name servers used by domain",           "items": {             "type": "string"           },           "order": 6         },         "registrant_email": {           "type": "string",           "title": "Registrant Email",           "description": "Email used for register",           "order": 4         },         "registrar_name": {           "type": "string",           "title": "Registrar Name",           "description": "Registrar name where domain was registered",           "order": 7         },         "risk_score": {           "type": "integer",           "title": "Risk Score",           "description": "Calculated by the Domain Risk Score",           "order": 8         },         "tld": {           "type": "string",           "title": "TLD",           "description": "TLD domain",           "order": 2         }       },       "required": [         "domain",         "tld"       ],       "definitions": {         "ip_addresses": {           "type": "object",           "title": "ip_addresses",           "properties": {             "country_code": {               "type": "string",               "title": "Country Code",               "description": "Country code",               "order": 2             },             "ip": {               "type": "string",               "title": "IPv4",               "description": "IPv4 address",               "order": 1             }           },           "required": [             "country_code",             "ip"           ]         }       }     },     "ip_addresses": {       "type": "object",       "title": "ip_addresses",       "properties": {         "country_code": {           "type": "string",           "title": "Country Code",           "description": "Country code",           "order": 2         },         "ip": {           "type": "string",           "title": "IPv4",           "description": "IPv4 address",           "order": 1         }       },       "required": [         "country_code",         "ip"       ]     }   } }