#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License
# 2.0 and the Server Side Public License, v 1; you may not use this file except
# in compliance with, at your election, the Elastic License 2.0 or the Server
# Side Public License, v 1.
#

# This file contains a whitelist for the ingest scripts

class java.lang.String {
  String org.elasticsearch.painless.api.Augmentation sha1()
  String org.elasticsearch.painless.api.Augmentation sha256()
}

class org.elasticsearch.painless.api.Json {
  def load(String)
  String dump(def)
  String dump(def, boolean)
}

class org.elasticsearch.script.Metadata {
    String getIndex()
    void setIndex(String)

    String getId()
    void setId(String)

    String getRouting()
    void setRouting(String)

    long getVersion()
    void setVersion(long)

    String getVersionType()
    void setVersionType(String)

    ZonedDateTime getNow()
}

class org.elasticsearch.script.IngestScript {
    Metadata metadata()
}
