diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 5ce00c5e45431..cc20e464235fe 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -51335,6 +51335,11 @@ components: type: string required: - hostStatuses + Security_Endpoint_Management_API_NonEmptyString: + description: A string that does not contain only whitespace characters + format: nonempty + minLength: 1 + type: string Security_Endpoint_Management_API_Page: default: 1 description: Page number diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index 9b71581c70cfe..077109b37adb4 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -20131,7 +20131,7 @@ paths: schema: type: object description: | - Indicates a successful call. NOTE: This HTTP response code indicates that the bulk operation succeeded. Errors pertaining to individual objects will be returned in the response body. + Indicates a successful call. NOTE: This HTTP response code indicates that the bulk operation succeeded. Errors pertaining to individual objects will be returned in the response body. '400': content: application/json; Elastic-Api-Version=2023-10-31: @@ -20163,7 +20163,7 @@ paths: schema: type: object description: | - Indicates a successful call. NOTE: This HTTP response code indicates that the bulk operation succeeded. Errors pertaining to individual objects will be returned in the response body. + Indicates a successful call. NOTE: This HTTP response code indicates that the bulk operation succeeded. Errors pertaining to individual objects will be returned in the response body. '400': content: application/json; Elastic-Api-Version=2023-10-31: @@ -28421,7 +28421,7 @@ components: type: boolean scaling_factor: description: | - The scaling factor to use when encoding values. This property is applicable when `type` is `scaled_float`. Values will be multiplied by this factor at index time and rounded to the closest long value. + The scaling factor to use when encoding values. This property is applicable when `type` is `scaled_float`. Values will be multiplied by this factor at index time and rounded to the closest long value. type: integer type: description: Specifies the data type for the field. @@ -40222,9 +40222,56 @@ components: required: - parameters Security_Endpoint_Management_API_GetProcessesRouteRequestBody: - $ref: '#/components/schemas/Security_Endpoint_Management_API_NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AgentTypes' + alert_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AlertIds' + case_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_CaseIds' + comment: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Comment' + endpoint_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_EndpointIds' + parameters: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Parameters' + required: + - endpoint_ids + Security_Endpoint_Management_API_HostPathScriptParameters: + type: object + properties: + commandLine: + description: Command line arguments. + minLength: 1 + type: string + hostPath: + description: Absolute or relative path of script on host machine. + minLength: 1 + type: string + timeout: + description: Timeout in seconds. + minimum: 1 + type: integer + required: + - hostPath Security_Endpoint_Management_API_IsolateRouteRequestBody: - $ref: '#/components/schemas/Security_Endpoint_Management_API_NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AgentTypes' + alert_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AlertIds' + case_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_CaseIds' + comment: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Comment' + endpoint_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_EndpointIds' + parameters: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Parameters' + required: + - endpoint_ids Security_Endpoint_Management_API_KillProcessRouteRequestBody: allOf: - type: object @@ -40304,28 +40351,11 @@ components: type: string required: - hostStatuses - Security_Endpoint_Management_API_NoParametersRequestSchema: - type: object - properties: - body: - type: object - properties: - agent_type: - $ref: '#/components/schemas/Security_Endpoint_Management_API_AgentTypes' - alert_ids: - $ref: '#/components/schemas/Security_Endpoint_Management_API_AlertIds' - case_ids: - $ref: '#/components/schemas/Security_Endpoint_Management_API_CaseIds' - comment: - $ref: '#/components/schemas/Security_Endpoint_Management_API_Comment' - endpoint_ids: - $ref: '#/components/schemas/Security_Endpoint_Management_API_EndpointIds' - parameters: - $ref: '#/components/schemas/Security_Endpoint_Management_API_Parameters' - required: - - endpoint_ids - required: - - body + Security_Endpoint_Management_API_NonEmptyString: + description: A string that does not contain only whitespace characters + format: nonempty + minLength: 1 + type: string Security_Endpoint_Management_API_Page: default: 1 description: Page number @@ -40456,7 +40486,22 @@ components: minLength: 1 type: array Security_Endpoint_Management_API_UnisolateRouteRequestBody: - $ref: '#/components/schemas/Security_Endpoint_Management_API_NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AgentTypes' + alert_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_AlertIds' + case_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_CaseIds' + comment: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Comment' + endpoint_ids: + $ref: '#/components/schemas/Security_Endpoint_Management_API_EndpointIds' + parameters: + $ref: '#/components/schemas/Security_Endpoint_Management_API_Parameters' + required: + - endpoint_ids Security_Endpoint_Management_API_UploadRouteRequestBody: allOf: - type: object @@ -45095,7 +45140,7 @@ components: items: type: string description: | - A list of "carbon copy" email addresses. Addresses can be specified in `user@host-name` format or in name `` format + A list of "carbon copy" email addresses. Addresses can be specified in `user@host-name` format or in name `` format message: type: string description: The email message text. Markdown format is supported. diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.gen.ts index b5684adfe6ff6..030ba1433fb7b 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.gen.ts @@ -16,10 +16,10 @@ import type { z } from '@kbn/zod'; -import { SuccessResponse, NoParametersRequestSchema } from '../../../model/schema/common.gen'; +import { SuccessResponse, BaseActionSchema } from '../../../model/schema/common.gen'; export type IsolateRouteRequestBody = z.infer; -export const IsolateRouteRequestBody = NoParametersRequestSchema; +export const IsolateRouteRequestBody = BaseActionSchema; export type EndpointIsolateActionRequestBody = z.infer; export const EndpointIsolateActionRequestBody = IsolateRouteRequestBody; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.schema.yaml b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.schema.yaml index 5bfd57a4e406d..396d8e3d54b1e 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.schema.yaml +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/isolate/isolate.schema.yaml @@ -27,4 +27,4 @@ paths: components: schemas: IsolateRouteRequestBody: - $ref: '../../../model/schema/common.schema.yaml#/components/schemas/NoParametersRequestSchema' + $ref: '../../../model/schema/common.schema.yaml#/components/schemas/BaseActionSchema' diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.gen.ts index da7338bc62fe9..63e31a863e58e 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.gen.ts @@ -16,10 +16,10 @@ import type { z } from '@kbn/zod'; -import { SuccessResponse, NoParametersRequestSchema } from '../../../model/schema/common.gen'; +import { SuccessResponse, BaseActionSchema } from '../../../model/schema/common.gen'; export type GetProcessesRouteRequestBody = z.infer; -export const GetProcessesRouteRequestBody = NoParametersRequestSchema; +export const GetProcessesRouteRequestBody = BaseActionSchema; export type EndpointGetProcessesActionRequestBody = z.infer< typeof EndpointGetProcessesActionRequestBody diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.schema.yaml b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.schema.yaml index d49af9a84bc8e..dc2735e04b50f 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.schema.yaml +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/running_procs/running_procs.schema.yaml @@ -28,4 +28,4 @@ components: schemas: GetProcessesRouteRequestBody: allOf: - - $ref: '../../../model/schema/common.schema.yaml#/components/schemas/NoParametersRequestSchema' + - $ref: '../../../model/schema/common.schema.yaml#/components/schemas/BaseActionSchema' diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.gen.ts b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.gen.ts index 924e139f4731d..115ff4162e206 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.gen.ts +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.gen.ts @@ -16,10 +16,10 @@ import type { z } from '@kbn/zod'; -import { SuccessResponse, NoParametersRequestSchema } from '../../../model/schema/common.gen'; +import { SuccessResponse, BaseActionSchema } from '../../../model/schema/common.gen'; export type UnisolateRouteRequestBody = z.infer; -export const UnisolateRouteRequestBody = NoParametersRequestSchema; +export const UnisolateRouteRequestBody = BaseActionSchema; export type EndpointUnisolateActionRequestBody = z.infer; export const EndpointUnisolateActionRequestBody = UnisolateRouteRequestBody; diff --git a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.schema.yaml b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.schema.yaml index 344f1c89eb096..6f5d2087c556e 100644 --- a/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.schema.yaml +++ b/x-pack/plugins/security_solution/common/api/endpoint/actions/response_actions/unisolate/unisolate.schema.yaml @@ -27,4 +27,4 @@ paths: components: schemas: UnisolateRouteRequestBody: - $ref: '../../../model/schema/common.schema.yaml#/components/schemas/NoParametersRequestSchema' + $ref: '../../../model/schema/common.schema.yaml#/components/schemas/BaseActionSchema' diff --git a/x-pack/plugins/security_solution/docs/openapi/ess/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml b/x-pack/plugins/security_solution/docs/openapi/ess/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml index f5dc3ba5400db..2b0233c3fdef5 100644 --- a/x-pack/plugins/security_solution/docs/openapi/ess/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/plugins/security_solution/docs/openapi/ess/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml @@ -839,9 +839,56 @@ components: required: - parameters GetProcessesRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids + HostPathScriptParameters: + type: object + properties: + commandLine: + description: Command line arguments. + minLength: 1 + type: string + hostPath: + description: Absolute or relative path of script on host machine. + minLength: 1 + type: string + timeout: + description: Timeout in seconds. + minimum: 1 + type: integer + required: + - hostPath IsolateRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids KillProcessRouteRequestBody: allOf: - type: object @@ -921,28 +968,11 @@ components: type: string required: - hostStatuses - NoParametersRequestSchema: - type: object - properties: - body: - type: object - properties: - agent_type: - $ref: '#/components/schemas/AgentTypes' - alert_ids: - $ref: '#/components/schemas/AlertIds' - case_ids: - $ref: '#/components/schemas/CaseIds' - comment: - $ref: '#/components/schemas/Comment' - endpoint_ids: - $ref: '#/components/schemas/EndpointIds' - parameters: - $ref: '#/components/schemas/Parameters' - required: - - endpoint_ids - required: - - body + NonEmptyString: + description: A string that does not contain only whitespace characters + format: nonempty + minLength: 1 + type: string Page: default: 1 description: Page number @@ -1073,7 +1103,22 @@ components: minLength: 1 type: array UnisolateRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids UploadRouteRequestBody: allOf: - type: object diff --git a/x-pack/plugins/security_solution/docs/openapi/serverless/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml b/x-pack/plugins/security_solution/docs/openapi/serverless/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml index bfce197778647..5e162c6c23bbb 100644 --- a/x-pack/plugins/security_solution/docs/openapi/serverless/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/plugins/security_solution/docs/openapi/serverless/security_solution_endpoint_management_api_2023_10_31.bundled.schema.yaml @@ -739,9 +739,56 @@ components: required: - parameters GetProcessesRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids + HostPathScriptParameters: + type: object + properties: + commandLine: + description: Command line arguments. + minLength: 1 + type: string + hostPath: + description: Absolute or relative path of script on host machine. + minLength: 1 + type: string + timeout: + description: Timeout in seconds. + minimum: 1 + type: integer + required: + - hostPath IsolateRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids KillProcessRouteRequestBody: allOf: - type: object @@ -821,28 +868,11 @@ components: type: string required: - hostStatuses - NoParametersRequestSchema: - type: object - properties: - body: - type: object - properties: - agent_type: - $ref: '#/components/schemas/AgentTypes' - alert_ids: - $ref: '#/components/schemas/AlertIds' - case_ids: - $ref: '#/components/schemas/CaseIds' - comment: - $ref: '#/components/schemas/Comment' - endpoint_ids: - $ref: '#/components/schemas/EndpointIds' - parameters: - $ref: '#/components/schemas/Parameters' - required: - - endpoint_ids - required: - - body + NonEmptyString: + description: A string that does not contain only whitespace characters + format: nonempty + minLength: 1 + type: string Page: default: 1 description: Page number @@ -973,7 +1003,22 @@ components: minLength: 1 type: array UnisolateRouteRequestBody: - $ref: '#/components/schemas/NoParametersRequestSchema' + type: object + properties: + agent_type: + $ref: '#/components/schemas/AgentTypes' + alert_ids: + $ref: '#/components/schemas/AlertIds' + case_ids: + $ref: '#/components/schemas/CaseIds' + comment: + $ref: '#/components/schemas/Comment' + endpoint_ids: + $ref: '#/components/schemas/EndpointIds' + parameters: + $ref: '#/components/schemas/Parameters' + required: + - endpoint_ids UploadRouteRequestBody: allOf: - type: object