Parse Kibana Saved Search Metadata and build elastic DSL to query elastic index

Hello there ,

I am working on a project where user are asked to create saved searches as per their requirement on the single elastic index available through discover page . Now I will have to download this saved search response data periodically and store it in S3 . Users are not willing to share the snapshot url of the saved search made , so we are choosing the only option i.e. getting saved searches list , parse the metadata , build elastic query from it and query elastic index to download the data . NOW the parsing becoming difficult for complex searches , is there anybody cracked this already or does anybody know any plugin which converts Kibana saved seach metadata to elastic DSL . Thanks in advance