From 98960f2eb33c889b89a74db19a5a68ca755d7335 Mon Sep 17 00:00:00 2001 From: Garrett Spong Date: Thu, 18 Jan 2024 09:36:51 -0700 Subject: [PATCH] [Security Solution] Write additional metadata when generating types using `kbn-openapi-generator` (#174718) ## Summary Follow up PR from https://github.com/elastic/kibana/pull/174317 with the following fixes/enhancements to `kbn-openapi-generator`: * Fix extraneous `.`'s in paths causing generated files to not be written to disk * Updates `README.md` for latest method of adding CI actions * Adds `info` details to generated metadata comment for more easily tracing back to source schema * Moves assistant `*.schema.yaml` files from `elastic_assistant` plugin to `kbn-elastic-assistant-common` package > [!NOTE] > This PR includes a manual run of the `kbn-elastic-assistant-common` package `yarn openapi:generate` script as a reference example. Since this PR also updates the generation template to include the `info` metadata, CI will run the generator for the other consumers (`security_solution` & `osquery`) automatically, and commit those updates to this PR. ### Test instructions You can test against the `kbn-elastic-assistant-common` package using either the main CLI script from kibana root: ``` node scripts/generate_openapi --rootDir ./x-pack/packages/kbn-elastic-assistant-common ``` or via the yarn command: ``` cd x-pack/packages/kbn-elastic-assistant-common/ yarn openapi-generate ``` ### Checklist Delete any items that are not applicable to this PR. - [X] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../elastic_assistant_codegen.sh | 2 +- packages/kbn-openapi-generator/README.md | 23 +++++++++++-------- .../src/lib/get_generated_file_path.ts | 4 +++- .../src/parser/get_generation_context.ts | 4 ++++ .../src/parser/lib/get_info.ts | 13 +++++++++++ .../templates/disclaimer.handlebars | 5 +++- .../kbn-elastic-assistant-common/README.md | 16 +++++++++++++ .../get_capabilities_route.gen.ts | 4 ++++ .../get_capabilities_route.schema.yaml | 0 .../kbn-elastic-assistant-common/index.ts | 2 ++ .../kbn-elastic-assistant-common/package.json | 7 +++++- .../scripts/openapi/bundle.js | 3 ++- .../scripts/openapi/generate.js | 3 ++- .../api/capabilities/capabilities.tsx | 4 +--- .../api/capabilities/use_capabilities.tsx | 3 ++- x-pack/plugins/elastic_assistant/package.json | 5 +--- .../capabilities/get_capabilities_route.ts | 2 +- .../common/api/asset/assets_status.gen.ts | 4 ++++ .../fleet_wrapper/get_agent_details.gen.ts | 4 ++++ .../fleet_wrapper/get_agent_policies.gen.ts | 4 ++++ .../api/fleet_wrapper/get_agent_policy.gen.ts | 4 ++++ .../api/fleet_wrapper/get_agent_status.gen.ts | 4 ++++ .../api/fleet_wrapper/get_agents.gen.ts | 4 ++++ .../fleet_wrapper/get_package_policies.gen.ts | 4 ++++ .../api/live_query/create_live_query.gen.ts | 4 ++++ .../api/live_query/find_live_query.gen.ts | 4 ++++ .../live_query/get_live_query_details.gen.ts | 4 ++++ .../live_query/get_live_query_results.gen.ts | 4 ++++ .../api/model/schema/common_attributes.gen.ts | 4 ++++ .../common/api/packs/create_pack.gen.ts | 4 ++++ .../common/api/packs/delete_packs.gen.ts | 4 ++++ .../common/api/packs/find_packs.gen.ts | 4 ++++ .../common/api/packs/read_packs.gen.ts | 4 ++++ .../common/api/packs/update_packs.gen.ts | 4 ++++ .../api/saved_query/create_saved_query.gen.ts | 4 ++++ .../api/saved_query/delete_saved_query.gen.ts | 4 ++++ .../api/saved_query/find_saved_query.gen.ts | 4 ++++ .../api/saved_query/read_saved_query.gen.ts | 4 ++++ .../api/saved_query/update_saved_query.gen.ts | 4 ++++ .../set_alert_assignees_route.gen.ts | 4 ++++ .../model/error_schema.gen.ts | 4 ++++ .../detection_engine/model/pagination.gen.ts | 4 ++++ .../response_actions.gen.ts | 4 ++++ .../rule_schema/common_attributes.gen.ts | 4 ++++ .../model/rule_schema/rule_schemas.gen.ts | 4 ++++ .../specific_attributes/eql_attributes.gen.ts | 4 ++++ .../specific_attributes/ml_attributes.gen.ts | 4 ++++ .../new_terms_attributes.gen.ts | 4 ++++ .../query_attributes.gen.ts | 4 ++++ .../threat_match_attributes.gen.ts | 4 ++++ .../threshold_attributes.gen.ts | 4 ++++ .../api/detection_engine/model/sorting.gen.ts | 4 ++++ .../model/warning_schema.gen.ts | 4 ++++ ...lt_rules_and_timelines_status_route.gen.ts | 4 ++++ ..._prebuilt_rules_and_timelines_route.gen.ts | 4 ++++ .../bulk_actions/bulk_actions_route.gen.ts | 4 ++++ .../bulk_create_rules_route.gen.ts | 4 ++++ .../bulk_delete_rules_route.gen.ts | 4 ++++ .../bulk_patch_rules_route.gen.ts | 4 ++++ .../bulk_update_rules_route.gen.ts | 4 ++++ .../bulk_crud/response_schema.gen.ts | 4 ++++ .../crud/create_rule/create_rule_route.gen.ts | 4 ++++ .../crud/delete_rule/delete_rule_route.gen.ts | 4 ++++ .../crud/patch_rule/patch_rule_route.gen.ts | 4 ++++ .../crud/read_rule/read_rule_route.gen.ts | 4 ++++ .../crud/update_rule/update_rule_route.gen.ts | 4 ++++ .../export_rules/export_rules_route.gen.ts | 4 ++++ .../find_rules/find_rules_route.gen.ts | 4 ++++ .../import_rules/import_rules_route.gen.ts | 4 ++++ .../read_tags/read_tags_route.gen.ts | 4 ++++ .../model/execution_event.gen.ts | 4 ++++ .../model/execution_metrics.gen.ts | 4 ++++ .../model/execution_result.gen.ts | 4 ++++ .../model/execution_status.gen.ts | 4 ++++ .../model/execution_summary.gen.ts | 4 ++++ .../get_rule_execution_events_route.gen.ts | 4 ++++ .../get_rule_execution_results_route.gen.ts | 4 ++++ .../users/suggest_user_profiles_route.gen.ts | 4 ++++ .../api/endpoint/actions/audit_log.gen.ts | 4 ++++ .../api/endpoint/actions/details.gen.ts | 4 ++++ .../api/endpoint/actions/execute.gen.ts | 4 ++++ .../api/endpoint/actions/file_download.gen.ts | 4 ++++ .../api/endpoint/actions/file_info.gen.ts | 4 ++++ .../api/endpoint/actions/file_upload.gen.ts | 4 ++++ .../api/endpoint/actions/get_file.gen.ts | 4 ++++ .../common/api/endpoint/actions/list.gen.ts | 4 ++++ .../endpoint/metadata/list_metadata.gen.ts | 4 ++++ .../api/endpoint/model/schema/common.gen.ts | 4 ++++ .../common/api/endpoint/policy/policy.gen.ts | 4 ++++ .../suggestions/get_suggestions.gen.ts | 4 ++++ .../asset_criticality/common.gen.ts | 4 ++++ .../get_asset_criticality_status.gen.ts | 4 ++++ .../api/entity_analytics/common/common.gen.ts | 4 ++++ .../risk_engine/engine_settings_route.gen.ts | 4 ++++ 94 files changed, 384 insertions(+), 24 deletions(-) create mode 100644 packages/kbn-openapi-generator/src/parser/lib/get_info.ts rename x-pack/{plugins/elastic_assistant/server => packages/kbn-elastic-assistant-common/impl}/schemas/capabilities/get_capabilities_route.gen.ts (90%) rename x-pack/{plugins/elastic_assistant/server => packages/kbn-elastic-assistant-common/impl}/schemas/capabilities/get_capabilities_route.schema.yaml (100%) rename x-pack/{plugins/elastic_assistant => packages/kbn-elastic-assistant-common}/scripts/openapi/bundle.js (84%) rename x-pack/{plugins/elastic_assistant => packages/kbn-elastic-assistant-common}/scripts/openapi/generate.js (84%) diff --git a/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh b/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh index ba742625b421f0..475c545a283c06 100755 --- a/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh +++ b/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh @@ -6,5 +6,5 @@ source .buildkite/scripts/common/util.sh echo --- Elastic Assistant OpenAPI Code Generation -(cd x-pack/plugins/elastic_assistant && yarn openapi:generate) +(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:generate) check_for_changed_files "yarn openapi:generate" true diff --git a/packages/kbn-openapi-generator/README.md b/packages/kbn-openapi-generator/README.md index 4a3ed910bca29d..cd3fe96f186014 100644 --- a/packages/kbn-openapi-generator/README.md +++ b/packages/kbn-openapi-generator/README.md @@ -72,6 +72,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Install Prebuilt Rules API endpoint + * version: 1 */ export type InstallPrebuiltRulesResponse = z.infer; @@ -134,17 +138,18 @@ echo --- Security Solution OpenAPI Code Generation check_for_changed_files "yarn openapi:generate" true ``` -This scripts sets up the minimal environment required fro code generation and runs the code generation script. Then it checks if there are any changes and commits them if there are any using the `check_for_changed_files` function. +This script sets up the minimal environment required for code generation and runs the code generation script. Then it checks if there are any changes and commits them if there are any using the `check_for_changed_files` function. -Then add the code generation script to your plugin build pipeline. Open your plugin build pipeline, for example `.buildkite/pipelines/pull_request/base.yml`, and add the following command to the steps list adjusting the path to your code generation script: +Then add the code generation script to the build pipeline. Open the buildkite checks at`.buildkite/scripts/steps/checks.sh`, and add the path to your code generation script: -```yaml -- command: .buildkite/scripts/steps/code_generation/security_solution_codegen.sh - label: 'Security Solution OpenAPI codegen' - agents: - queue: n2-2-spot - timeout_in_minutes: 60 - parallelism: 1 +```sh +... +.buildkite/scripts/steps/checks/saved_objects_definition_change.sh +.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh +.buildkite/scripts/steps/code_generation/security_solution_codegen.sh +.buildkite/scripts/steps/code_generation/osquery_codegen.sh +.buildkite/scripts/steps/checks/yarn_deduplicate.sh +... ``` Now on every pull request the code generation script will run and commit the changes if there are any. diff --git a/packages/kbn-openapi-generator/src/lib/get_generated_file_path.ts b/packages/kbn-openapi-generator/src/lib/get_generated_file_path.ts index 4139d3610d8b65..d1a981034cde76 100644 --- a/packages/kbn-openapi-generator/src/lib/get_generated_file_path.ts +++ b/packages/kbn-openapi-generator/src/lib/get_generated_file_path.ts @@ -7,5 +7,7 @@ */ export function getGeneratedFilePath(sourcePath: string) { - return sourcePath.replace(/\..+$/, '.gen.ts'); + // Remove any double extension like `.schema.yaml` or `.schema.yml` and replace with `.gen.ts` + const secondToLastDot = sourcePath.lastIndexOf('.', sourcePath.lastIndexOf('.') - 1); + return `${sourcePath.substring(0, secondToLastDot)}.gen.ts`; } diff --git a/packages/kbn-openapi-generator/src/parser/get_generation_context.ts b/packages/kbn-openapi-generator/src/parser/get_generation_context.ts index 14a3b8eb2e178e..7f161c0bc76458 100644 --- a/packages/kbn-openapi-generator/src/parser/get_generation_context.ts +++ b/packages/kbn-openapi-generator/src/parser/get_generation_context.ts @@ -12,10 +12,12 @@ import { getComponents } from './lib/get_components'; import { getImportsMap, ImportsMap } from './lib/get_imports_map'; import { normalizeSchema } from './lib/normalize_schema'; import { NormalizedOperation, OpenApiDocument } from './openapi_types'; +import { getInfo } from './lib/get_info'; export interface GenerationContext { components: OpenAPIV3.ComponentsObject | undefined; operations: NormalizedOperation[]; + info: OpenAPIV3.InfoObject; imports: ImportsMap; } @@ -24,11 +26,13 @@ export function getGenerationContext(document: OpenApiDocument): GenerationConte const components = getComponents(normalizedDocument); const operations = getApiOperationsList(normalizedDocument); + const info = getInfo(normalizedDocument); const imports = getImportsMap(normalizedDocument); return { components, operations, + info, imports, }; } diff --git a/packages/kbn-openapi-generator/src/parser/lib/get_info.ts b/packages/kbn-openapi-generator/src/parser/lib/get_info.ts new file mode 100644 index 00000000000000..2f73ae05ae172d --- /dev/null +++ b/packages/kbn-openapi-generator/src/parser/lib/get_info.ts @@ -0,0 +1,13 @@ +/* + * 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. + */ + +import type { OpenApiDocument } from '../openapi_types'; + +export function getInfo(parsedSchema: OpenApiDocument) { + return parsedSchema.info; +} diff --git a/packages/kbn-openapi-generator/src/template_service/templates/disclaimer.handlebars b/packages/kbn-openapi-generator/src/template_service/templates/disclaimer.handlebars index 403a5b54f09b37..15f4d276181bfe 100644 --- a/packages/kbn-openapi-generator/src/template_service/templates/disclaimer.handlebars +++ b/packages/kbn-openapi-generator/src/template_service/templates/disclaimer.handlebars @@ -1,5 +1,8 @@ /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: {{info.title}} + * version: {{info.version}} */ - \ No newline at end of file diff --git a/x-pack/packages/kbn-elastic-assistant-common/README.md b/x-pack/packages/kbn-elastic-assistant-common/README.md index b6b696561bf297..33dc8c40551668 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/README.md +++ b/x-pack/packages/kbn-elastic-assistant-common/README.md @@ -18,3 +18,19 @@ To (interactively) run unit tests with code coverage, run the following command: ```sh cd $KIBANA_HOME && node scripts/jest --watch x-pack/packages/kbn-elastic-assistant-common --coverage ``` + +## OpenAPI Codegen + +Implemented using the new OpenAPI codegen and bundle packages: +* Includes OpenAPI codegen script and CI action as detailed in: https://github.com/elastic/kibana/pull/166269 +* Includes OpenAPI docs bundling script as detailed in: https://github.com/elastic/kibana/pull/171526 + +To run codegen/bundling locally, cd to `x-pack/packages/kbn-elastic-assistant-common/` and run any of the following commands: + +```bash +yarn openapi:generate +yarn openapi:generate:debug +yarn openapi:bundle +``` + +Codegen is configured to run on CI by means of the `.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh` script, which is run as part of the `checks` pipeline, and is registered in `.buildkite/scripts/steps/checks.sh`. diff --git a/x-pack/plugins/elastic_assistant/server/schemas/capabilities/get_capabilities_route.gen.ts b/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts similarity index 90% rename from x-pack/plugins/elastic_assistant/server/schemas/capabilities/get_capabilities_route.gen.ts rename to x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts index 609d83fb0b9313..36fc7404f40da6 100644 --- a/x-pack/plugins/elastic_assistant/server/schemas/capabilities/get_capabilities_route.gen.ts +++ b/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Capabilities API endpoint + * version: 1 */ export type GetCapabilitiesResponse = z.infer; diff --git a/x-pack/plugins/elastic_assistant/server/schemas/capabilities/get_capabilities_route.schema.yaml b/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml similarity index 100% rename from x-pack/plugins/elastic_assistant/server/schemas/capabilities/get_capabilities_route.schema.yaml rename to x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/index.ts b/x-pack/packages/kbn-elastic-assistant-common/index.ts index c64b02160d6e43..a2576038c6f51a 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/index.ts +++ b/x-pack/packages/kbn-elastic-assistant-common/index.ts @@ -5,6 +5,8 @@ * 2.0. */ +export { GetCapabilitiesResponse } from './impl/schemas/capabilities/get_capabilities_route.gen'; + export { defaultAssistantFeatures } from './impl/capabilities'; export type { AssistantFeatures } from './impl/capabilities'; diff --git a/x-pack/packages/kbn-elastic-assistant-common/package.json b/x-pack/packages/kbn-elastic-assistant-common/package.json index 9ecfbc4c81a07f..ee297a00f57dcb 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/package.json +++ b/x-pack/packages/kbn-elastic-assistant-common/package.json @@ -3,5 +3,10 @@ "private": true, "version": "1.0.0", "license": "Elastic License 2.0", - "sideEffects": false + "sideEffects": false, + "scripts": { + "openapi:generate": "node scripts/openapi/generate", + "openapi:generate:debug": "node --inspect-brk scripts/openapi/generate", + "openapi:bundle": "node scripts/openapi/bundle" + } } \ No newline at end of file diff --git a/x-pack/plugins/elastic_assistant/scripts/openapi/bundle.js b/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js similarity index 84% rename from x-pack/plugins/elastic_assistant/scripts/openapi/bundle.js rename to x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js index 15d431a947582f..138d1255b865b2 100644 --- a/x-pack/plugins/elastic_assistant/scripts/openapi/bundle.js +++ b/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js @@ -7,12 +7,13 @@ require('../../../../../src/setup_node_env'); const { bundle } = require('@kbn/openapi-bundler'); +// eslint-disable-next-line import/no-nodejs-modules const { resolve } = require('path'); const ELASTIC_ASSISTANT_ROOT = resolve(__dirname, '../..'); bundle({ rootDir: ELASTIC_ASSISTANT_ROOT, - sourceGlob: './server/schemas/**/*.schema.yaml', + sourceGlob: './impl/schemas/**/*.schema.yaml', outputFilePath: './target/openapi/elastic_assistant.bundled.schema.yaml', }); diff --git a/x-pack/plugins/elastic_assistant/scripts/openapi/generate.js b/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js similarity index 84% rename from x-pack/plugins/elastic_assistant/scripts/openapi/generate.js rename to x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js index 2863fb25db5808..dd17ecef2fb313 100644 --- a/x-pack/plugins/elastic_assistant/scripts/openapi/generate.js +++ b/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js @@ -7,12 +7,13 @@ require('../../../../../src/setup_node_env'); const { generate } = require('@kbn/openapi-generator'); +// eslint-disable-next-line import/no-nodejs-modules const { resolve } = require('path'); const ELASTIC_ASSISTANT_ROOT = resolve(__dirname, '../..'); generate({ rootDir: ELASTIC_ASSISTANT_ROOT, - sourceGlob: './server/schemas/**/*.schema.yaml', + sourceGlob: './impl/schemas/**/*.schema.yaml', templateName: 'zod_operation_schema', }); diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx b/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx index 794b89e1775f8b..59927dbf2c4721 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx +++ b/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx @@ -6,15 +6,13 @@ */ import { HttpSetup, IHttpFetchError } from '@kbn/core-http-browser'; -import { AssistantFeatures } from '@kbn/elastic-assistant-common'; +import { GetCapabilitiesResponse } from '@kbn/elastic-assistant-common'; export interface GetCapabilitiesParams { http: HttpSetup; signal?: AbortSignal | undefined; } -export type GetCapabilitiesResponse = AssistantFeatures; - /** * API call for fetching assistant capabilities * diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx b/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx index 5d52a2801fb9ea..429672b27dacf8 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx +++ b/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx @@ -10,7 +10,8 @@ import { useQuery } from '@tanstack/react-query'; import type { HttpSetup, IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; import type { IToasts } from '@kbn/core-notifications-browser'; import { i18n } from '@kbn/i18n'; -import { getCapabilities, GetCapabilitiesResponse } from './capabilities'; +import type { GetCapabilitiesResponse } from '@kbn/elastic-assistant-common'; +import { getCapabilities } from './capabilities'; const CAPABILITIES_QUERY_KEY = ['elastic-assistant', 'capabilities']; diff --git a/x-pack/plugins/elastic_assistant/package.json b/x-pack/plugins/elastic_assistant/package.json index 37a0b9abb02b17..b6f19d2ec7a3c2 100644 --- a/x-pack/plugins/elastic_assistant/package.json +++ b/x-pack/plugins/elastic_assistant/package.json @@ -5,9 +5,6 @@ "private": true, "license": "Elastic License 2.0", "scripts": { - "evaluate-model": "node ./scripts/model_evaluator", - "openapi:generate": "node scripts/openapi/generate", - "openapi:generate:debug": "node --inspect-brk scripts/openapi/generate", - "openapi:bundle": "node scripts/openapi/bundle" + "evaluate-model": "node ./scripts/model_evaluator" } } \ No newline at end of file diff --git a/x-pack/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.ts b/x-pack/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.ts index 46fc486b82a485..105e1676fb8089 100644 --- a/x-pack/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.ts +++ b/x-pack/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.ts @@ -8,10 +8,10 @@ import { IKibanaResponse, IRouter } from '@kbn/core/server'; import { transformError } from '@kbn/securitysolution-es-utils'; +import type { GetCapabilitiesResponse } from '@kbn/elastic-assistant-common'; import { CAPABILITIES } from '../../../common/constants'; import { ElasticAssistantRequestHandlerContext } from '../../types'; -import { GetCapabilitiesResponse } from '../../schemas/capabilities/get_capabilities_route.gen'; import { buildResponse } from '../../lib/build_response'; import { DEFAULT_PLUGIN_NAME, getPluginNameFromRequest } from '../helpers'; diff --git a/x-pack/plugins/osquery/common/api/asset/assets_status.gen.ts b/x-pack/plugins/osquery/common/api/asset/assets_status.gen.ts index 5874e8146f5c09..dc0c0c45d8a3ec 100644 --- a/x-pack/plugins/osquery/common/api/asset/assets_status.gen.ts +++ b/x-pack/plugins/osquery/common/api/asset/assets_status.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Assets Status Schema + * version: 1 */ export type AssetsRequestQuery = z.infer; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_details.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_details.gen.ts index 9fa827aa002f0d..071453080b368c 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_details.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_details.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get agent details schema + * version: 1 */ export type GetAgentDetailsRequestParams = z.infer; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policies.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policies.gen.ts index 603351f7efd729..eb8cf02e80158a 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policies.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policies.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get agent policies schema + * version: 1 */ export type GetAgentPoliciesRequestParams = z.infer; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policy.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policy.gen.ts index a1969fa2710670..69f16149971df5 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policy.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_policy.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get agent policy schema + * version: 1 */ import { Id } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_status.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_status.gen.ts index 1869dadbbe6b17..71c53c732785dc 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_status.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agent_status.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get agent status schema + * version: 1 */ import { KueryOrUndefined, Id } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agents.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agents.gen.ts index 549e5f3ddfe560..4394e7a5dfc1fc 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agents.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_agents.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get agents schema + * version: 1 */ export type GetAgentsRequestParams = z.infer; diff --git a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_package_policies.gen.ts b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_package_policies.gen.ts index d4def39d3fea3b..4daeb464dc597a 100644 --- a/x-pack/plugins/osquery/common/api/fleet_wrapper/get_package_policies.gen.ts +++ b/x-pack/plugins/osquery/common/api/fleet_wrapper/get_package_policies.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get package policies schema + * version: 1 */ export type GetPackagePoliciesRequestParams = z.infer; diff --git a/x-pack/plugins/osquery/common/api/live_query/create_live_query.gen.ts b/x-pack/plugins/osquery/common/api/live_query/create_live_query.gen.ts index 566dd638b0ea1e..8c71b21d4366c5 100644 --- a/x-pack/plugins/osquery/common/api/live_query/create_live_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/live_query/create_live_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Create Live Query Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/live_query/find_live_query.gen.ts b/x-pack/plugins/osquery/common/api/live_query/find_live_query.gen.ts index 872cca65157456..a7238940973277 100644 --- a/x-pack/plugins/osquery/common/api/live_query/find_live_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/live_query/find_live_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Find Live Queries Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/live_query/get_live_query_details.gen.ts b/x-pack/plugins/osquery/common/api/live_query/get_live_query_details.gen.ts index cd6447ac1ab43f..8cc8d8be7079de 100644 --- a/x-pack/plugins/osquery/common/api/live_query/get_live_query_details.gen.ts +++ b/x-pack/plugins/osquery/common/api/live_query/get_live_query_details.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Live Query Details Schema + * version: 2023-10-31 */ export type SuccessResponse = z.infer; diff --git a/x-pack/plugins/osquery/common/api/live_query/get_live_query_results.gen.ts b/x-pack/plugins/osquery/common/api/live_query/get_live_query_results.gen.ts index c3b1eb03784075..39130165d9de41 100644 --- a/x-pack/plugins/osquery/common/api/live_query/get_live_query_results.gen.ts +++ b/x-pack/plugins/osquery/common/api/live_query/get_live_query_results.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Live Query Results Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/model/schema/common_attributes.gen.ts b/x-pack/plugins/osquery/common/api/model/schema/common_attributes.gen.ts index bd7d0fd8063fe9..04fa4dca071ef8 100644 --- a/x-pack/plugins/osquery/common/api/model/schema/common_attributes.gen.ts +++ b/x-pack/plugins/osquery/common/api/model/schema/common_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Common Osquery Attributes + * version: 2023-10-31 */ export type Id = z.infer; diff --git a/x-pack/plugins/osquery/common/api/packs/create_pack.gen.ts b/x-pack/plugins/osquery/common/api/packs/create_pack.gen.ts index 4c811fdf5941ae..030024e4c5cf98 100644 --- a/x-pack/plugins/osquery/common/api/packs/create_pack.gen.ts +++ b/x-pack/plugins/osquery/common/api/packs/create_pack.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Create Pack Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/packs/delete_packs.gen.ts b/x-pack/plugins/osquery/common/api/packs/delete_packs.gen.ts index 76cccaa1698685..632b9b7e8d7ab0 100644 --- a/x-pack/plugins/osquery/common/api/packs/delete_packs.gen.ts +++ b/x-pack/plugins/osquery/common/api/packs/delete_packs.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Delete Saved Queries Schema + * version: 2023-10-31 */ import { PackId } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/packs/find_packs.gen.ts b/x-pack/plugins/osquery/common/api/packs/find_packs.gen.ts index c85d9e324e3d3b..a10a4356689745 100644 --- a/x-pack/plugins/osquery/common/api/packs/find_packs.gen.ts +++ b/x-pack/plugins/osquery/common/api/packs/find_packs.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Find Saved Queries Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/packs/read_packs.gen.ts b/x-pack/plugins/osquery/common/api/packs/read_packs.gen.ts index a16e7e7029b43e..d49bcd4ca20505 100644 --- a/x-pack/plugins/osquery/common/api/packs/read_packs.gen.ts +++ b/x-pack/plugins/osquery/common/api/packs/read_packs.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Read Saved Queries Schema + * version: 2023-10-31 */ import { PackId } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/packs/update_packs.gen.ts b/x-pack/plugins/osquery/common/api/packs/update_packs.gen.ts index bbeb77100da1b1..5a1da7c4e6bffe 100644 --- a/x-pack/plugins/osquery/common/api/packs/update_packs.gen.ts +++ b/x-pack/plugins/osquery/common/api/packs/update_packs.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Update Saved Query Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/saved_query/create_saved_query.gen.ts b/x-pack/plugins/osquery/common/api/saved_query/create_saved_query.gen.ts index cc881049a5cbfd..430f2169ddec5b 100644 --- a/x-pack/plugins/osquery/common/api/saved_query/create_saved_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/saved_query/create_saved_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Create Saved Query Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/saved_query/delete_saved_query.gen.ts b/x-pack/plugins/osquery/common/api/saved_query/delete_saved_query.gen.ts index da915ad32da1a5..c39f012c4a0eb0 100644 --- a/x-pack/plugins/osquery/common/api/saved_query/delete_saved_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/saved_query/delete_saved_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Delete Saved Queries Schema + * version: 2023-10-31 */ import { SavedQueryId } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/saved_query/find_saved_query.gen.ts b/x-pack/plugins/osquery/common/api/saved_query/find_saved_query.gen.ts index 43ab5c93a65493..85a2406ed587a2 100644 --- a/x-pack/plugins/osquery/common/api/saved_query/find_saved_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/saved_query/find_saved_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Find Saved Queries Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/osquery/common/api/saved_query/read_saved_query.gen.ts b/x-pack/plugins/osquery/common/api/saved_query/read_saved_query.gen.ts index e6d76e1dd7bd25..1dcffe945612f9 100644 --- a/x-pack/plugins/osquery/common/api/saved_query/read_saved_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/saved_query/read_saved_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Read Saved Queries Schema + * version: 2023-10-31 */ import { SavedQueryId } from '../model/schema/common_attributes.gen'; diff --git a/x-pack/plugins/osquery/common/api/saved_query/update_saved_query.gen.ts b/x-pack/plugins/osquery/common/api/saved_query/update_saved_query.gen.ts index b6eddccae6fa3d..6a959ed1fa2d58 100644 --- a/x-pack/plugins/osquery/common/api/saved_query/update_saved_query.gen.ts +++ b/x-pack/plugins/osquery/common/api/saved_query/update_saved_query.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Update Saved Query Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/alert_assignees/set_alert_assignees_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/alert_assignees/set_alert_assignees_route.gen.ts index f2b2be478ced3d..76ffcf4edf686c 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/alert_assignees/set_alert_assignees_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/alert_assignees/set_alert_assignees_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Assign alerts API endpoint + * version: 2023-10-31 */ import { NonEmptyString } from '../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/error_schema.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/error_schema.gen.ts index 4ca5d3a41b6fa1..080ee795aa49bb 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/error_schema.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/error_schema.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Error Schema + * version: not applicable */ import { RuleSignatureId } from './rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/pagination.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/pagination.gen.ts index 0a7336b8f78c38..d46c13c3045b95 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/pagination.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/pagination.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Pagination Schema + * version: not applicable */ /** diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_response_actions/response_actions.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_response_actions/response_actions.gen.ts index e6d00181a7a4ea..c7a1295c1e8c32 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_response_actions/response_actions.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_response_actions/response_actions.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Response Actions Schema + * version: not applicable */ export type ResponseActionTypes = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/common_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/common_attributes.gen.ts index 11298104fc84a6..5cda2d12e1d3ef 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/common_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/common_attributes.gen.ts @@ -11,6 +11,10 @@ import { isValidDateMath } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Common Rule Attributes + * version: not applicable */ /** diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts index 0744b3fb57b5c7..bdea10d05dfcdf 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Security Rule Schema + * version: not applicable */ import { diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/eql_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/eql_attributes.gen.ts index 63fa41e0475485..50f9def1db9861 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/eql_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/eql_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: EQL Rule Attributes + * version: not applicable */ export type EventCategoryOverride = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/ml_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/ml_attributes.gen.ts index 7350dde5e7c2be..b5ace123464c3b 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/ml_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/ml_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: ML Rule Attributes + * version: not applicable */ /** diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/new_terms_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/new_terms_attributes.gen.ts index f5b0b751d44525..2c8b36121cb15a 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/new_terms_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/new_terms_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: New Terms Attributes + * version: not applicable */ import { NonEmptyString } from '../common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/query_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/query_attributes.gen.ts index cca23efb4979a4..9a085c0d977c72 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/query_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/query_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Query Rule Attributes + * version: not applicable */ import { AlertSuppressionDuration } from '../common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threat_match_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threat_match_attributes.gen.ts index 14f2bcf047b5f1..1ab2b29f3f9c22 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threat_match_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threat_match_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Threat Match Rule Attributes + * version: not applicable */ import { NonEmptyString } from '../common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threshold_attributes.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threshold_attributes.gen.ts index 3f3fcbc7af7365..a63016f51e4e0f 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threshold_attributes.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/rule_schema/specific_attributes/threshold_attributes.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Threshold Rule Attributes + * version: not applicable */ import { AlertSuppressionDuration } from '../common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/sorting.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/sorting.gen.ts index 3b9d0a8fa02c04..343075cbd68117 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/sorting.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/sorting.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Sorting Schema + * version: not applicable */ export type SortOrder = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/model/warning_schema.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/model/warning_schema.gen.ts index c99e7d77da8300..9ad8ba2e7d8b8a 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/model/warning_schema.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/model/warning_schema.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Warning Schema + * version: not applicable */ export type WarningSchema = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen.ts index f68164f5bc12b0..7b81aac6bc66f6 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Prebuilt Rules Status API endpoint + * version: 2023-10-31 */ export type GetPrebuiltRulesAndTimelinesStatusResponse = z.infer< diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/install_prebuilt_rules_and_timelines/install_prebuilt_rules_and_timelines_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/install_prebuilt_rules_and_timelines/install_prebuilt_rules_and_timelines_route.gen.ts index f6cb7dec85143b..b07e4494ce2157 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/install_prebuilt_rules_and_timelines/install_prebuilt_rules_and_timelines_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/prebuilt_rules/install_prebuilt_rules_and_timelines/install_prebuilt_rules_and_timelines_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Install Prebuilt Rules API endpoint + * version: 2023-10-31 */ export type InstallPrebuiltRulesAndTimelinesResponse = z.infer< diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_actions/bulk_actions_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_actions/bulk_actions_route.gen.ts index 6d3594335e49b2..c2ed7dd7061b59 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_actions/bulk_actions_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_actions/bulk_actions_route.gen.ts @@ -11,6 +11,10 @@ import { BooleanFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Actions API endpoint + * version: 2023-10-31 */ import { RuleResponse } from '../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_create_rules/bulk_create_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_create_rules/bulk_create_rules_route.gen.ts index 84124ef5867da4..f5cf832a8de10e 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_create_rules/bulk_create_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_create_rules/bulk_create_rules_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Create API endpoint + * version: 2023-10-31 */ import { RuleCreateProps } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_delete_rules/bulk_delete_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_delete_rules/bulk_delete_rules_route.gen.ts index b1b12e0ef1a858..e95777bad80276 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_delete_rules/bulk_delete_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_delete_rules/bulk_delete_rules_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Delete API endpoint + * version: 2023-10-31 */ import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_patch_rules/bulk_patch_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_patch_rules/bulk_patch_rules_route.gen.ts index 645e0e77a6de4e..0683cf59f0318a 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_patch_rules/bulk_patch_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_patch_rules/bulk_patch_rules_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Patch API endpoint + * version: 2023-10-31 */ import { RulePatchProps } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_update_rules/bulk_update_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_update_rules/bulk_update_rules_route.gen.ts index 82095c408fa7eb..7dbeb283bec0fd 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_update_rules/bulk_update_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/bulk_update_rules/bulk_update_rules_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Update API endpoint + * version: 2023-10-31 */ import { RuleUpdateProps } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/response_schema.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/response_schema.gen.ts index b105bd00d94c33..ac9386f959b17f 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/response_schema.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/bulk_crud/response_schema.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Bulk Response Schema + * version: 8.9.0 */ import { RuleResponse } from '../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/create_rule/create_rule_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/create_rule/create_rule_route.gen.ts index ff0832a86f320a..b11a3005239665 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/create_rule/create_rule_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/create_rule/create_rule_route.gen.ts @@ -10,6 +10,10 @@ import type { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Create Rule API endpoint + * version: 2023-10-31 */ import { RuleCreateProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/delete_rule/delete_rule_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/delete_rule/delete_rule_route.gen.ts index b885a8dd64a46a..7f467ff29d11d9 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/delete_rule/delete_rule_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/delete_rule/delete_rule_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Delete Rule API endpoint + * version: 2023-10-31 */ import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/patch_rule/patch_rule_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/patch_rule/patch_rule_route.gen.ts index 840de35ccf5ca8..a404eb652988a8 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/patch_rule/patch_rule_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/patch_rule/patch_rule_route.gen.ts @@ -10,6 +10,10 @@ import type { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Patch Rule API endpoint + * version: 2023-10-31 */ import { RulePatchProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/read_rule/read_rule_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/read_rule/read_rule_route.gen.ts index 1d10fede9bec41..a8de09f3e98c6f 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/read_rule/read_rule_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/read_rule/read_rule_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Read Rule API endpoint + * version: 2023-10-31 */ import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/update_rule/update_rule_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/update_rule/update_rule_route.gen.ts index 7b539471707987..faa285a8c62f10 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/update_rule/update_rule_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/crud/update_rule/update_rule_route.gen.ts @@ -10,6 +10,10 @@ import type { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Update Rule API endpoint + * version: 2023-10-31 */ import { RuleUpdateProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/export_rules/export_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/export_rules/export_rules_route.gen.ts index 2dfb54396c9ce0..d1c99bdf096cc3 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/export_rules/export_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/export_rules/export_rules_route.gen.ts @@ -11,6 +11,10 @@ import { BooleanFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Export Rules API endpoint + * version: 2023-10-31 */ import { RuleSignatureId } from '../../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/find_rules/find_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/find_rules/find_rules_route.gen.ts index a515cf70f95130..af1684ced8ce2a 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/find_rules/find_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/find_rules/find_rules_route.gen.ts @@ -11,6 +11,10 @@ import { ArrayFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Find Rules API endpoint + * version: 2023-10-31 */ import { SortOrder } from '../../model/sorting.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/import_rules/import_rules_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/import_rules/import_rules_route.gen.ts index 225179a6c04891..499960bbaedf68 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/import_rules/import_rules_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/import_rules/import_rules_route.gen.ts @@ -11,6 +11,10 @@ import { BooleanFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Import Rules API endpoint + * version: 2023-10-31 */ import { ErrorSchema } from '../../model/error_schema.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/read_tags/read_tags_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/read_tags/read_tags_route.gen.ts index a2a52f4a1f7e98..403653a5beda0c 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/read_tags/read_tags_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_management/read_tags/read_tags_route.gen.ts @@ -10,6 +10,10 @@ import type { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Tags API endpoint + * version: 2023-10-31 */ import { RuleTagArray } from '../../model/rule_schema/common_attributes.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_event.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_event.gen.ts index e493c5233a03d2..7fbf8e1a989daa 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_event.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_event.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execution Event Schema + * version: not applicable */ export type LogLevel = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_metrics.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_metrics.gen.ts index 67aac49310a7d7..7ff0ad22c2ddee 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_metrics.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_metrics.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execution Metrics Schema + * version: not applicable */ export type RuleExecutionMetrics = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_result.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_result.gen.ts index 2d2bbccf531081..a1706fe0f41416 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_result.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_result.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execution Result Schema + * version: not applicable */ /** diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_status.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_status.gen.ts index 01901971a2a9ba..f780d3d7a80312 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_status.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_status.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execution Status Schema + * version: not applicable */ /** diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_summary.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_summary.gen.ts index 315dc77db6ba85..dea92541d2ac39 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_summary.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_summary.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execution Summary Schema + * version: not applicable */ import { RuleExecutionStatus, RuleExecutionStatusOrder } from './execution_status.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_events/get_rule_execution_events_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_events/get_rule_execution_events_route.gen.ts index 352a8cbdf89b00..5a6567fc2eea44 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_events/get_rule_execution_events_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_events/get_rule_execution_events_route.gen.ts @@ -11,6 +11,10 @@ import { ArrayFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Rule Execution Events API endpoint + * version: 1 */ import { diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.gen.ts index cb8e2f1d8ffa54..50cb863588a066 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/rule_monitoring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.gen.ts @@ -11,6 +11,10 @@ import { ArrayFromString } from '@kbn/zod-helpers'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Rule Execution Results API endpoint + * version: 1 */ import { RuleExecutionStatus } from '../../model/execution_status.gen'; diff --git a/x-pack/plugins/security_solution/common/api/detection_engine/users/suggest_user_profiles_route.gen.ts b/x-pack/plugins/security_solution/common/api/detection_engine/users/suggest_user_profiles_route.gen.ts index f403501c52ea7e..28e95e256d5987 100644 --- a/x-pack/plugins/security_solution/common/api/detection_engine/users/suggest_user_profiles_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/detection_engine/users/suggest_user_profiles_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Suggest user profiles API endpoint + * version: 2023-10-31 */ export type SuggestUserProfilesRequestQuery = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/audit_log.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/audit_log.gen.ts index 36a15ffc5f7018..13a439c8c57d3f 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/audit_log.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/audit_log.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Audit Log Schema + * version: 2023-10-31 */ import { Page, PageSize, StartDate, EndDate, AgentId } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/details.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/details.gen.ts index 546878e699cd91..850a3cb92ee9ad 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/details.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/details.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Details Schema + * version: 2023-10-31 */ export type DetailsRequestParams = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/execute.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/execute.gen.ts index 12a227048d33d8..6980c7002789d2 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/execute.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/execute.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Execute Action Schema + * version: 2023-10-31 */ import { BaseActionSchema, Command, Timeout } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_download.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_download.gen.ts index 945a03f0d38d2f..aef0abeae3eb33 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_download.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_download.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: File Download Schema + * version: 2023-10-31 */ export type FileDownloadRequestParams = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_info.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_info.gen.ts index ef9a40462334e9..64fb58448e6311 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_info.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_info.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: File Info Schema + * version: 2023-10-31 */ export type FileInfoRequestParams = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_upload.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_upload.gen.ts index 4f40d187e7e3e5..2abd472c56a725 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/file_upload.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/file_upload.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: File Upload Schema + * version: 2023-10-31 */ import { BaseActionSchema } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/get_file.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/get_file.gen.ts index 1b1513af9b13b5..017888dab8b232 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/get_file.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/get_file.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get File Schema + * version: 2023-10-31 */ import { BaseActionSchema } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/list.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/list.gen.ts index cc365bd9217336..4bf6c1708e0ec6 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/list.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/list.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Actions List Schema + * version: 2023-10-31 */ import { diff --git a/x-pack/plugins/security_solution/common/api/endpoint/metadata/list_metadata.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/metadata/list_metadata.gen.ts index d56463621d3c89..9ecf9e8c98412f 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/metadata/list_metadata.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/metadata/list_metadata.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: List Metadata Schema + * version: 2023-10-31 */ export type ListRequestQuery = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts index c5fc0f38f6b05e..ea25624cd8aa80 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/model/schema/common.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Common Endpoint Attributes + * version: 2023-10-31 */ export type Id = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/policy/policy.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/policy/policy.gen.ts index 0b81cbdccd8825..52dd5a9cf63ac0 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/policy/policy.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/policy/policy.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Endpoint Policy Schema + * version: 2023-10-31 */ import { SuccessResponse, AgentId } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/suggestions/get_suggestions.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/suggestions/get_suggestions.gen.ts index 5c4553d7d57af1..a485aaec2f04e6 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/suggestions/get_suggestions.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/suggestions/get_suggestions.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Get Suggestions Schema + * version: 2023-10-31 */ import { SuccessResponse } from '../model/schema/common.gen'; diff --git a/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts b/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts index 378aaa3098584c..ef59ab50416e90 100644 --- a/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts +++ b/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/common.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Asset Criticality Common Schema + * version: 1.0.0 */ export type IdField = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/get_asset_criticality_status.gen.ts b/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/get_asset_criticality_status.gen.ts index 6e034ae654f6ec..fdace6d552b6ac 100644 --- a/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/get_asset_criticality_status.gen.ts +++ b/x-pack/plugins/security_solution/common/api/entity_analytics/asset_criticality/get_asset_criticality_status.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Asset Criticality Status Schema + * version: 1.0.0 */ export type AssetCriticalityStatusResponse = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts b/x-pack/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts index adf849b7ae78b0..908043ab7335ef 100644 --- a/x-pack/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts +++ b/x-pack/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Entity Analytics Common Schema + * version: 1.0.0 */ export type EntityAnalyticsPrivileges = z.infer; diff --git a/x-pack/plugins/security_solution/common/api/entity_analytics/risk_engine/engine_settings_route.gen.ts b/x-pack/plugins/security_solution/common/api/entity_analytics/risk_engine/engine_settings_route.gen.ts index 54c0e7f91b0bae..3fb57161c95546 100644 --- a/x-pack/plugins/security_solution/common/api/entity_analytics/risk_engine/engine_settings_route.gen.ts +++ b/x-pack/plugins/security_solution/common/api/entity_analytics/risk_engine/engine_settings_route.gen.ts @@ -10,6 +10,10 @@ import { z } from 'zod'; /* * NOTICE: Do not edit this file manually. * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. + * + * info: + * title: Risk Scoring API + * version: 1.0.0 */ import { DateRange } from '../common/common.gen';