[Security Solution] Quickstart script tooling for Detections and Response (#190634)

## Summary

Creates CLI script tooling for building data, rules, exceptions, and
lists in any (local, cloud, serverless) environment for manual testing.
The initial commits here add generated clients for accessing security
solution, exceptions, and lists APIs and a placeholder script where
those clients are set up for use. See README for more details.

Much of the code in this PR is auto-generated clients. The hand written
code is intended to be primarily in `quickstart/modules/`, where we can
add wrapper code to simplify the process for common test environment
setup. For example, `createValueListException` takes an array of items
and some metadata and automatically creates a new value list and an
exception that references that value list. `/modules/data/` contains
functions to generate documents of arbitrary size, and we can add more
functions to create various other types of documents.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marshall Main 2024-09-06 06:41:57 -07:00 committed by GitHub
parent 335b153a92
commit 3cc7029197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 3855 additions and 13 deletions

View file

@ -34,4 +34,18 @@ const ROOT = resolve(__dirname, '..');
),
},
});
await generate({
title: 'Lists API client for quickstart',
rootDir: ROOT,
sourceGlob: './api/**/*.schema.yaml',
templateName: 'api_client_quickstart',
skipLinting: true,
bundle: {
outFile: join(
REPO_ROOT,
'packages/kbn-securitysolution-lists-common/api/quickstart_client.gen.ts'
),
},
});
})();