-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.15] [Automatic Import] Prepare to support more connectors (#191278) (
#191525) # Backport This will backport the following commits from `main` to `8.15`: - [[Automatic Import] Prepare to support more connectors (#191278)](#191278) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marius Iversen","email":"marius.iversen@elastic.co"},"sourceCommit":{"committedDate":"2024-08-26T17:29:30Z","message":"[Automatic Import] Prepare to support more connectors (#191278)\n\nThis PR does not add any functionality, it adds interfaces to the\nexpected parameters from get*Graph and its graph nodes.\nThis is so it will be much easier extend this later when we might need\nto add/switch types over a whole graph like we would have needed when\nadding more connectors.\n\nThe PR touches a lot of files, but does not add/remove/change any\nfunctionality at all, and the current expected function arguments are\nthe same, just the format is a bit different to better align with how\nother plugins are doing it.\n\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios.","sha":"791f638823820e8c8cc5af31e56a4f0875356dc9","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["enhancement","release_note:skip","backport:prev-minor","v8.16.0","Team:Security-Scalability","v8.15.1"],"title":"[Automatic Import] Prepare to support more connectors","number":191278,"url":"https://github.com/elastic/kibana/pull/191278","mergeCommit":{"message":"[Automatic Import] Prepare to support more connectors (#191278)\n\nThis PR does not add any functionality, it adds interfaces to the\nexpected parameters from get*Graph and its graph nodes.\nThis is so it will be much easier extend this later when we might need\nto add/switch types over a whole graph like we would have needed when\nadding more connectors.\n\nThe PR touches a lot of files, but does not add/remove/change any\nfunctionality at all, and the current expected function arguments are\nthe same, just the format is a bit different to better align with how\nother plugins are doing it.\n\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios.","sha":"791f638823820e8c8cc5af31e56a4f0875356dc9"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191278","number":191278,"mergeCommit":{"message":"[Automatic Import] Prepare to support more connectors (#191278)\n\nThis PR does not add any functionality, it adds interfaces to the\nexpected parameters from get*Graph and its graph nodes.\nThis is so it will be much easier extend this later when we might need\nto add/switch types over a whole graph like we would have needed when\nadding more connectors.\n\nThe PR touches a lot of files, but does not add/remove/change any\nfunctionality at all, and the current expected function arguments are\nthe same, just the format is a bit different to better align with how\nother plugins are doing it.\n\n\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios.","sha":"791f638823820e8c8cc5af31e56a4f0875356dc9"}},{"branch":"8.15","label":"v8.15.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Marius Iversen <marius.iversen@elastic.co>
- Loading branch information
1 parent
98eb41c
commit 8c908bc
Showing
41 changed files
with
307 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
x-pack/plugins/integration_assistant/server/graphs/categorization/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { IScopedClusterClient } from '@kbn/core-elasticsearch-server'; | ||
import type { CategorizationState, ChatModels } from '../../types'; | ||
|
||
export interface CategorizationBaseNodeParams { | ||
state: CategorizationState; | ||
} | ||
|
||
export interface CategorizationNodeParams extends CategorizationBaseNodeParams { | ||
model: ChatModels; | ||
} | ||
|
||
export interface CategorizationGraphParams { | ||
model: ChatModels; | ||
client: IScopedClusterClient; | ||
} |
Oops, something went wrong.