Skip to content

Commit

Permalink
[8.x] [Fleet] use @kbn/config-schema in Fleet API (Part 1) (#192883) (#…
Browse files Browse the repository at this point in the history
…193296)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] use @kbn/config-schema in Fleet API (Part 1)
(#192883)](#192883)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-18T13:13:21Z","message":"[Fleet]
use @kbn/config-schema in Fleet API (Part 1) (#192883)\n\n##
Summary\r\n\r\nRelates
https://github.com/elastic/kibana/issues/184685\r\n\r\nReadd
#192447 with fixes and tests\r\nto
validate that the response schemas are correct.\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"406f07386ca6b35f375e8f22e682e44c101b1182","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Fleet]
use @kbn/config-schema in Fleet API (Part
1)","number":192883,"url":"https://github.com/elastic/kibana/pull/192883","mergeCommit":{"message":"[Fleet]
use @kbn/config-schema in Fleet API (Part 1) (#192883)\n\n##
Summary\r\n\r\nRelates
https://github.com/elastic/kibana/issues/184685\r\n\r\nReadd
#192447 with fixes and tests\r\nto
validate that the response schemas are correct.\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"406f07386ca6b35f375e8f22e682e44c101b1182"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192883","number":192883,"mergeCommit":{"message":"[Fleet]
use @kbn/config-schema in Fleet API (Part 1) (#192883)\n\n##
Summary\r\n\r\nRelates
https://github.com/elastic/kibana/issues/184685\r\n\r\nReadd
#192447 with fixes and tests\r\nto
validate that the response schemas are correct.\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"406f07386ca6b35f375e8f22e682e44c101b1182"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Julia Bardi <[email protected]>
  • Loading branch information
kibanamachine and juliaElastic authored Sep 18, 2024
1 parent 5fec6cb commit 9672d81
Show file tree
Hide file tree
Showing 25 changed files with 1,596 additions and 234 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/common/types/models/agent_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface FullAgentPolicyInputStream {
id: string;
data_stream: {
dataset: string;
type: string;
type?: string;
};
[key: string]: any;
}
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/fleet/common/types/models/package_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export interface NewPackagePolicy {
privileges?: {
cluster?: string[];
};
[key: string]: any;
};
overrides?: { inputs?: { [key: string]: any } } | null;
}
Expand Down
Loading

0 comments on commit 9672d81

Please sign in to comment.