[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:
Maxim Palenov 2024-06-11 13:38:11 +02:00 committed by GitHub
parent 3c1cc8bf4a
commit d0ed41b21a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
110 changed files with 233 additions and 233 deletions

View file

@ -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,

View file

@ -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}}

View file

@ -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';

View file

@ -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>;

View file

@ -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>;

View file

@ -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';

View file

@ -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(),

View file

@ -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
*/

View file

@ -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,

View file

@ -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';
/**

View file

@ -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,

View file

@ -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>;

View file

@ -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()),

View file

@ -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-/);

View file

@ -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,

View file

@ -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>;

View file

@ -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.
*/

View file

@ -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,

View file

@ -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>;

View file

@ -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>;

View file

@ -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({});

View file

@ -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({});

View file

@ -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({});

View file

@ -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>;

View file

@ -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>;

View file

@ -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({});

View file

@ -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({});

View file

@ -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,

View file

@ -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,

View file

@ -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({});

View file

@ -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,

View file

@ -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();

View file

@ -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,

View file

@ -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>;

View file

@ -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,

View file

@ -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>;

View file

@ -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,

View file

@ -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,

View file

@ -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>;

View file

@ -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,

View file

@ -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>;

View file

@ -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,

View file

@ -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';

View file

@ -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>;

View file

@ -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
*/

View file

@ -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;

View file

@ -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>;

View file

@ -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,

View file

@ -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();

View file

@ -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
*/

View file

@ -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>;

View file

@ -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';
/**

View file

@ -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>;

View file

@ -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;

View file

@ -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(),

View file

@ -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
>;

View file

@ -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
>;

View file

@ -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,

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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';

View file

@ -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>;

View file

@ -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';

View file

@ -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>;

View file

@ -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';

View file

@ -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>;

View file

@ -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>;

View file

@ -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';

View file

@ -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';

View file

@ -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>;

View file

@ -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;

View file

@ -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({
/**

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.

View file

@ -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';

View file

@ -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,

View file

@ -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 {

View file

@ -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({
/**

View file

@ -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>;

View file

@ -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(),

View file

@ -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>;

View file

@ -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(),

View file

@ -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(),

View file

@ -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>;

View file

@ -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>;

View file

@ -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,

View file

@ -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>;

View file

@ -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({
/**

View file

@ -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>;

View file

@ -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>;

View file

@ -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<

View file

@ -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;

View file

@ -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(),

View file

@ -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(),

View file

@ -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(),

View file

@ -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>;

View file

@ -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