Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
14f3dca
Added missing examples, descriptions, summaries, etc for OAS
yctercero Apr 22, 2026
07b6e97
undoing temp changes made
yctercero Apr 22, 2026
0949fce
Merge branch 'main' of github.com:elastic/kibana into specs
yctercero Apr 22, 2026
a51a353
undoing temp changes
yctercero Apr 22, 2026
663da07
Merge branch 'main' into specs
yctercero Apr 22, 2026
f6410a0
Merge branch 'main' into specs
yctercero Apr 22, 2026
4738539
ran generate for lists, detections
yctercero Apr 22, 2026
f78fce3
Merge branch 'specs' of github.com:yctercero/kibana into specs
yctercero Apr 22, 2026
8aa6471
ran generate for lists, detections
yctercero Apr 22, 2026
075111e
did not want to introduce any schema changes
yctercero Apr 22, 2026
3953a14
Changes from yarn openapi:generate
kibanamachine Apr 22, 2026
2ba2c04
Changes from make api-docs
kibanamachine Apr 22, 2026
ab08d29
Changes from capture_oas_snapshot.sh
kibanamachine Apr 22, 2026
6ab5217
Merge branch 'main' into specs
yctercero Apr 23, 2026
445fd06
Changes from capture_oas_snapshot.sh
kibanamachine Apr 23, 2026
b5b6384
Merge branch 'main' into specs
yctercero Apr 23, 2026
dbbcdf7
Changes from capture_oas_snapshot.sh
kibanamachine Apr 23, 2026
bb11922
applying PR feedback
yctercero Apr 24, 2026
f847554
Merge branch 'specs' of github.com:yctercero/kibana into specs
yctercero Apr 24, 2026
54adc33
Merge branch 'main' into specs
yctercero Apr 24, 2026
faf8360
Changes from make api-docs
kibanamachine Apr 24, 2026
7c53ffa
Merge branch 'main' into specs
yctercero Apr 24, 2026
e4a9c0c
Merge branch 'main' into specs
yctercero Apr 24, 2026
e525ebd
Merge branch 'main' into specs
yctercero Apr 24, 2026
d899770
Changes from capture_oas_snapshot.sh
kibanamachine Apr 24, 2026
f844c2a
Merge branch 'main' into specs
yctercero Apr 24, 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
559 changes: 500 additions & 59 deletions oas_docs/output/kibana.serverless.yaml

Large diffs are not rendered by default.

774 changes: 692 additions & 82 deletions oas_docs/output/kibana.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"./oas_docs/output/kibana.yaml": 554,
"./oas_docs/output/kibana.serverless.yaml": 519
"./oas_docs/output/kibana.yaml": 462,
"./oas_docs/output/kibana.serverless.yaml": 455
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ paths:
- name
- description
- type
examples:
createDetection:
value:
list_id: simple_list
type: detection
name: Sample Detection Exception List
description: This is a sample detection type exception list.
namespace_type: single
tags: [malware]
os_types: [linux]
responses:
200:
description: Successful response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ paths:
- $ref: '#/components/schemas/CreateExceptionListItemBlocklistWindows'
- $ref: '#/components/schemas/CreateExceptionListItemBlocklistLinux'
- $ref: '#/components/schemas/CreateExceptionListItemBlocklistMac'
examples:
simpleItem:
value:
list_id: simple_list
item_id: simple_list_item
name: Sample Exception List Item
type: simple
description: This is a sample detection type exception item.
namespace_type: single
entries:
- type: exists
field: actingProcess.file.signer
operator: excluded
os_types: [linux]
tags: [malware]
responses:
200:
description: Successful response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@ paths:
namespace_type: single
os_types: [linux]
tags: [malware]
examples:
addItems:
value:
items:
- item_id: simple_list_item
list_id: simple_list
type: simple
name: Sample Exception List Item
description: This is a sample detection type exception item.
entries:
- type: exists
field: actingProcess.file.signer
operator: excluded
- type: match_any
field: host.name
value: [saturn, jupiter]
operator: included
namespace_type: single
os_types: [linux]
tags: [malware]
responses:
200:
description: Successful response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export const DeleteExceptionListRequestQuery = lazySchema(() =>
* Human readable exception list string identifier, e.g. `trusted-linux-processes`. Either `id` or `list_id` must be specified.
*/
list_id: ExceptionListHumanId.optional(),
/**
* `single` deletes the list in the current Kibana space; `agnostic` deletes a global list. Must match the
list you are removing when using `list_id` or `id`.

*/
namespace_type: ExceptionNamespaceType.optional().default('single'),
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ paths:
- name: namespace_type
in: query
required: false
description: |
`single` deletes the list in the current Kibana space; `agnostic` deletes a global list. Must match the
list you are removing when using `list_id` or `id`.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
default: single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export const DeleteExceptionListItemRequestQuery = lazySchema(() =>
* Human readable exception item string identifier, e.g. `trusted-linux-processes`. Either `id` or `item_id` must be specified
*/
item_id: ExceptionListItemHumanId.optional(),
/**
* `single` deletes the item in the current Kibana space; `agnostic` deletes an item in a space-agnostic list. Must match the list that owns the item.

*/
namespace_type: ExceptionNamespaceType.optional().default('single'),
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ paths:
- name: namespace_type
in: query
required: false
description: |
`single` deletes the item in the current Kibana space; `agnostic` deletes an item in a space-agnostic list. Must match the list that owns the item.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
default: single
Expand Down Expand Up @@ -76,10 +78,12 @@ paths:
oneOf:
- $ref: '../../../../../../../src/platform/packages/shared/kbn-openapi-common/schemas/error_responses.schema.yaml#/components/schemas/PlatformErrorResponse'
- $ref: '../../../../../../../src/platform/packages/shared/kbn-openapi-common/schemas/error_responses.schema.yaml#/components/schemas/SiemErrorResponse'
example:
statusCode: 400
error: Bad Request
message: "[request query]: namespace_type.0: Invalid enum value. Expected 'agnostic' | 'single', received 'blob'"
examples:
badRequest:
value:
statusCode: 400
error: Bad Request
message: "[request query]: namespace_type.0: Invalid enum value. Expected 'agnostic' | 'single', received 'blob'"
401:
description: Unsuccessful authentication response
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ import {

export const DuplicateExceptionListRequestQuery = lazySchema(() =>
z.object({
/**
* The `list_id` of the existing exception list to copy (source list).
*/
list_id: ExceptionListHumanId,
/**
* Scope in which the source list is defined (`single` = current space, `agnostic` = all spaces).
*/
namespace_type: ExceptionNamespaceType,
/**
* Determines whether to include expired exceptions in the duplicated list. Expiration date defined by `expire_time`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ paths:
- name: list_id
in: query
required: true
description: The `list_id` of the existing exception list to copy (source list).
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionListHumanId'
- name: namespace_type
in: query
required: true
description: Scope in which the source list is defined (`single` = current space, `agnostic` = all spaces).
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
examples:
Expand Down Expand Up @@ -108,14 +110,19 @@ paths:
examples:
notFound:
value:
message": 'exception list id: "foo" does not exist'
status_code": 404
message: 'exception list id: "foo" does not exist'
status_code: 404
405:
description: Exception list to duplicate not found response
content:
application/json:
schema:
$ref: '../../../../../../../src/platform/packages/shared/kbn-openapi-common/schemas/error_responses.schema.yaml#/components/schemas/SiemErrorResponse'
examples:
notAllowed:
value:
message: 'Cannot duplicate: list is immutable or the operation is not allowed in this state'
status_code: 405
500:
description: Internal server error response
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@ import {

export const ExportExceptionListRequestQuery = lazySchema(() =>
z.object({
/**
* Exception list's internal `id` (UUID) returned on create; use with `list_id` and `namespace_type` for an unambiguous target.
*/
id: ExceptionListId,
/**
* Human-readable `list_id` of the exception list to export, as shown in the UI and API responses.
*/
list_id: ExceptionListHumanId,
/**
* `single` exports a list in the current Kibana space; `agnostic` exports a global (space-agnostic) list.

*/
namespace_type: ExceptionNamespaceType,
/**
* Determines whether to include expired exceptions in the exported list. Expiration date defined by `expire_time`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@ paths:
- name: id
in: query
required: true
description: Exception list's internal `id` (UUID) returned on create; use with `list_id` and `namespace_type` for an unambiguous target.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionListId'
- name: list_id
in: query
required: true
description: Human-readable `list_id` of the exception list to export, as shown in the UI and API responses.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionListHumanId'
- name: namespace_type
in: query
required: true
description: |
`single` exports a list in the current Kibana space; `agnostic` exports a global (space-agnostic) list.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ or available in all spaces (`agnostic` or `single`)

*/
namespace_type: ArrayFromString(ExceptionNamespaceType).optional().default(['single']),
/**
* Free-text search term applied to exception list item fields (for example a hostname or file path fragment).

*/
search: z.string().optional(),
/**
* The page number to return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ paths:
- name: search
in: query
required: false
description: |
Free-text search term applied to exception list item fields (for example a hostname or file path fragment).
schema:
type: string
example: host.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ paths:
example: |
{"_version":"WzExNDU5LDFd","created_at":"2025-01-09T16:18:17.757Z","created_by":"elastic","description":"This is a sample detection type exception","id":"c86c2da0-2ab6-4343-b81c-216ef27e8d75","immutable":false,"list_id":"simple_list","name":"Sample Detection Exception List","namespace_type":"single","os_types":[],"tags":["user added string for a tag","malware"],"tie_breaker_id":"cf4a7b92-732d-47f0-a0d5-49a35a1736bf","type":"detection","updated_at":"2025-01-09T16:18:17.757Z","updated_by":"elastic","version":1}
{"_version":"WzExNDYxLDFd","comments":[],"created_at":"2025-01-09T16:18:42.308Z","created_by":"elastic","description":"This is a sample endpoint type exception","entries":[{"type":"exists","field":"actingProcess.file.signer","operator":"excluded"},{"type":"match_any","field":"host.name","value":["some host","another host"],"operator":"included"}],"id":"f37597ce-eaa7-4b64-9100-4301118f6806","item_id":"simple_list_item","list_id":"simple_list","name":"Sample Endpoint Exception List","namespace_type":"single","os_types":["linux"],"tags":["user added string for a tag","malware"],"tie_breaker_id":"4ca3ef3e-9721-42c0-8107-cf47e094d40f","type":"simple","updated_at":"2025-01-09T16:18:42.308Z","updated_by":"elastic"}
examples:
ndjsonUpload:
value:
file: exception_lists.ndjson
parameters:
- name: overwrite
in: query
Expand Down Expand Up @@ -115,6 +119,12 @@ paths:
oneOf:
- $ref: '../../../../../../../src/platform/packages/shared/kbn-openapi-common/schemas/error_responses.schema.yaml#/components/schemas/PlatformErrorResponse'
- $ref: '../../../../../../../src/platform/packages/shared/kbn-openapi-common/schemas/error_responses.schema.yaml#/components/schemas/SiemErrorResponse'
examples:
badRequest:
value:
statusCode: 400
error: Bad Request
message: "Multipart part `file` is required and must contain a valid .ndjson exception list export"
401:
description: Unsuccessful authentication response
content:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export const ReadExceptionListRequestQuery = lazySchema(() =>
* Human readable exception list string identifier, e.g. `trusted-linux-processes`. Either `id` or `list_id` must be specified.
*/
list_id: ExceptionListHumanId.optional(),
/**
* When `single`, the list is resolved in the current Kibana space. When `agnostic`, the list is a global
(space-agnostic) container. Required for looking up the correct list when `list_id` is not unique.

*/
namespace_type: ExceptionNamespaceType.optional().default('single'),
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ paths:
- name: namespace_type
in: query
required: false
description: |
When `single`, the list is resolved in the current Kibana space. When `agnostic`, the list is a global
(space-agnostic) container. Required for looking up the correct list when `list_id` is not unique.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
default: single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export const ReadExceptionListItemRequestQuery = lazySchema(() =>
* Human readable exception item string identifier, e.g. `trusted-linux-processes`. Either `id` or `item_id` must be specified.
*/
item_id: ExceptionListItemHumanId.optional(),
/**
* `single` fetches the item in the current space; `agnostic` fetches a global (space-agnostic) item. Must
match how the list was created.

*/
namespace_type: ExceptionNamespaceType.optional().default('single'),
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ paths:
- name: namespace_type
in: query
required: false
description: |
`single` fetches the item in the current space; `agnostic` fetches a global (space-agnostic) item. Must
match how the list was created.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
default: single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export const ReadExceptionListSummaryRequestQuery = lazySchema(() =>
* Exception list's human readable identifier.
*/
list_id: ExceptionListHumanId.optional(),
/**
* `single` returns summary for a list in the current space; `agnostic` for a space-agnostic list. Must
line up with `id` / `list_id` used to look up the list.

*/
namespace_type: ExceptionNamespaceType.optional().default('single'),
/**
* Search filter clause
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ paths:
- name: namespace_type
in: query
required: false
description: |
`single` returns summary for a list in the current space; `agnostic` for a space-agnostic list. Must
line up with `id` / `list_id` used to look up the list.
schema:
$ref: '../model/exception_list_common.schema.yaml#/components/schemas/ExceptionNamespaceType'
default: single
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ paths:
os_types: [linux]
description: Different description
name: Updated exception list name
examples:
fullReplace:
value:
list_id: simple_list
tags: [draft, malware]
type: detection
os_types: [linux]
description: Different description
name: Updated exception list name
responses:
200:
description: Successful response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ paths:
- $ref: '#/components/schemas/UpdateExceptionListItemBlocklistWindows'
- $ref: '#/components/schemas/UpdateExceptionListItemBlocklistLinux'
- $ref: '#/components/schemas/UpdateExceptionListItemBlocklistMac'
examples:
updateItem:
value:
id: 71a9f4b2-c85c-49b4-866f-c71eb9e67da2
name: Updated name
type: simple
description: Updated description
namespace_type: single
responses:
200:
description: Successful response
Expand Down
Loading
Loading