Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a899de6
generate cases API docs and zod schemas on the CI
janmonschke Jan 29, 2026
9cdf491
Merge branch 'main' into cases/generate-api-docs-on-ci
elasticmachine Feb 12, 2026
f8e9ebd
Changes from node scripts/lint_ts_projects --fix
kibanamachine Feb 12, 2026
88806e2
Changes from node scripts/regenerate_moon_projects.js --update
kibanamachine Feb 12, 2026
8996447
update permissions
janmonschke Feb 12, 2026
fcccc3b
fix generated types
janmonschke Feb 12, 2026
4304be2
Changes from make api-docs
kibanamachine Feb 12, 2026
6e93cfb
include generated types file
janmonschke Feb 12, 2026
ece828e
Changes from node scripts/regenerate_moon_projects.js --update
kibanamachine Feb 12, 2026
1a6f53e
defaults in enums are not supported yet
janmonschke Feb 12, 2026
eef94f0
Changes from yarn openapi
kibanamachine Feb 12, 2026
34427d7
Changes from make api-docs
kibanamachine Feb 12, 2026
fb45d93
Merge branch 'main' into cases/generate-api-docs-on-ci
elasticmachine Feb 13, 2026
ae19e2d
Merge branch 'main' into cases/generate-api-docs-on-ci
elasticmachine Feb 16, 2026
61cb75a
Merge branch 'main' into cases/generate-api-docs-on-ci
elasticmachine Feb 17, 2026
3bbdfc0
bundled-types.gen.ts -> bundle_types.gen.ts
janmonschke Feb 17, 2026
80d4e67
Changes from yarn openapi
kibanamachine Feb 17, 2026
1ee952d
Revert "Changes from yarn openapi"
janmonschke Feb 17, 2026
3228a48
back to snake case
janmonschke Feb 17, 2026
f53d250
Changes from yarn openapi
kibanamachine Feb 17, 2026
f9f2aa8
Merge branch 'main' into cases/generate-api-docs-on-ci
elasticmachine Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildkite/scripts/steps/checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ export DISABLE_BOOTSTRAP_VALIDATION=false
.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh
.buildkite/scripts/steps/code_generation/security_solution_codegen.sh
.buildkite/scripts/steps/code_generation/osquery_codegen.sh
.buildkite/scripts/steps/code_generation/cases_codegen.sh
12 changes: 12 additions & 0 deletions .buildkite/scripts/steps/code_generation/cases_codegen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/scripts/common/util.sh

echo --- Cases OpenAPI Code Generation

echo -e "\n[Cases OpenAPI Code Generation] Cases Plugin\n"
(cd x-pack/platform/plugins/shared/cases && yarn openapi)

check_for_changed_files "yarn openapi" true
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,7 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security
/.buildkite/scripts/steps/esql_generate_function_metadata.sh @elastic/kibana-esql
/.buildkite/pipelines/esql_grammar_sync.yml @elastic/kibana-esql
/.buildkite/scripts/steps/code_generation/security_solution_codegen.sh @elastic/security-detection-rule-management
/.buildkite/scripts/steps/code_generation/cases_codegen.sh @elastic/kibana-cases
/.buildkite/scripts/steps/security @elastic/kibana-security
/.buildkite/scripts/steps/entity_store_performance @elastic/contextual-security
/kbn_pm/ @elastic/kibana-operations
Expand Down
69 changes: 34 additions & 35 deletions oas_docs/output/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12320,7 +12320,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Delete cases
tags:
Expand Down Expand Up @@ -12377,7 +12377,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Update cases
tags:
Expand Down Expand Up @@ -12420,7 +12420,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Create a case
tags:
Expand Down Expand Up @@ -12488,7 +12488,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Search cases
tags:
Expand Down Expand Up @@ -12526,7 +12526,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get case information
tags:
Expand Down Expand Up @@ -12563,7 +12563,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get all alerts for a case
tags:
Expand Down Expand Up @@ -12593,7 +12593,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Delete all case comments and alerts
tags:
Expand Down Expand Up @@ -12637,7 +12637,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Update a case comment or alert
tags:
Expand Down Expand Up @@ -12681,7 +12681,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Add a case comment or alert
tags:
Expand Down Expand Up @@ -12716,7 +12716,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Find case comments and alerts
tags:
Expand Down Expand Up @@ -12746,7 +12746,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Delete a case comment or alert
tags:
Expand Down Expand Up @@ -12783,7 +12783,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get a case comment or alert
tags:
Expand Down Expand Up @@ -12826,7 +12826,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Push a case to an external service
tags:
Expand Down Expand Up @@ -12870,7 +12870,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Attach a file to a case
tags:
Expand Down Expand Up @@ -12921,7 +12921,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Find case activity
tags:
Expand Down Expand Up @@ -12967,7 +12967,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get cases for an alert
tags:
Expand Down Expand Up @@ -13140,7 +13140,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get case settings
tags:
Expand Down Expand Up @@ -13317,7 +13317,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Add case settings
tags:
Expand Down Expand Up @@ -13496,7 +13496,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Update case settings
tags:
Expand Down Expand Up @@ -13555,7 +13555,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get case connectors
tags:
Expand Down Expand Up @@ -13607,7 +13607,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get case creators
tags:
Expand Down Expand Up @@ -13645,7 +13645,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Cases_4xx_response'
$ref: '#/components/schemas/Cases_response_4xx'
description: Authorization information is missing or invalid.
summary: Get case tags
tags:
Expand Down Expand Up @@ -101425,18 +101425,6 @@ components:
body:
type: string
- $ref: '#/components/schemas/APM_UI_base_source_map_object'
Cases_4xx_response:
properties:
error:
example: Unauthorized
type: string
message:
type: string
statusCode:
example: 401
type: integer
title: Unsuccessful cases API response
type: object
Cases_actions:
enum:
- add
Expand Down Expand Up @@ -101947,7 +101935,6 @@ components:
title: Case response properties for updated_by
type: object
Cases_case_severity:
default: low
description: The severity of the case.
enum:
- critical
Expand Down Expand Up @@ -102658,6 +102645,18 @@ components:
enum:
- user
type: string
Cases_response_4xx:
properties:
error:
example: Unauthorized
type: string
message:
type: string
statusCode:
example: 401
type: integer
title: Unsuccessful cases API response
type: object
Cases_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.
Expand Down
1 change: 1 addition & 0 deletions src/dev/precommit_hook/exceptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"@elastic/kibana-cases": {
"x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.json": "'bundled-types.json' should be snake_case",
"x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.schema.yaml": "'bundled-types.schema.yaml' should be snake_case",
"x-pack/platform/plugins/shared/cases/docs/openapi/bundled-types.gen.ts": "'bundled-types.gen.ts' should be snake_case",
"x-pack/platform/plugins/shared/cases/docs/openapi/components/parameters/defaultSearchOperator.yaml": "'defaultSearchOperator.yaml' should be snake_case",
"x-pack/platform/plugins/shared/cases/docs/openapi/components/parameters/includeComments.yaml": "'includeComments.yaml' should be snake_case",
"x-pack/platform/plugins/shared/cases/docs/openapi/components/parameters/searchFields.yaml": "'searchFields.yaml' should be snake_case",
Expand Down
Loading
Loading