diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index fd0c8adde0ee9..bf09fc28cafca 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -94167,65 +94167,6 @@ components: - update example: create type: string - Cases_actions_comment_response_properties: - title: Case response properties for actions comments - type: object - properties: - actions: - type: object - properties: - targets: - items: - type: object - properties: - endpointId: - example: 1 - type: string - hostname: - example: host-01 - type: string - type: array - type: - example: isolate - type: string - comment: - example: Isolating the host from the case UI. - type: string - created_at: - example: '2022-05-13T09:16:17.416Z' - format: date-time - type: string - created_by: - $ref: '#/components/schemas/Cases_case_response_created_by_properties' - id: - example: 8af6ac20-74f6-11ea-b83a-553aecdb28b6 - type: string - owner: - $ref: '#/components/schemas/Cases_owner' - pushed_at: - example: null - format: date-time - nullable: true - type: string - pushed_by: - $ref: '#/components/schemas/Cases_case_response_pushed_by_properties' - type: - enum: - - actions - example: actions - type: string - updated_at: - example: null - format: date-time - nullable: true - type: string - updated_by: - $ref: '#/components/schemas/Cases_case_response_updated_by_properties' - version: - example: WzIwNDMxLDFd - type: string - required: - - type Cases_add_alert_comment_request_properties: description: Defines properties for case comment requests when type is alert. type: object @@ -94782,13 +94723,11 @@ components: items: discriminator: mapping: - actions: '#/components/schemas/Cases_actions_comment_response_properties' alert: '#/components/schemas/Cases_alert_comment_response_properties' event: '#/components/schemas/Cases_event_comment_response_properties' user: '#/components/schemas/Cases_user_comment_response_properties' propertyName: type oneOf: - - $ref: '#/components/schemas/Cases_actions_comment_response_properties' - $ref: '#/components/schemas/Cases_alert_comment_response_properties' - $ref: '#/components/schemas/Cases_event_comment_response_properties' - $ref: '#/components/schemas/Cases_user_comment_response_properties' diff --git a/x-pack/platform/plugins/shared/cases/common/bundled-types.gen.ts b/x-pack/platform/plugins/shared/cases/common/bundled-types.gen.ts index 21e2dac5995db..f19241a20a5a0 100644 --- a/x-pack/platform/plugins/shared/cases/common/bundled-types.gen.ts +++ b/x-pack/platform/plugins/shared/cases/common/bundled-types.gen.ts @@ -409,70 +409,6 @@ export const CaseResponseClosedByProperties = lazySchema(() => ); export type CaseResponseClosedByProperties = z.infer; -export const CaseResponseCreatedByProperties = lazySchema(() => - z.object({ - email: z.string().nullable(), - full_name: z.string().nullable(), - username: z.string().nullable(), - profile_uid: z.string().optional(), - }) -); -export type CaseResponseCreatedByProperties = z.infer; - -export const CaseResponsePushedByProperties = lazySchema(() => - z - .object({ - email: z.string().nullable(), - full_name: z.string().nullable(), - username: z.string().nullable(), - profile_uid: z.string().optional(), - }) - .nullable() -); -export type CaseResponsePushedByProperties = z.infer; - -export const CaseResponseUpdatedByProperties = lazySchema(() => - z - .object({ - email: z.string().nullable(), - full_name: z.string().nullable(), - username: z.string().nullable(), - profile_uid: z.string().optional(), - }) - .nullable() -); -export type CaseResponseUpdatedByProperties = z.infer; - -export const ActionsCommentResponseProperties = lazySchema(() => - z.object({ - actions: z - .object({ - targets: z - .array( - z.object({ - endpointId: z.string().optional(), - hostname: z.string().optional(), - }) - ) - .optional(), - type: z.string().optional(), - }) - .optional(), - comment: z.string().optional(), - created_at: z.string().datetime().optional(), - created_by: CaseResponseCreatedByProperties.optional(), - id: z.string().optional(), - owner: Owner.optional(), - pushed_at: z.string().datetime().nullable().optional(), - pushed_by: CaseResponsePushedByProperties.optional(), - type: z.literal('actions'), - updated_at: z.string().datetime().nullable().optional(), - updated_by: CaseResponseUpdatedByProperties.optional(), - version: z.string().optional(), - }) -); -export type ActionsCommentResponseProperties = z.infer; - export const AlertCommentResponseProperties = lazySchema(() => z.object({ alertId: z.array(z.string()).optional(), @@ -526,6 +462,40 @@ export const AlertCommentResponseProperties = lazySchema(() => ); export type AlertCommentResponseProperties = z.infer; +export const CaseResponseCreatedByProperties = lazySchema(() => + z.object({ + email: z.string().nullable(), + full_name: z.string().nullable(), + username: z.string().nullable(), + profile_uid: z.string().optional(), + }) +); +export type CaseResponseCreatedByProperties = z.infer; + +export const CaseResponsePushedByProperties = lazySchema(() => + z + .object({ + email: z.string().nullable(), + full_name: z.string().nullable(), + username: z.string().nullable(), + profile_uid: z.string().optional(), + }) + .nullable() +); +export type CaseResponsePushedByProperties = z.infer; + +export const CaseResponseUpdatedByProperties = lazySchema(() => + z + .object({ + email: z.string().nullable(), + full_name: z.string().nullable(), + username: z.string().nullable(), + profile_uid: z.string().optional(), + }) + .nullable() +); +export type CaseResponseUpdatedByProperties = z.infer; + export const EventCommentResponseProperties = lazySchema(() => z.object({ created_at: z.string().datetime().optional(), @@ -640,7 +610,6 @@ export const CaseResponseProperties = lazySchema(() => comments: z .array( z.discriminatedUnion('type', [ - ActionsCommentResponseProperties, AlertCommentResponseProperties, EventCommentResponseProperties, UserCommentResponseProperties, diff --git a/x-pack/platform/plugins/shared/cases/common/workflows/steps/get_all_attachments.ts b/x-pack/platform/plugins/shared/cases/common/workflows/steps/get_all_attachments.ts index 45edebd1b2d05..9e64e97e6b6b4 100644 --- a/x-pack/platform/plugins/shared/cases/common/workflows/steps/get_all_attachments.ts +++ b/x-pack/platform/plugins/shared/cases/common/workflows/steps/get_all_attachments.ts @@ -9,7 +9,6 @@ import { z } from '@kbn/zod/v4'; import { StepCategory } from '@kbn/workflows'; import type { CommonStepDefinition } from '@kbn/workflows-extensions/common'; import { - ActionsCommentResponseProperties, AlertCommentResponseProperties, EventCommentResponseProperties, UserCommentResponseProperties, @@ -20,8 +19,9 @@ import { CasesStepCaseIdSchema } from './shared'; export const GetAllAttachmentsStepTypeId = 'cases.getAllAttachments'; +// The workflow step parses this schema with a safeParse fallback +// so unsupported variants flow through untouched instead of throwing. const AttachmentSchema = z.discriminatedUnion('type', [ - ActionsCommentResponseProperties, AlertCommentResponseProperties, EventCommentResponseProperties, UserCommentResponseProperties, diff --git a/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.json b/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.json index c6b1feee2425f..0f8e9d9271249 100644 --- a/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.json +++ b/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.json @@ -2937,180 +2937,6 @@ "username" ] }, - "case_response_created_by_properties": { - "title": "Case response properties for created_by", - "type": "object", - "properties": { - "email": { - "type": "string", - "example": null, - "nullable": true - }, - "full_name": { - "type": "string", - "example": null, - "nullable": true - }, - "username": { - "type": "string", - "example": "elastic", - "nullable": true - }, - "profile_uid": { - "type": "string", - "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" - } - }, - "required": [ - "email", - "full_name", - "username" - ] - }, - "case_response_pushed_by_properties": { - "title": "Case response properties for pushed_by", - "type": "object", - "nullable": true, - "properties": { - "email": { - "type": "string", - "example": null, - "nullable": true - }, - "full_name": { - "type": "string", - "example": null, - "nullable": true - }, - "username": { - "type": "string", - "example": "elastic", - "nullable": true - }, - "profile_uid": { - "type": "string", - "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" - } - }, - "required": [ - "email", - "full_name", - "username" - ] - }, - "case_response_updated_by_properties": { - "title": "Case response properties for updated_by", - "type": "object", - "nullable": true, - "properties": { - "email": { - "type": "string", - "example": null, - "nullable": true - }, - "full_name": { - "type": "string", - "example": null, - "nullable": true - }, - "username": { - "type": "string", - "example": "elastic", - "nullable": true - }, - "profile_uid": { - "type": "string", - "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" - } - }, - "required": [ - "email", - "full_name", - "username" - ] - }, - "actions_comment_response_properties": { - "title": "Case response properties for actions comments", - "type": "object", - "required": [ - "type" - ], - "properties": { - "actions": { - "type": "object", - "properties": { - "targets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "endpointId": { - "type": "string", - "example": 1 - }, - "hostname": { - "type": "string", - "example": "host-01" - } - } - } - }, - "type": { - "type": "string", - "example": "isolate" - } - } - }, - "comment": { - "type": "string", - "example": "Isolating the host from the case UI." - }, - "created_at": { - "type": "string", - "format": "date-time", - "example": "2022-05-13T09:16:17.416Z" - }, - "created_by": { - "$ref": "#/components/schemas/case_response_created_by_properties" - }, - "id": { - "type": "string", - "example": "8af6ac20-74f6-11ea-b83a-553aecdb28b6" - }, - "owner": { - "$ref": "#/components/schemas/owner" - }, - "pushed_at": { - "type": "string", - "format": "date-time", - "nullable": true, - "example": null - }, - "pushed_by": { - "$ref": "#/components/schemas/case_response_pushed_by_properties" - }, - "type": { - "type": "string", - "example": "actions", - "enum": [ - "actions" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "nullable": true, - "example": null - }, - "updated_by": { - "$ref": "#/components/schemas/case_response_updated_by_properties" - }, - "version": { - "type": "string", - "example": "WzIwNDMxLDFd" - } - } - }, "alert_comment_response_properties": { "title": "Add case comment response properties for alerts", "type": "object", @@ -3398,6 +3224,98 @@ } } }, + "case_response_created_by_properties": { + "title": "Case response properties for created_by", + "type": "object", + "properties": { + "email": { + "type": "string", + "example": null, + "nullable": true + }, + "full_name": { + "type": "string", + "example": null, + "nullable": true + }, + "username": { + "type": "string", + "example": "elastic", + "nullable": true + }, + "profile_uid": { + "type": "string", + "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" + } + }, + "required": [ + "email", + "full_name", + "username" + ] + }, + "case_response_pushed_by_properties": { + "title": "Case response properties for pushed_by", + "type": "object", + "nullable": true, + "properties": { + "email": { + "type": "string", + "example": null, + "nullable": true + }, + "full_name": { + "type": "string", + "example": null, + "nullable": true + }, + "username": { + "type": "string", + "example": "elastic", + "nullable": true + }, + "profile_uid": { + "type": "string", + "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" + } + }, + "required": [ + "email", + "full_name", + "username" + ] + }, + "case_response_updated_by_properties": { + "title": "Case response properties for updated_by", + "type": "object", + "nullable": true, + "properties": { + "email": { + "type": "string", + "example": null, + "nullable": true + }, + "full_name": { + "type": "string", + "example": null, + "nullable": true + }, + "username": { + "type": "string", + "example": "elastic", + "nullable": true + }, + "profile_uid": { + "type": "string", + "example": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0" + } + }, + "required": [ + "email", + "full_name", + "username" + ] + }, "external_service": { "type": "object", "nullable": true, @@ -3558,9 +3476,6 @@ "maxItems": 10000, "items": { "oneOf": [ - { - "$ref": "#/components/schemas/actions_comment_response_properties" - }, { "$ref": "#/components/schemas/alert_comment_response_properties" }, @@ -3574,10 +3489,9 @@ "discriminator": { "propertyName": "type", "mapping": { - "actions": "actions_comment_response_properties.yaml", - "alert": "alert_comment_response_properties.yaml", - "event": "event_comment_response_properties.yaml", - "user": "user_comment_response_properties.yaml" + "alert": "#/components/schemas/alert_comment_response_properties", + "event": "#/components/schemas/event_comment_response_properties", + "user": "#/components/schemas/user_comment_response_properties" } } } @@ -3610,13 +3524,13 @@ "discriminator": { "propertyName": "type", "mapping": { - ".none": "connector_properties_none.yaml", - ".cases-webhook": "connector_properties_cases_webhook.yaml", - ".jira": "connector_properties_jira.yaml", - ".resilient": "connector_properties_resilient.yaml", - ".servicenow": "connector_properties_servicenow.yaml", - ".servicenow-sir": "connector_properties_servicenow_sir.yaml", - ".swimlane": "connector_properties_swimlane.yaml" + ".none": "#/components/schemas/connector_properties_none", + ".cases-webhook": "#/components/schemas/connector_properties_cases_webhook", + ".jira": "#/components/schemas/connector_properties_jira", + ".resilient": "#/components/schemas/connector_properties_resilient", + ".servicenow": "#/components/schemas/connector_properties_servicenow", + ".servicenow-sir": "#/components/schemas/connector_properties_servicenow_sir", + ".swimlane": "#/components/schemas/connector_properties_swimlane" } } }, @@ -4429,13 +4343,13 @@ "discriminator": { "propertyName": "type", "mapping": { - ".none": "connector_properties_none.yaml", - ".cases-webhook": "connector_properties_cases_webhook.yaml", - ".jira": "connector_properties_jira.yaml", - ".resilient": "connector_properties_resilient.yaml", - ".servicenow": "connector_properties_servicenow.yaml", - ".servicenow-sir": "connector_properties_servicenow_sir.yaml", - ".swimlane": "connector_properties_swimlane.yaml" + ".none": "#/components/schemas/connector_properties_none", + ".cases-webhook": "#/components/schemas/connector_properties_cases_webhook", + ".jira": "#/components/schemas/connector_properties_jira", + ".resilient": "#/components/schemas/connector_properties_resilient", + ".servicenow": "#/components/schemas/connector_properties_servicenow", + ".servicenow-sir": "#/components/schemas/connector_properties_servicenow_sir", + ".swimlane": "#/components/schemas/connector_properties_swimlane" } } }, @@ -4588,59 +4502,6 @@ } } }, - "alert_identifiers": { - "title": "Alert identifiers", - "description": "The alert identifiers. It is required only when `type` is `alert`. You can use an array of strings to add multiple alerts to a case, provided that they all relate to the same rule; `index` must also be an array with the same length or number of elements. Adding multiple alerts in this manner is recommended rather than calling the API multiple times. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - }, - "maxItems": 1000 - } - ], - "x-state": "Technical preview", - "example": "6b24c4dc44bc720cfc92797f3d61fff952f2b2627db1fb4f8cc49f4530c4ff42" - }, - "alert_indices": { - "title": "Alert indices", - "description": "The alert indices. It is required only when `type` is `alert`. If you are adding multiple alerts to a case, use an array of strings; the position of each index name in the array must match the position of the corresponding alert identifier in the `alertId` array. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - }, - "maxItems": 1000 - } - ], - "x-state": "Technical preview" - }, - "rule": { - "title": "Alerting rule", - "description": "The rule that is associated with the alerts. It is required only when `type` is `alert`. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", - "type": "object", - "x-state": "Technical preview", - "properties": { - "id": { - "description": "The rule identifier.", - "type": "string", - "example": "94d80550-aaf4-11ec-985f-97e55adae8b9" - }, - "name": { - "description": "The rule name.", - "type": "string", - "example": "security_rule" - } - } - }, "add_alert_comment_request_properties": { "title": "Add case comment request properties for alerts", "required": [ @@ -4704,6 +4565,59 @@ "type" ] }, + "alert_identifiers": { + "title": "Alert identifiers", + "description": "The alert identifiers. It is required only when `type` is `alert`. You can use an array of strings to add multiple alerts to a case, provided that they all relate to the same rule; `index` must also be an array with the same length or number of elements. Adding multiple alerts in this manner is recommended rather than calling the API multiple times. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 1000 + } + ], + "x-state": "Technical preview", + "example": "6b24c4dc44bc720cfc92797f3d61fff952f2b2627db1fb4f8cc49f4530c4ff42" + }, + "alert_indices": { + "title": "Alert indices", + "description": "The alert indices. It is required only when `type` is `alert`. If you are adding multiple alerts to a case, use an array of strings; the position of each index name in the array must match the position of the corresponding alert identifier in the `alertId` array. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 1000 + } + ], + "x-state": "Technical preview" + }, + "rule": { + "title": "Alerting rule", + "description": "The rule that is associated with the alerts. It is required only when `type` is `alert`. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.\n", + "type": "object", + "x-state": "Technical preview", + "properties": { + "id": { + "description": "The rule identifier.", + "type": "string", + "example": "94d80550-aaf4-11ec-985f-97e55adae8b9" + }, + "name": { + "description": "The rule name.", + "type": "string", + "example": "security_rule" + } + } + }, "add_case_comment_request": { "title": "Add case comment request", "description": "The add comment to case API request body varies depending on whether you are adding an alert or a comment.", @@ -4718,8 +4632,8 @@ "discriminator": { "propertyName": "type", "mapping": { - "alert": "add_alert_comment_request_properties.yaml", - "user": "add_user_comment_request_properties.yaml" + "alert": "#/components/schemas/add_alert_comment_request_properties", + "user": "#/components/schemas/add_user_comment_request_properties" } } }, @@ -4824,8 +4738,8 @@ "discriminator": { "propertyName": "type", "mapping": { - "alert": "update_alert_comment_request_properties.yaml", - "user": "update_user_comment_request_properties.yaml" + "alert": "#/components/schemas/update_alert_comment_request_properties", + "user": "#/components/schemas/update_user_comment_request_properties" } } }, diff --git a/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.schema.yaml b/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.schema.yaml index dfe2241039432..0caaebfd05e95 100644 --- a/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.schema.yaml +++ b/x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.schema.yaml @@ -2016,65 +2016,6 @@ components: - email - full_name - username - actions_comment_response_properties: - title: Case response properties for actions comments - type: object - required: - - type - properties: - actions: - type: object - properties: - targets: - type: array - items: - type: object - properties: - endpointId: - type: string - example: 1 - hostname: - type: string - example: host-01 - type: - type: string - example: isolate - comment: - type: string - example: Isolating the host from the case UI. - created_at: - type: string - format: date-time - example: '2022-05-13T09:16:17.416Z' - created_by: - $ref: '#/components/schemas/case_response_created_by_properties' - id: - type: string - example: 8af6ac20-74f6-11ea-b83a-553aecdb28b6 - owner: - $ref: '#/components/schemas/owner' - pushed_at: - type: string - format: date-time - nullable: true - example: null - pushed_by: - $ref: '#/components/schemas/case_response_pushed_by_properties' - type: - type: string - example: actions - enum: - - actions - updated_at: - type: string - format: date-time - nullable: true - example: null - updated_by: - $ref: '#/components/schemas/case_response_updated_by_properties' - version: - type: string - example: WzIwNDMxLDFd alert_comment_response_properties: title: Add case comment response properties for alerts type: object @@ -2490,14 +2431,12 @@ components: maxItems: 10000 items: oneOf: - - $ref: '#/components/schemas/actions_comment_response_properties' - $ref: '#/components/schemas/alert_comment_response_properties' - $ref: '#/components/schemas/event_comment_response_properties' - $ref: '#/components/schemas/user_comment_response_properties' discriminator: propertyName: type mapping: - actions: '#/components/schemas/actions_comment_response_properties' alert: '#/components/schemas/alert_comment_response_properties' event: '#/components/schemas/event_comment_response_properties' user: '#/components/schemas/user_comment_response_properties' diff --git a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/actions_comment_response_properties.yaml b/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/actions_comment_response_properties.yaml deleted file mode 100644 index 60a0a656aea76..0000000000000 --- a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/actions_comment_response_properties.yaml +++ /dev/null @@ -1,58 +0,0 @@ -title: Case response properties for actions comments -type: object -required: - - type -properties: - actions: - type: object - properties: - targets: - type: array - items: - type: object - properties: - endpointId: - type: string - example: 001 - hostname: - type: string - example: host-01 - type: - type: string - example: isolate - comment: - type: string - example: Isolating the host from the case UI. - created_at: - type: string - format: date-time - example: 2022-05-13T09:16:17.416Z - created_by: - $ref: 'case_response_created_by_properties.yaml' - id: - type: string - example: 8af6ac20-74f6-11ea-b83a-553aecdb28b6 - owner: - $ref: 'owner.yaml' - pushed_at: - type: string - format: date-time - nullable: true - example: null - pushed_by: - $ref: 'case_response_pushed_by_properties.yaml' - type: - type: string - example: actions - enum: - - actions - updated_at: - type: string - format: date-time - nullable: true - example: null - updated_by: - $ref: 'case_response_updated_by_properties.yaml' - version: - type: string - example: WzIwNDMxLDFd diff --git a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/case_response_properties.yaml b/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/case_response_properties.yaml index bf9591c75d7aa..9dff9aae92692 100644 --- a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/case_response_properties.yaml +++ b/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/case_response_properties.yaml @@ -44,14 +44,12 @@ properties: maxItems: 10000 items: oneOf: - - $ref: 'actions_comment_response_properties.yaml' - $ref: 'alert_comment_response_properties.yaml' - $ref: 'event_comment_response_properties.yaml' - $ref: 'user_comment_response_properties.yaml' discriminator: propertyName: type mapping: - actions: 'actions_comment_response_properties.yaml' alert: 'alert_comment_response_properties.yaml' event: 'event_comment_response_properties.yaml' user: 'user_comment_response_properties.yaml' diff --git a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/comment_types.yaml b/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/comment_types.yaml deleted file mode 100644 index 55ef895c4fd71..0000000000000 --- a/x-pack/platform/plugins/shared/cases/docs/openapi/components/schemas/comment_types.yaml +++ /dev/null @@ -1,8 +0,0 @@ -type: string -description: The type of comment. -enum: - - actions - - alert - - event - - user -example: user \ No newline at end of file