wordpress-plugin install-on-new-sites :
  help: Install Imunify Security plugin for WordPress on new WordPress sites.
  cli:
    users:
      - root

wordpress-plugin tidy-up :
  help: Tidy-up on WordPress sites where the Imunify Security plugin for WordPress was manually removed.
  cli:
    users:
      - root

wordpress-plugin update :
  help: Updates Imunify Security plugin for WordPress to the latest version on all WordPress sites where it's already installed.
  cli:
    users:
      - root

wordpress-plugin install-and-update :
  help: Install Imunify Security plugin for WordPress on new sites, tidy-up manually deleted plugins, and update existing installations. This combines install-on-new-sites, tidy-up, and update in a single atomic operation.
  cli:
    users:
      - root

wordpress-plugin list-incidents:
  help: "List WordPress incidents"
  type: dict
  return_type: WordpressIncidentsListAgentResponse
  cli:
    users:
      - root
  schema:
    user:
      type: string
      nullable: true
    site_search:
      type: string
      nullable: true
      help: |
        Filter by site path
    by_abuser_ip:
      type: string
      nullable: true
      help: |
        Filter by abuser IP address
    by_country_code:
      type: string
      nullable: true
      help: |
        Filter by country code
    by_domain:
      type: string
      nullable: true
      help: |
        Filter by domain
    search:
      type: string
      nullable: true
      help: |
        Search by IP address, name, description
    since:
      type: integer
      coerce: int
      nullable: true
      check_with:
        - timestamp
      help: |
        Show incidents after this unix timestamp (inclusive)
    to:
      type: integer
      coerce: int
      nullable: true
      check_with:
        - timestamp
      help: |
        Show incidents before this unix timestamp (inclusive)
    order_by:
      type: list
      nullable: true
      schema:
        type: order_by
        coerce: order_by
      help: |
        List of fields to order by, each followed by a `+` (ascending) or `-` (descending).
        Supported fields: timestamp, severity, domain, abuser.
        E.g. `["timestamp-","severity-"]` would order by timestamp descending and severity descending.
    limit:
      type: integer
      coerce: int
      default: 50
    offset:
      type: integer
      coerce: int
      default: 0


wordpress-plugin list-sites:
  help: List WordPress sites with Imunify Security plugin installed.
  cli:
    users:
      - root
  type: dict
  return_type: WordpressDomainsResponse
  schema:
    user:
      type: string
      nullable: true
      help: |
        Admins can filter results by user.
        Users can only see the sites relevant to them.
    limit:
      type: integer
      default: 50
      coerce: int
      help: Maximum number of items to return.
    offset:
      type: integer
      default: 0
      coerce: int
      help: Number of items to skip.
