mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Security Solution] Support import/order
ESlint rule by code generation (#185913)
## Summary This PR moves disclaimer comment section to the top of the generated files to support `import/order` ESlint rule. ## Details `kbn-openapi-generator` generates `<schema-name>.gen.ts` files for each encountered schema with enabled code generation. The generate file contains imports of the referenced schema from the other generated files. Everything works until there is a reference to a package or another plugin. Consider an example below where we have a generated file with an import from `kbn-openapi-common` package (this package doesn't exist in reality and used for clarity but the same can be shown with cross plugin references) ```ts /* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ 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: Shared Alert Primitives Schema * version: not applicable */ import { NonEmptyString } from '@kbn/openapi-common/primitives'; /** * A list of alerts ids. */ export type AlertIds = z.infer<typeof AlertIds>; export const AlertIds = z.array(NonEmptyString).min(1); ``` If `import/order` rule is enabled for this file linting with fixing will fail with an error `8:1 error There should be no empty line within import group import/order` since auto-fix can't fix the file due to the comment between imports. Linting with auto-fixing is a part of code generation process which means code generation will fail in that case. For example lists plugin has `import/order` rule enabled. The problem is fixed by moving disclaimer (NOTICE) section to the top just right above the first import. Since the whole file is auto-generated it makes sense.
This commit is contained in:
parent
3c1cc8bf4a
commit
d0ed41b21a
110 changed files with 233 additions and 233 deletions
|
@ -5,11 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
{{> disclaimer}}
|
||||
|
||||
import { ELASTIC_HTTP_VERSION_HEADER, X_ELASTIC_INTERNAL_ORIGIN_REQUEST } from '@kbn/core-http-common';
|
||||
import { FtrProviderContext } from 'x-pack/test/api_integration/ftr_provider_context';
|
||||
|
||||
{{> disclaimer}}
|
||||
|
||||
{{#each operations}}
|
||||
import {
|
||||
{{operationId}}RequestQueryInput,
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
{{> disclaimer}}
|
||||
|
||||
import { z } from "zod";
|
||||
import { requiredOptional, isValidDateMath, ArrayFromString, BooleanFromString } from "@kbn/zod-helpers"
|
||||
|
||||
{{> disclaimer}}
|
||||
|
||||
{{#each imports}}
|
||||
import {
|
||||
{{#each this}}{{.}},{{/each}}
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString } from '../common_attributes.gen';
|
||||
import { Replacements } from '../conversations/common_attributes.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString } from '../common_attributes.gen';
|
||||
|
||||
export type BulkActionSkipReason = z.infer<typeof BulkActionSkipReason>;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { AnonymizationFieldResponse } from './bulk_crud_anonymization_fields_route.gen';
|
||||
|
||||
export type FindAnonymizationFieldsSortField = z.infer<typeof FindAnonymizationFieldsSortField>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AnonymizationFieldResponse } from '../anonymization_fields/bulk_crud_anonymization_fields_route.gen';
|
||||
import { Replacements, TraceData } from '../conversations/common_attributes.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetCapabilitiesResponse = z.infer<typeof GetCapabilitiesResponse>;
|
||||
export const GetCapabilitiesResponse = z.object({
|
||||
assistantKnowledgeBaseByDefault: z.boolean(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* A string that is not empty and does not contain only whitespace
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
ConversationCreateProps,
|
||||
ConversationUpdateProps,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString, User } from '../common_attributes.gen';
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
ConversationCreateProps,
|
||||
ConversationResponse,
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { ConversationResponse } from './common_attributes.gen';
|
||||
|
||||
export type FindConversationsSortField = z.infer<typeof FindConversationsSortField>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetEvaluateResponse = z.infer<typeof GetEvaluateResponse>;
|
||||
export const GetEvaluateResponse = z.object({
|
||||
agentExecutors: z.array(z.string()),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type OutputIndex = z.infer<typeof OutputIndex>;
|
||||
export const OutputIndex = z.string().regex(/^.kibana-elastic-ai-assistant-/);
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
KnowledgeBaseEntryCreateProps,
|
||||
KnowledgeBaseEntryUpdateProps,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString, User } from '../common_attributes.gen';
|
||||
|
||||
export type KnowledgeBaseEntryErrorSchema = z.infer<typeof KnowledgeBaseEntryErrorSchema>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* AI assistant KnowledgeBase.
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
KnowledgeBaseEntryCreateProps,
|
||||
KnowledgeBaseEntryResponse,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString, User } from '../common_attributes.gen';
|
||||
|
||||
export type BulkActionSkipReason = z.infer<typeof BulkActionSkipReason>;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { PromptResponse } from './bulk_crud_prompts_route.gen';
|
||||
|
||||
export type FindPromptsSortField = z.infer<typeof FindPromptsSortField>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type AssetsRequestQuery = z.infer<typeof AssetsRequestQuery>;
|
||||
export const AssetsRequestQuery = z.object({});
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetAgentDetailsRequestParams = z.infer<typeof GetAgentDetailsRequestParams>;
|
||||
export const GetAgentDetailsRequestParams = z.object({});
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetAgentPoliciesRequestParams = z.infer<typeof GetAgentPoliciesRequestParams>;
|
||||
export const GetAgentPoliciesRequestParams = z.object({});
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Id } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type GetAgentPolicyRequestParams = z.infer<typeof GetAgentPolicyRequestParams>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { KueryOrUndefined, Id } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type GetAgentStatusRequestParams = z.infer<typeof GetAgentStatusRequestParams>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetAgentsRequestParams = z.infer<typeof GetAgentsRequestParams>;
|
||||
export const GetAgentsRequestParams = z.object({});
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetPackagePoliciesRequestParams = z.infer<typeof GetPackagePoliciesRequestParams>;
|
||||
export const GetPackagePoliciesRequestParams = z.object({});
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
QueryOrUndefined,
|
||||
ArrayQueries,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
KueryOrUndefined,
|
||||
PageOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,5 +14,7 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type SuccessResponse = z.infer<typeof SuccessResponse>;
|
||||
export const SuccessResponse = z.object({});
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
KueryOrUndefined,
|
||||
PageOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type Id = z.infer<typeof Id>;
|
||||
export const Id = z.string();
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
PackName,
|
||||
DescriptionOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { PackId } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type DeletePacksRequestQuery = z.infer<typeof DeletePacksRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
PageOrUndefined,
|
||||
PageSizeOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { PackId } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type ReadPacksRequestQuery = z.infer<typeof ReadPacksRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
PackId,
|
||||
DescriptionOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
SavedQueryId,
|
||||
DescriptionOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { SavedQueryId } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type DeleteSavedQueryRequestQuery = z.infer<typeof DeleteSavedQueryRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
PageOrUndefined,
|
||||
PageSizeOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { SavedQueryId } from '../model/schema/common_attributes.gen';
|
||||
|
||||
export type ReadSavedQueryRequestQuery = z.infer<typeof ReadSavedQueryRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
SavedQueryId,
|
||||
DescriptionOrUndefined,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AlertIds } from '../../model/alert.gen';
|
||||
import { NonEmptyString } from '../../model/primitives.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleSignatureId } from './rule_schema/common_attributes.gen';
|
||||
|
||||
export type ErrorSchema = z.infer<typeof ErrorSchema>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Page number
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type ResponseActionTypes = z.infer<typeof ResponseActionTypes>;
|
||||
export const ResponseActionTypes = z.enum(['.osquery', '.endpoint']);
|
||||
export type ResponseActionTypesEnum = typeof ResponseActionTypes.enum;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { isValidDateMath } from '@kbn/zod-helpers';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { isValidDateMath } from '@kbn/zod-helpers';
|
||||
|
||||
import { UUID, NonEmptyString } from '../../../model/primitives.gen';
|
||||
|
||||
export type RuleObjectId = z.infer<typeof RuleObjectId>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
RuleName,
|
||||
RuleDescription,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type EventCategoryOverride = z.infer<typeof EventCategoryOverride>;
|
||||
export const EventCategoryOverride = z.string();
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Anomaly threshold
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString } from '../../../../model/primitives.gen';
|
||||
|
||||
export type NewTermsFields = z.infer<typeof NewTermsFields>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { NonEmptyString } from '../../../../model/primitives.gen';
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AlertSuppressionDuration } from '../common_attributes.gen';
|
||||
|
||||
export type ThresholdCardinality = z.infer<typeof ThresholdCardinality>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type SortOrder = z.infer<typeof SortOrder>;
|
||||
export const SortOrder = z.enum(['asc', 'desc']);
|
||||
export type SortOrderEnum = typeof SortOrder.enum;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type WarningSchema = z.infer<typeof WarningSchema>;
|
||||
export const WarningSchema = z.object({
|
||||
type: z.string(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type GetPrebuiltRulesAndTimelinesStatusResponse = z.infer<
|
||||
typeof GetPrebuiltRulesAndTimelinesStatusResponse
|
||||
>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type InstallPrebuiltRulesAndTimelinesResponse = z.infer<
|
||||
typeof InstallPrebuiltRulesAndTimelinesResponse
|
||||
>;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { BooleanFromString } from '@kbn/zod-helpers';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { BooleanFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { RuleResponse } from '../../model/rule_schema/rule_schemas.gen';
|
||||
import {
|
||||
RuleActionGroup,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleCreateProps } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
import { BulkCrudRulesResponse } from '../response_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen';
|
||||
import { BulkCrudRulesResponse } from '../response_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RulePatchProps } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
import { BulkCrudRulesResponse } from '../response_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleUpdateProps } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
import { BulkCrudRulesResponse } from '../response_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 8.9.0
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleResponse } from '../../model/rule_schema/rule_schemas.gen';
|
||||
import { ErrorSchema } from '../../model/error_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import type { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { RuleCreateProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
export type CreateRuleRequestBody = z.infer<typeof CreateRuleRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen';
|
||||
import { RuleResponse } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import type { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { RulePatchProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
export type PatchRuleRequestBody = z.infer<typeof PatchRuleRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleObjectId, RuleSignatureId } from '../../../model/rule_schema/common_attributes.gen';
|
||||
import { RuleResponse } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import type { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { RuleUpdateProps, RuleResponse } from '../../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
export type UpdateRuleRequestBody = z.infer<typeof UpdateRuleRequestBody>;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { BooleanFromString } from '@kbn/zod-helpers';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { BooleanFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { RuleSignatureId } from '../../model/rule_schema/common_attributes.gen';
|
||||
|
||||
export type ExportRulesRequestQuery = z.infer<typeof ExportRulesRequestQuery>;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { SortOrder } from '../../model/sorting.gen';
|
||||
import { RuleResponse } from '../../model/rule_schema/rule_schemas.gen';
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { BooleanFromString } from '@kbn/zod-helpers';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { BooleanFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { ErrorSchema } from '../../model/error_schema.gen';
|
||||
import { WarningSchema } from '../../model/warning_schema.gen';
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import type { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { RuleTagArray } from '../../model/rule_schema/common_attributes.gen';
|
||||
|
||||
export type ReadTagsResponse = z.infer<typeof ReadTagsResponse>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type LogLevel = z.infer<typeof LogLevel>;
|
||||
export const LogLevel = z.enum(['trace', 'debug', 'info', 'warn', 'error']);
|
||||
export type LogLevelEnum = typeof LogLevel.enum;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type RuleExecutionMetrics = z.infer<typeof RuleExecutionMetrics>;
|
||||
export const RuleExecutionMetrics = z.object({
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Rule execution result is an aggregate that groups plain rule execution events by execution UUID. It contains such information as execution UUID, date, status and metrics.
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Type of rule execution run.
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Custom execution status of Security rules that is different from the status used in the Alerting Framework. We merge our custom status with the Framework's status to determine the resulting status of a rule.
|
||||
- going to run - @deprecated Replaced by the 'running' status but left for backwards compatibility with rule execution events already written to Event Log in the prior versions of Kibana. Don't use when writing rule status changes.
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: not applicable
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { RuleExecutionStatus, RuleExecutionStatusOrder } from './execution_status.gen';
|
||||
import { RuleExecutionMetrics } from './execution_metrics.gen';
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import {
|
||||
RuleExecutionEventType,
|
||||
LogLevel,
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
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.
|
||||
|
@ -17,6 +14,9 @@ import { ArrayFromString } from '@kbn/zod-helpers';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
import { ArrayFromString } from '@kbn/zod-helpers';
|
||||
|
||||
import { RuleExecutionStatus } from '../../model/execution_status.gen';
|
||||
import { RuleRunType } from '../../model/execution_run_type.gen';
|
||||
import {
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type SuggestUserProfilesRequestQuery = z.infer<typeof SuggestUserProfilesRequestQuery>;
|
||||
export const SuggestUserProfilesRequestQuery = z.object({
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { Page, PageSize, StartDate, EndDate, AgentId } from '../model/schema/common.gen';
|
||||
|
||||
export type AuditLogRequestQuery = z.infer<typeof AuditLogRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type DetailsRequestParams = z.infer<typeof DetailsRequestParams>;
|
||||
export const DetailsRequestParams = z.object({
|
||||
action_id: z.string().optional(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { BaseActionSchema, Command, Timeout } from '../model/schema/common.gen';
|
||||
|
||||
export type ExecuteActionRequestBody = z.infer<typeof ExecuteActionRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type FileDownloadRequestParams = z.infer<typeof FileDownloadRequestParams>;
|
||||
export const FileDownloadRequestParams = z.object({
|
||||
action_id: z.string(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type FileInfoRequestParams = z.infer<typeof FileInfoRequestParams>;
|
||||
export const FileInfoRequestParams = z.object({
|
||||
action_id: z.string(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { BaseActionSchema } from '../model/schema/common.gen';
|
||||
|
||||
export type FileUploadActionRequestBody = z.infer<typeof FileUploadActionRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { BaseActionSchema } from '../model/schema/common.gen';
|
||||
|
||||
export type GetFileActionRequestBody = z.infer<typeof GetFileActionRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
AgentIds,
|
||||
Commands,
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { BaseActionSchema } from '../model/schema/common.gen';
|
||||
|
||||
export type ScanActionRequestBody = z.infer<typeof ScanActionRequestBody>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type ListRequestQuery = z.infer<typeof ListRequestQuery>;
|
||||
export const ListRequestQuery = z.object({
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AlertIds } from '../../../model/alert.gen';
|
||||
|
||||
export type Id = z.infer<typeof Id>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { SuccessResponse, AgentId } from '../model/schema/common.gen';
|
||||
|
||||
export type GetAgentPolicySummaryRequestQuery = z.infer<typeof GetAgentPolicySummaryRequestQuery>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 2023-10-31
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { SuccessResponse } from '../model/schema/common.gen';
|
||||
|
||||
export type GetEndpointSuggestionsRequestParams = z.infer<
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type IdField = z.infer<typeof IdField>;
|
||||
export const IdField = z.enum(['host.name', 'user.name']);
|
||||
export type IdFieldEnum = typeof IdField.enum;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type EntityAnalyticsPrivileges = z.infer<typeof EntityAnalyticsPrivileges>;
|
||||
export const EntityAnalyticsPrivileges = z.object({
|
||||
has_all_required: z.boolean(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type AssetCriticalityStatusResponse = z.infer<typeof AssetCriticalityStatusResponse>;
|
||||
export const AssetCriticalityStatusResponse = z.object({
|
||||
asset_criticality_resources_installed: z.boolean().optional(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
export type ErrorItem = z.infer<typeof ErrorItem>;
|
||||
export const ErrorItem = z.object({
|
||||
message: z.string(),
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { AssetCriticalityLevel } from '../asset_criticality/common.gen';
|
||||
|
||||
export type EntityAfterKey = z.infer<typeof EntityAfterKey>;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
/*
|
||||
* NOTICE: Do not edit this file manually.
|
||||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator.
|
||||
|
@ -16,6 +14,8 @@ import { z } from 'zod';
|
|||
* version: 1
|
||||
*/
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import {
|
||||
AfterKeys,
|
||||
DataViewId,
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue