Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Assistant] Fix Knowledge Base API #211367

Merged
merged 55 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fddf4fa
Fix KB API
patrykkopycinski Feb 16, 2025
28f34a9
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 16, 2025
07ba62b
fix checks
patrykkopycinski Feb 16, 2025
1a9bfc3
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 16, 2025
40794c9
fix tests
patrykkopycinski Feb 17, 2025
dcfb14c
fix
patrykkopycinski Feb 17, 2025
3c349de
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine Feb 17, 2025
236e9e7
fix
patrykkopycinski Feb 17, 2025
2d1b047
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Feb 17, 2025
1d622ce
register missing routes
patrykkopycinski Feb 17, 2025
61a49f5
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine Feb 17, 2025
1e74d9f
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 17, 2025
fd67c92
fix types
patrykkopycinski Feb 17, 2025
2fd684c
Merge branch 'main' into fix/assistant-kb-api
patrykkopycinski Feb 17, 2025
ceb153a
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 17, 2025
f117042
fix tests
patrykkopycinski Feb 18, 2025
a7fc207
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 18, 2025
373505e
fix linting
patrykkopycinski Feb 18, 2025
4dd888b
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 18, 2025
a3df11e
handle change of sharing type
patrykkopycinski Feb 19, 2025
569b9c8
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Feb 19, 2025
2f98742
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 19, 2025
97f2f46
types
patrykkopycinski Feb 19, 2025
4e38c2c
types
patrykkopycinski Feb 19, 2025
2992263
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Feb 19, 2025
764a724
Merge branch 'main' into fix/assistant-kb-api
patrykkopycinski Feb 20, 2025
b8ea2b2
add API integration tests
patrykkopycinski Feb 21, 2025
78bd7d0
[CI] Auto-commit changed files from 'yarn openapi:bundle'
kibanamachine Feb 21, 2025
1623acb
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Feb 21, 2025
2711dcd
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Feb 21, 2025
236c2bd
fix
patrykkopycinski Feb 21, 2025
00dcf79
Merge branch 'main' into fix/assistant-kb-api
patrykkopycinski Feb 24, 2025
6836fc2
add global key to KB Entry API schema
patrykkopycinski Feb 24, 2025
417a7af
[CI] Auto-commit changed files from 'yarn openapi:bundle'
kibanamachine Feb 24, 2025
4a88e6a
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine Feb 24, 2025
3b689f3
cleanup
patrykkopycinski Feb 24, 2025
b062054
Update utils.ts
patrykkopycinski Feb 25, 2025
8cb3617
[kbn-grid-layout] Add ability to create, edit, and delete rows (#209193)
Heenawter Feb 24, 2025
a851c7d
[Security Solution] Adds prebuilt rule customization cypress tests (#…
dplumlee Feb 24, 2025
9538b9f
Siem Migrations - Fix rules upload API Error Test. (#212290)
logeekal Feb 24, 2025
ca20580
[DataForge] Align events to the nearist interval (#211951)
simianhacker Feb 24, 2025
b8f0c99
tests forwarding systemMessage to the LLM (#212027)
arturoliduena Feb 24, 2025
9ef0d52
[build] Create aarch64 ubi image (#212156)
jbudz Feb 24, 2025
79e63e1
[Security Solution] Adds prebuilt rule import/export cypress tests (#…
dplumlee Feb 24, 2025
28cd338
skip failing test suite (#211959)
kibanamachine Feb 24, 2025
b50ec4e
[Search] test(search-classic-nav): improve errors & unskip (#212303)
TattdCodeMonkey Feb 24, 2025
0b62924
[Security Solution] Adds normalization for filter `meta` field diff (…
dplumlee Feb 25, 2025
4f17adc
`xpack.security.loginAssistanceMessage` img centering and resize (#21…
elena-shostak Feb 25, 2025
3e4be2f
[ES|QL] Uses async ui action for the triggers (#212008)
stratoula Feb 25, 2025
0b35623
[api-docs] 2025-02-25 Daily api_docs build (#212326)
kibanamachine Feb 25, 2025
97593f4
[Discover][APM] Custom overview tab for data_stream.type: "traces" in…
iblancof Feb 25, 2025
854530e
update tests
patrykkopycinski Feb 25, 2025
2e60771
Merge branch 'main' into fix/assistant-kb-api
patrykkopycinski Feb 25, 2025
cfddb12
update tests
patrykkopycinski Feb 25, 2025
52bb60e
fix
patrykkopycinski Feb 25, 2025
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
37 changes: 34 additions & 3 deletions oas_docs/output/kibana.serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38642,7 +38642,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseEntryUpdateProps'
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseEntryUpdateRouteProps'
required: true
responses:
'200':
Expand Down Expand Up @@ -44945,6 +44945,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -44959,13 +44962,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/Security_AI_Assistant_API_ResponseFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_DocumentEntryResponseFields'
Security_AI_Assistant_API_DocumentEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -44993,8 +45000,7 @@ components:
type: object
properties:
kbResource:
description: Knowledge Base resource name for grouping entries, e.g. 'esql', 'lens-docs', etc
type: string
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseResource'
source:
description: Source document name or filepath
type: string
Expand All @@ -45019,6 +45025,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/Security_AI_Assistant_API_NonEmptyString'
name:
Expand Down Expand Up @@ -45099,6 +45108,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -45113,13 +45125,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/Security_AI_Assistant_API_ResponseFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryResponseFields'
Security_AI_Assistant_API_IndexEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -45179,6 +45195,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/Security_AI_Assistant_API_NonEmptyString'
name:
Expand Down Expand Up @@ -45358,6 +45377,18 @@ components:
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryUpdateFields'
discriminator:
propertyName: type
Security_AI_Assistant_API_KnowledgeBaseEntryUpdateRouteProps:
anyOf:
- $ref: '#/components/schemas/Security_AI_Assistant_API_DocumentEntryCreateFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryCreateFields'
discriminator:
propertyName: type
Security_AI_Assistant_API_KnowledgeBaseResource:
description: Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc
enum:
- security_labs
- user
type: string
Security_AI_Assistant_API_KnowledgeBaseResponse:
description: AI assistant KnowledgeBase.
type: object
Expand Down
37 changes: 34 additions & 3 deletions oas_docs/output/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41187,7 +41187,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseEntryUpdateProps'
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseEntryUpdateRouteProps'
required: true
responses:
'200':
Expand Down Expand Up @@ -51522,6 +51522,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -51536,13 +51539,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/Security_AI_Assistant_API_ResponseFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_DocumentEntryResponseFields'
Security_AI_Assistant_API_DocumentEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -51570,8 +51577,7 @@ components:
type: object
properties:
kbResource:
description: Knowledge Base resource name for grouping entries, e.g. 'esql', 'lens-docs', etc
type: string
$ref: '#/components/schemas/Security_AI_Assistant_API_KnowledgeBaseResource'
source:
description: Source document name or filepath
type: string
Expand All @@ -51596,6 +51602,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/Security_AI_Assistant_API_NonEmptyString'
name:
Expand Down Expand Up @@ -51676,6 +51685,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -51690,13 +51702,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/Security_AI_Assistant_API_ResponseFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryResponseFields'
Security_AI_Assistant_API_IndexEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -51756,6 +51772,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/Security_AI_Assistant_API_NonEmptyString'
name:
Expand Down Expand Up @@ -51935,6 +51954,18 @@ components:
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryUpdateFields'
discriminator:
propertyName: type
Security_AI_Assistant_API_KnowledgeBaseEntryUpdateRouteProps:
anyOf:
- $ref: '#/components/schemas/Security_AI_Assistant_API_DocumentEntryCreateFields'
- $ref: '#/components/schemas/Security_AI_Assistant_API_IndexEntryCreateFields'
discriminator:
propertyName: type
Security_AI_Assistant_API_KnowledgeBaseResource:
description: Knowledge Base resource name for grouping entries, e.g. 'security_labs', 'user', etc
enum:
- security_labs
- user
type: string
Security_AI_Assistant_API_KnowledgeBaseResponse:
description: AI assistant KnowledgeBase.
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/KnowledgeBaseEntryUpdateProps'
$ref: '#/components/schemas/KnowledgeBaseEntryUpdateRouteProps'
required: true
responses:
'200':
Expand Down Expand Up @@ -1301,6 +1301,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -1317,13 +1320,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/ResponseFields'
- $ref: '#/components/schemas/DocumentEntryResponseFields'
DocumentEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -1353,10 +1360,7 @@ components:
type: object
properties:
kbResource:
description: >-
Knowledge Base resource name for grouping entries, e.g. 'esql',
'lens-docs', etc
type: string
$ref: '#/components/schemas/KnowledgeBaseResource'
source:
description: Source document name or filepath
type: string
Expand All @@ -1381,6 +1385,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/NonEmptyString'
name:
Expand Down Expand Up @@ -1463,6 +1470,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand All @@ -1479,13 +1489,17 @@ components:
required:
- name
- namespace
- global
- users
- $ref: '#/components/schemas/ResponseFields'
- $ref: '#/components/schemas/IndexEntryResponseFields'
IndexEntryCreateFields:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
name:
description: Name of the Knowledge Base Entry
type: string
Expand Down Expand Up @@ -1553,6 +1567,9 @@ components:
allOf:
- type: object
properties:
global:
description: Whether this Knowledge Base Entry is global, defaults to false
type: boolean
id:
$ref: '#/components/schemas/NonEmptyString'
name:
Expand Down Expand Up @@ -1736,6 +1753,20 @@ components:
- $ref: '#/components/schemas/IndexEntryUpdateFields'
discriminator:
propertyName: type
KnowledgeBaseEntryUpdateRouteProps:
anyOf:
- $ref: '#/components/schemas/DocumentEntryCreateFields'
- $ref: '#/components/schemas/IndexEntryCreateFields'
discriminator:
propertyName: type
KnowledgeBaseResource:
description: >-
Knowledge Base resource name for grouping entries, e.g. 'security_labs',
'user', etc
enum:
- security_labs
- user
type: string
KnowledgeBaseResponse:
description: AI assistant KnowledgeBase.
type: object
Expand Down
Loading