diff --git a/api_docs/fleet.json b/api_docs/fleet.json index 556645b7694cf..14884efd970b2 100644 --- a/api_docs/fleet.json +++ b/api_docs/fleet.json @@ -17,8 +17,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/services/pkg_key_from_package_info.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/services/pkg_key_from_package_info.ts#L9" + "lineNumber": 9 } } ], @@ -29,8 +28,7 @@ "label": "pkgKeyFromPackageInfo", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/services/pkg_key_from_package_info.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/services/pkg_key_from_package_info.ts#L8" + "lineNumber": 8 }, "tags": [], "returnComment": [], @@ -39,136 +37,82 @@ ], "interfaces": [ { - "id": "def-public.NewPackagePolicy", + "id": "def-public.AgentDetailsReassignPolicyAction", "type": "Interface", - "label": "NewPackagePolicy", - "description": [], + "label": "AgentDetailsReassignPolicyAction", + "description": [ + "\nSupported routing state for the agent policy details page routes with deploy agents action" + ], "tags": [], "children": [ { "tags": [], - "id": "def-public.NewPackagePolicy.name", - "type": "string", - "label": "name", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L50" - } - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.description", - "type": "string", - "label": "description", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 51, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L51" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.namespace", - "type": "string", - "label": "namespace", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 52, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L52" - } - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.enabled", - "type": "boolean", - "label": "enabled", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L53" - } - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.policy_id", - "type": "string", - "label": "policy_id", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L54" - } - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.output_id", - "type": "string", - "label": "output_id", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L55" - } - }, - { - "tags": [], - "id": "def-public.NewPackagePolicy.package", + "id": "def-public.AgentDetailsReassignPolicyAction.onDoneNavigateTo", "type": "Object", - "label": "package", - "description": [], + "label": "onDoneNavigateTo", + "description": [ + "On done, navigate to the given app" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L56" + "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", + "lineNumber": 39 }, "signature": [ + "[appId: string, options?: ", { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyPackage", - "text": "PackagePolicyPackage" + "pluginId": "core", + "scope": "public", + "docId": "kibCoreApplicationPluginApi", + "section": "def-public.NavigateToAppOptions", + "text": "NavigateToAppOptions" }, - " | undefined" + " | undefined] | undefined" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", + "lineNumber": 37 + }, + "initialIsOpen": false + }, + { + "id": "def-public.AgentPolicyDetailsDeployAgentAction", + "type": "Interface", + "label": "AgentPolicyDetailsDeployAgentAction", + "description": [ + "\nSupported routing state for the agent policy details page routes with deploy agents action" + ], + "tags": [], + "children": [ { "tags": [], - "id": "def-public.NewPackagePolicy.inputs", - "type": "Array", - "label": "inputs", - "description": [], + "id": "def-public.AgentPolicyDetailsDeployAgentAction.onDoneNavigateTo", + "type": "Object", + "label": "onDoneNavigateTo", + "description": [ + "On done, navigate to the given app" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L57" + "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", + "lineNumber": 31 }, "signature": [ + "[appId: string, options?: ", { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInput", - "text": "NewPackagePolicyInput" + "pluginId": "core", + "scope": "public", + "docId": "kibCoreApplicationPluginApi", + "section": "def-public.NavigateToAppOptions", + "text": "NavigateToAppOptions" }, - "[]" + " | undefined] | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L49" + "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", + "lineNumber": 29 }, "initialIsOpen": false }, @@ -191,8 +135,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L17" + "lineNumber": 17 }, "signature": [ "[appId: string, options?: ", @@ -232,8 +175,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L21" + "lineNumber": 21 }, "signature": [ "[appId: string, options?: ", @@ -257,8 +199,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L23" + "lineNumber": 23 }, "signature": [ "string | undefined" @@ -267,259 +208,288 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L15" + "lineNumber": 15 }, "initialIsOpen": false }, { - "id": "def-public.AgentPolicyDetailsDeployAgentAction", + "id": "def-public.NewPackagePolicy", "type": "Interface", - "label": "AgentPolicyDetailsDeployAgentAction", - "description": [ - "\nSupported routing state for the agent policy details page routes with deploy agents action" - ], + "label": "NewPackagePolicy", + "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-public.AgentPolicyDetailsDeployAgentAction.onDoneNavigateTo", + "id": "def-public.NewPackagePolicy.name", + "type": "string", + "label": "name", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 50 + } + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.description", + "type": "string", + "label": "description", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 51 + }, + "signature": [ + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.namespace", + "type": "string", + "label": "namespace", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 52 + } + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.enabled", + "type": "boolean", + "label": "enabled", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 53 + } + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.policy_id", + "type": "string", + "label": "policy_id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 54 + } + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.output_id", + "type": "string", + "label": "output_id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 55 + } + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.package", "type": "Object", - "label": "onDoneNavigateTo", - "description": [ - "On done, navigate to the given app" - ], + "label": "package", + "description": [], "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L31" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 56 }, "signature": [ - "[appId: string, options?: ", { - "pluginId": "core", - "scope": "public", - "docId": "kibCoreApplicationPluginApi", - "section": "def-public.NavigateToAppOptions", - "text": "NavigateToAppOptions" + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicyPackage", + "text": "PackagePolicyPackage" }, - " | undefined] | undefined" + " | undefined" + ] + }, + { + "tags": [], + "id": "def-public.NewPackagePolicy.inputs", + "type": "Array", + "label": "inputs", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 57 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicyInput", + "text": "NewPackagePolicyInput" + }, + "[]" ] } ], "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L29" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 49 }, "initialIsOpen": false }, { - "id": "def-public.AgentDetailsReassignPolicyAction", + "id": "def-public.PackageCustomExtension", "type": "Interface", - "label": "AgentDetailsReassignPolicyAction", + "label": "PackageCustomExtension", "description": [ - "\nSupported routing state for the agent policy details page routes with deploy agents action" + "Extension point registration contract for Integration details Custom view" ], "tags": [], "children": [ { "tags": [], - "id": "def-public.AgentDetailsReassignPolicyAction.onDoneNavigateTo", - "type": "Object", - "label": "onDoneNavigateTo", - "description": [ - "On done, navigate to the given app" - ], + "id": "def-public.PackageCustomExtension.package", + "type": "string", + "label": "package", + "description": [], "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L39" + "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", + "lineNumber": 95 + } + }, + { + "tags": [], + "id": "def-public.PackageCustomExtension.view", + "type": "string", + "label": "view", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", + "lineNumber": 96 }, "signature": [ - "[appId: string, options?: ", - { - "pluginId": "core", - "scope": "public", - "docId": "kibCoreApplicationPluginApi", - "section": "def-public.NavigateToAppOptions", - "text": "NavigateToAppOptions" - }, - " | undefined] | undefined" + "\"package-detail-custom\"" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L37" - }, - "initialIsOpen": false - }, - { - "id": "def-public.UIExtensionsStorage", - "type": "Interface", - "label": "UIExtensionsStorage", - "description": [ - "Internal storage for registered UI Extension Points" - ], - "tags": [], - "children": [ + }, { - "id": "def-public.UIExtensionsStorage.Unnamed", - "type": "Any", - "label": "Unnamed", "tags": [], + "id": "def-public.PackageCustomExtension.component", + "type": "Function", + "label": "component", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L17" + "lineNumber": 97 }, "signature": [ - "any" + "React.LazyExoticComponent>" ] } ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L16" + "lineNumber": 94 }, "initialIsOpen": false }, { - "id": "def-public.PackagePolicyEditExtensionComponentProps", + "id": "def-public.PackageCustomExtensionComponentProps", "type": "Interface", - "label": "PackagePolicyEditExtensionComponentProps", + "label": "PackageCustomExtensionComponentProps", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-public.PackagePolicyEditExtensionComponentProps.policy", - "type": "Object", - "label": "policy", + "id": "def-public.PackageCustomExtensionComponentProps.pkgkey", + "type": "string", + "label": "pkgkey", "description": [ - "The current integration policy being edited" + "The package key value that should be used used for URLs" ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L28" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - } - ] + "lineNumber": 89 + } }, { "tags": [], - "id": "def-public.PackagePolicyEditExtensionComponentProps.newPolicy", - "type": "Object", - "label": "newPolicy", - "description": [ - "The new (updated) integration policy that will be saved" - ], + "id": "def-public.PackageCustomExtensionComponentProps.packageInfo", + "type": "CompoundType", + "label": "packageInfo", + "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L30" + "lineNumber": 90 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicy", - "text": "NewPackagePolicy" + "section": "def-common.PackageInfo", + "text": "PackageInfo" } ] - }, - { - "tags": [], - "id": "def-public.PackagePolicyEditExtensionComponentProps.onChange", - "type": "Function", - "label": "onChange", - "description": [ - "\nA callback that should be executed anytime a change to the Integration Policy needs to\nbe reported back to the Fleet Policy Edit page.\n\n**NOTE:**\nthis callback will be recreated everytime the policy data changes, thus logic around its\ninvocation should take that into consideration in order to avoid an endless loop." - ], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L39" - }, - "signature": [ - "(opts: { isValid: boolean; updatedPolicy: Partial<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicy", - "text": "NewPackagePolicy" - }, - ">; }) => void" - ] } ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L26" + "lineNumber": 87 }, "initialIsOpen": false }, { - "id": "def-public.PackagePolicyEditExtension", + "id": "def-public.PackagePolicyCreateExtension", "type": "Interface", - "label": "PackagePolicyEditExtension", + "label": "PackagePolicyCreateExtension", "description": [ - "Extension point registration contract for Integration Policy Edit views" + "Extension point registration contract for Integration Policy Create views" ], "tags": [], "children": [ { "tags": [], - "id": "def-public.PackagePolicyEditExtension.package", + "id": "def-public.PackagePolicyCreateExtension.package", "type": "string", "label": "package", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L49" + "lineNumber": 77 } }, { "tags": [], - "id": "def-public.PackagePolicyEditExtension.view", + "id": "def-public.PackagePolicyCreateExtension.view", "type": "string", "label": "view", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L50" + "lineNumber": 78 }, "signature": [ - "\"package-policy-edit\"" + "\"package-policy-create\"" ] }, { "tags": [], - "id": "def-public.PackagePolicyEditExtension.component", + "id": "def-public.PackagePolicyCreateExtension.component", "type": "Function", "label": "component", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 51, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L51" + "lineNumber": 79 }, "signature": [ "React.LazyExoticComponent>" ] @@ -536,8 +506,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L48" + "lineNumber": 76 }, "initialIsOpen": false }, @@ -558,8 +527,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L62" + "lineNumber": 62 }, "signature": [ { @@ -581,8 +549,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L67" + "lineNumber": 67 }, "signature": [ "(opts: { isValid: boolean; updatedPolicy: ", @@ -599,57 +566,53 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L60" + "lineNumber": 60 }, "initialIsOpen": false }, { - "id": "def-public.PackagePolicyCreateExtension", + "id": "def-public.PackagePolicyEditExtension", "type": "Interface", - "label": "PackagePolicyCreateExtension", + "label": "PackagePolicyEditExtension", "description": [ - "Extension point registration contract for Integration Policy Create views" + "Extension point registration contract for Integration Policy Edit views" ], "tags": [], "children": [ { "tags": [], - "id": "def-public.PackagePolicyCreateExtension.package", + "id": "def-public.PackagePolicyEditExtension.package", "type": "string", "label": "package", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 77, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L77" + "lineNumber": 49 } }, { "tags": [], - "id": "def-public.PackagePolicyCreateExtension.view", + "id": "def-public.PackagePolicyEditExtension.view", "type": "string", "label": "view", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 78, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L78" + "lineNumber": 50 }, "signature": [ - "\"package-policy-create\"" + "\"package-policy-edit\"" ] }, { "tags": [], - "id": "def-public.PackagePolicyCreateExtension.component", + "id": "def-public.PackagePolicyEditExtension.component", "type": "Function", "label": "component", "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 79, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L79" + "lineNumber": 51 }, "signature": [ "React.LazyExoticComponent>" ] @@ -666,131 +629,125 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L76" + "lineNumber": 48 }, "initialIsOpen": false }, { - "id": "def-public.PackageCustomExtensionComponentProps", + "id": "def-public.PackagePolicyEditExtensionComponentProps", "type": "Interface", - "label": "PackageCustomExtensionComponentProps", + "label": "PackagePolicyEditExtensionComponentProps", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-public.PackageCustomExtensionComponentProps.pkgkey", - "type": "string", - "label": "pkgkey", + "id": "def-public.PackagePolicyEditExtensionComponentProps.policy", + "type": "Object", + "label": "policy", "description": [ - "The package key value that should be used used for URLs" + "The current integration policy being edited" ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L89" - } - }, - { - "tags": [], - "id": "def-public.PackageCustomExtensionComponentProps.packageInfo", - "type": "CompoundType", - "label": "packageInfo", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L90" + "lineNumber": 28 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" } ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L87" - }, - "initialIsOpen": false - }, - { - "id": "def-public.PackageCustomExtension", - "type": "Interface", - "label": "PackageCustomExtension", - "description": [ - "Extension point registration contract for Integration details Custom view" - ], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-public.PackageCustomExtension.package", - "type": "string", - "label": "package", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L95" - } }, { "tags": [], - "id": "def-public.PackageCustomExtension.view", - "type": "string", - "label": "view", - "description": [], + "id": "def-public.PackagePolicyEditExtensionComponentProps.newPolicy", + "type": "Object", + "label": "newPolicy", + "description": [ + "The new (updated) integration policy that will be saved" + ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 96, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L96" + "lineNumber": 30 }, "signature": [ - "\"package-detail-custom\"" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicy", + "text": "NewPackagePolicy" + } ] }, { "tags": [], - "id": "def-public.PackageCustomExtension.component", + "id": "def-public.PackagePolicyEditExtensionComponentProps.onChange", "type": "Function", - "label": "component", - "description": [], + "label": "onChange", + "description": [ + "\nA callback that should be executed anytime a change to the Integration Policy needs to\nbe reported back to the Fleet Policy Edit page.\n\n**NOTE:**\nthis callback will be recreated everytime the policy data changes, thus logic around its\ninvocation should take that into consideration in order to avoid an endless loop." + ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 97, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L97" + "lineNumber": 39 }, "signature": [ - "React.LazyExoticComponent>" + ">; }) => void" ] } ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L94" + "lineNumber": 26 }, "initialIsOpen": false - } - ], - "enums": [], - "misc": [ + }, + { + "id": "def-public.UIExtensionsStorage", + "type": "Interface", + "label": "UIExtensionsStorage", + "description": [ + "Internal storage for registered UI Extension Points" + ], + "tags": [], + "children": [ + { + "id": "def-public.UIExtensionsStorage.Unnamed", + "type": "Any", + "label": "Unnamed", + "tags": [], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", + "lineNumber": 17 + }, + "signature": [ + "any" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", + "lineNumber": 16 + }, + "initialIsOpen": false + } + ], + "enums": [], + "misc": [ { "id": "def-public.AnyIntraAppRouteState", "type": "Type", @@ -801,8 +758,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/intra_app_route_state.ts#L45" + "lineNumber": 45 }, "signature": [ { @@ -832,43 +788,16 @@ "initialIsOpen": false }, { - "id": "def-public.UIExtensionRegistrationCallback", - "type": "Type", - "label": "UIExtensionRegistrationCallback", - "tags": [], - "description": [ - "Register a Fleet UI extension" - ], - "source": { - "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L13" - }, - "signature": [ - "(extensionPoint: ", - { - "pluginId": "fleet", - "scope": "public", - "docId": "kibFleetPluginApi", - "section": "def-public.UIExtensionPoint", - "text": "UIExtensionPoint" - }, - ") => void" - ], - "initialIsOpen": false - }, - { - "id": "def-public.PackagePolicyEditExtensionComponent", + "id": "def-public.PackageCustomExtensionComponent", "type": "Type", - "label": "PackagePolicyEditExtensionComponent", + "label": "PackageCustomExtensionComponent", "tags": [], "description": [ - "\nUI Component Extension is used on the pages displaying the ability to edit an\nIntegration Policy" + "\nUI Component Extension is used to display a Custom tab (and view) under a given Integration" ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L24" + "lineNumber": 85 }, "signature": [ "React.ComponentClass<", @@ -876,16 +805,16 @@ "pluginId": "fleet", "scope": "public", "docId": "kibFleetPluginApi", - "section": "def-public.PackagePolicyEditExtensionComponentProps", - "text": "PackagePolicyEditExtensionComponentProps" + "section": "def-public.PackageCustomExtensionComponentProps", + "text": "PackageCustomExtensionComponentProps" }, ", any> | React.FunctionComponent<", { "pluginId": "fleet", "scope": "public", "docId": "kibFleetPluginApi", - "section": "def-public.PackagePolicyEditExtensionComponentProps", - "text": "PackagePolicyEditExtensionComponentProps" + "section": "def-public.PackageCustomExtensionComponentProps", + "text": "PackageCustomExtensionComponentProps" }, ">" ], @@ -901,8 +830,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L58" + "lineNumber": 58 }, "signature": [ "React.ComponentClass<", @@ -926,17 +854,16 @@ "initialIsOpen": false }, { - "id": "def-public.PackageCustomExtensionComponent", + "id": "def-public.PackagePolicyEditExtensionComponent", "type": "Type", - "label": "PackageCustomExtensionComponent", + "label": "PackagePolicyEditExtensionComponent", "tags": [], "description": [ - "\nUI Component Extension is used to display a Custom tab (and view) under a given Integration" + "\nUI Component Extension is used on the pages displaying the ability to edit an\nIntegration Policy" ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 85, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L85" + "lineNumber": 24 }, "signature": [ "React.ComponentClass<", @@ -944,16 +871,16 @@ "pluginId": "fleet", "scope": "public", "docId": "kibFleetPluginApi", - "section": "def-public.PackageCustomExtensionComponentProps", - "text": "PackageCustomExtensionComponentProps" + "section": "def-public.PackagePolicyEditExtensionComponentProps", + "text": "PackagePolicyEditExtensionComponentProps" }, ", any> | React.FunctionComponent<", { "pluginId": "fleet", "scope": "public", "docId": "kibFleetPluginApi", - "section": "def-public.PackageCustomExtensionComponentProps", - "text": "PackageCustomExtensionComponentProps" + "section": "def-public.PackagePolicyEditExtensionComponentProps", + "text": "PackagePolicyEditExtensionComponentProps" }, ">" ], @@ -969,8 +896,7 @@ ], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", - "lineNumber": 101, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts#L101" + "lineNumber": 101 }, "signature": [ { @@ -998,6 +924,31 @@ } ], "initialIsOpen": false + }, + { + "id": "def-public.UIExtensionRegistrationCallback", + "type": "Type", + "label": "UIExtensionRegistrationCallback", + "tags": [], + "description": [ + "Register a Fleet UI extension" + ], + "source": { + "path": "x-pack/plugins/fleet/public/applications/fleet/types/ui_extensions.ts", + "lineNumber": 13 + }, + "signature": [ + "(extensionPoint: ", + { + "pluginId": "fleet", + "scope": "public", + "docId": "kibFleetPluginApi", + "section": "def-public.UIExtensionPoint", + "text": "UIExtensionPoint" + }, + ") => void" + ], + "initialIsOpen": false } ], "objects": [ @@ -1017,8 +968,7 @@ "label": "base", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 75, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L75" + "lineNumber": 75 }, "tags": [], "returnComment": [] @@ -1034,8 +984,7 @@ "label": "overview", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L76" + "lineNumber": 76 }, "tags": [], "returnComment": [] @@ -1051,8 +1000,7 @@ "label": "integrations", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 77, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L77" + "lineNumber": 77 }, "tags": [], "returnComment": [] @@ -1068,8 +1016,7 @@ "label": "integrations_all", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 78, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L78" + "lineNumber": 78 }, "tags": [], "returnComment": [] @@ -1085,8 +1032,7 @@ "label": "integrations_installed", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 79, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L79" + "lineNumber": 79 }, "tags": [], "returnComment": [] @@ -1111,8 +1057,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 80, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L80" + "lineNumber": 80 } } ], @@ -1131,8 +1076,7 @@ "label": "integration_details_overview", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 80, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L80" + "lineNumber": 80 }, "tags": [], "returnComment": [] @@ -1157,8 +1101,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 81, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L81" + "lineNumber": 81 } } ], @@ -1177,8 +1120,7 @@ "label": "integration_details_policies", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 81, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L81" + "lineNumber": 81 }, "tags": [], "returnComment": [] @@ -1203,8 +1145,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 82, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L82" + "lineNumber": 82 } } ], @@ -1223,8 +1164,7 @@ "label": "integration_details_settings", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 82, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L82" + "lineNumber": 82 }, "tags": [], "returnComment": [] @@ -1249,8 +1189,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 83, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L83" + "lineNumber": 83 } } ], @@ -1269,8 +1208,7 @@ "label": "integration_details_custom", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 83, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L83" + "lineNumber": 83 }, "tags": [], "returnComment": [] @@ -1295,8 +1233,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L84" + "lineNumber": 84 } } ], @@ -1315,8 +1252,7 @@ "label": "integration_policy_edit", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L84" + "lineNumber": 84 }, "tags": [], "returnComment": [] @@ -1332,8 +1268,7 @@ "label": "policies", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 86, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L86" + "lineNumber": 86 }, "tags": [], "returnComment": [] @@ -1349,8 +1284,7 @@ "label": "policies_list", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L87" + "lineNumber": 87 }, "tags": [], "returnComment": [] @@ -1375,8 +1309,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 88, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L88" + "lineNumber": 88 } } ], @@ -1395,8 +1328,7 @@ "label": "policy_details", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 88, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L88" + "lineNumber": 88 }, "tags": [], "returnComment": [] @@ -1421,8 +1353,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L89" + "lineNumber": 89 } } ], @@ -1441,8 +1372,7 @@ "label": "add_integration_from_policy", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L89" + "lineNumber": 89 }, "tags": [], "returnComment": [] @@ -1467,8 +1397,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L90" + "lineNumber": 90 } } ], @@ -1487,8 +1416,7 @@ "label": "add_integration_to_policy", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L90" + "lineNumber": 90 }, "tags": [], "returnComment": [] @@ -1513,8 +1441,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L91" + "lineNumber": 91 } } ], @@ -1533,8 +1460,7 @@ "label": "edit_integration", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L91" + "lineNumber": 91 }, "tags": [], "returnComment": [] @@ -1550,8 +1476,7 @@ "label": "fleet", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L93" + "lineNumber": 93 }, "tags": [], "returnComment": [] @@ -1576,8 +1501,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L94" + "lineNumber": 94 } } ], @@ -1596,8 +1520,7 @@ "label": "fleet_agent_list", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L94" + "lineNumber": 94 }, "tags": [], "returnComment": [] @@ -1622,8 +1545,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L95" + "lineNumber": 95 } } ], @@ -1642,8 +1564,7 @@ "label": "fleet_agent_details", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L95" + "lineNumber": 95 }, "tags": [], "returnComment": [] @@ -1659,8 +1580,7 @@ "label": "fleet_enrollment_tokens", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 97, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L97" + "lineNumber": 97 }, "tags": [], "returnComment": [] @@ -1676,8 +1596,7 @@ "label": "data_streams", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 98, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L98" + "lineNumber": 98 }, "tags": [], "returnComment": [] @@ -1687,8 +1606,7 @@ "label": "pagePathGetters", "source": { "path": "x-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/applications/fleet/constants/page_paths.ts#L69" + "lineNumber": 69 }, "initialIsOpen": false } @@ -1702,8 +1620,7 @@ "children": [], "source": { "path": "x-pack/plugins/fleet/public/plugin.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/plugin.ts#L50" + "lineNumber": 50 }, "lifecycle": "setup", "initialIsOpen": true @@ -1725,8 +1642,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/plugin.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/plugin.ts#L56" + "lineNumber": 56 }, "signature": [ { @@ -1746,8 +1662,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/public/plugin.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/plugin.ts#L57" + "lineNumber": 57 }, "signature": [ "() => Promise" @@ -1756,15 +1671,39 @@ ], "source": { "path": "x-pack/plugins/fleet/public/plugin.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/public/plugin.ts#L55" + "lineNumber": 55 }, "lifecycle": "start", "initialIsOpen": true } }, "server": { - "classes": [], + "classes": [ + { + "id": "def-server.AgentNotFoundError", + "type": "Class", + "tags": [], + "label": "AgentNotFoundError", + "description": [], + "signature": [ + { + "pluginId": "fleet", + "scope": "server", + "docId": "kibFleetPluginApi", + "section": "def-server.AgentNotFoundError", + "text": "AgentNotFoundError" + }, + " extends ", + "IngestManagerError" + ], + "children": [], + "source": { + "path": "x-pack/plugins/fleet/server/errors/index.ts", + "lineNumber": 34 + }, + "initialIsOpen": false + } + ], "functions": [ { "id": "def-server.getRegistryUrl", @@ -1777,8 +1716,7 @@ "label": "getRegistryUrl", "source": { "path": "x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/epm/registry/registry_url.ts#L33" + "lineNumber": 33 }, "tags": [], "returnComment": [], @@ -1787,42 +1725,52 @@ ], "interfaces": [ { - "id": "def-server.AgentService", + "id": "def-server.AgentPolicyServiceInterface", "type": "Interface", - "label": "AgentService", - "description": [ - "\nA service that provides exported functions that return information about an Agent" - ], + "label": "AgentPolicyServiceInterface", + "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-server.AgentService.getAgent", + "id": "def-server.AgentPolicyServiceInterface.get", "type": "Function", - "label": "getAgent", - "description": [ - "\nGet an Agent by id" - ], + "label": "get", + "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L49" + "lineNumber": 68 }, "signature": [ - "typeof ", + "(soClient: Pick<", { - "pluginId": "fleet", + "pluginId": "core", "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectsClient", + "text": "SavedObjectsClient" + }, + ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, id: string, withPackagePolicies?: boolean) => Promise<", + { + "pluginId": "fleet", + "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-server.getAgent", - "text": "getAgent" - } + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" + }, + " | null>" ] }, { - "id": "def-server.AgentService.authenticateAgentWithAccessToken", + "tags": [], + "id": "def-server.AgentPolicyServiceInterface.list", "type": "Function", - "label": "authenticateAgentWithAccessToken", + "label": "list", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/services/index.ts", + "lineNumber": 69 + }, "signature": [ "(soClient: Pick<", { @@ -1832,58 +1780,143 @@ "section": "def-server.SavedObjectsClient", "text": "SavedObjectsClient" }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, esClient: ", + ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, options: Readonly<{ page?: number | undefined; perPage?: number | undefined; sortField?: string | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; kuery?: any; showUpgradeable?: boolean | undefined; } & {}> & { withPackagePolicies?: boolean | undefined; }) => Promise<{ items: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" + }, + "[]; total: number; page: number; perPage: number; }>" + ] + }, + { + "tags": [], + "id": "def-server.AgentPolicyServiceInterface.getDefaultAgentPolicyId", + "type": "Function", + "label": "getDefaultAgentPolicyId", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/services/index.ts", + "lineNumber": 70 + }, + "signature": [ + "(soClient: Pick<", { "pluginId": "core", "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.ElasticsearchClient", - "text": "ElasticsearchClient" + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectsClient", + "text": "SavedObjectsClient" }, - ", request: ", + ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">) => Promise" + ] + }, + { + "tags": [], + "id": "def-server.AgentPolicyServiceInterface.getFullAgentPolicy", + "type": "Function", + "label": "getFullAgentPolicy", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/services/index.ts", + "lineNumber": 71 + }, + "signature": [ + "(soClient: Pick<", { "pluginId": "core", "scope": "server", - "docId": "kibCoreHttpPluginApi", - "section": "def-server.KibanaRequest", - "text": "KibanaRequest" + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.SavedObjectsClient", + "text": "SavedObjectsClient" }, - ") => Promise<", + ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, id: string, options?: { standalone: boolean; } | undefined) => Promise<", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" + "section": "def-common.FullAgentPolicy", + "text": "FullAgentPolicy" }, - ">" - ], + " | null>" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/server/services/index.ts", + "lineNumber": 67 + }, + "initialIsOpen": false + }, + { + "id": "def-server.AgentService", + "type": "Interface", + "label": "AgentService", + "description": [ + "\nA service that provides exported functions that return information about an Agent" + ], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-server.AgentService.getAgent", + "type": "Function", + "label": "getAgent", "description": [ - "\nAuthenticate an agent with access toekn" + "\nGet an Agent by id" ], - "children": [ - { - "type": "Object", - "label": "soClient", - "isRequired": true, - "signature": [ - "Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L54" - } + "source": { + "path": "x-pack/plugins/fleet/server/services/index.ts", + "lineNumber": 49 + }, + "signature": [ + "typeof ", + { + "pluginId": "fleet", + "scope": "server", + "docId": "kibFleetPluginApi", + "section": "def-server.getAgent", + "text": "getAgent" + } + ] + }, + { + "id": "def-server.AgentService.authenticateAgentWithAccessToken", + "type": "Function", + "label": "authenticateAgentWithAccessToken", + "signature": [ + "(esClient: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.ElasticsearchClient", + "text": "ElasticsearchClient" + }, + ", request: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + ") => Promise<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Agent", + "text": "Agent" }, + ">" + ], + "description": [ + "\nAuthenticate an agent with access toekn" + ], + "children": [ { "type": "CompoundType", "label": "esClient", @@ -1900,8 +1933,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L55" + "lineNumber": 54 } }, { @@ -1921,8 +1953,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L56" + "lineNumber": 55 } } ], @@ -1930,8 +1961,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L53" + "lineNumber": 53 } }, { @@ -1939,15 +1969,7 @@ "type": "Function", "label": "getAgentStatusById", "signature": [ - "(soClient: Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, esClient: ", + "(esClient: ", { "pluginId": "core", "scope": "server", @@ -1969,28 +1991,6 @@ "\nReturn the status by the Agent's id" ], "children": [ - { - "type": "Object", - "label": "soClient", - "isRequired": true, - "signature": [ - "Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L62" - } - }, { "type": "CompoundType", "label": "esClient", @@ -2007,8 +2007,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 63, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L63" + "lineNumber": 60 } }, { @@ -2021,8 +2020,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L64" + "lineNumber": 60 } } ], @@ -2030,8 +2028,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 61, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L61" + "lineNumber": 60 } }, { @@ -2044,8 +2041,7 @@ ], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L69" + "lineNumber": 64 }, "signature": [ "typeof ", @@ -2061,8 +2057,7 @@ ], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L45" + "lineNumber": 45 }, "initialIsOpen": false }, @@ -2110,8 +2105,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L25" + "lineNumber": 25 } }, { @@ -2124,8 +2118,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L26" + "lineNumber": 26 } }, { @@ -2138,8 +2131,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L27" + "lineNumber": 27 } } ], @@ -2147,15 +2139,152 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L24" + "lineNumber": 24 } } ], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L23" + "lineNumber": 23 + }, + "initialIsOpen": false + }, + { + "id": "def-server.FleetSetupDeps", + "type": "Interface", + "label": "FleetSetupDeps", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-server.FleetSetupDeps.licensing", + "type": "Object", + "label": "licensing", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 91 + }, + "signature": [ + { + "pluginId": "licensing", + "scope": "server", + "docId": "kibLicensingPluginApi", + "section": "def-server.LicensingPluginSetup", + "text": "LicensingPluginSetup" + } + ] + }, + { + "tags": [], + "id": "def-server.FleetSetupDeps.security", + "type": "Object", + "label": "security", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 92 + }, + "signature": [ + { + "pluginId": "security", + "scope": "server", + "docId": "kibSecurityPluginApi", + "section": "def-server.SecurityPluginSetup", + "text": "SecurityPluginSetup" + }, + " | undefined" + ] + }, + { + "tags": [], + "id": "def-server.FleetSetupDeps.features", + "type": "Object", + "label": "features", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 93 + }, + "signature": [ + { + "pluginId": "features", + "scope": "server", + "docId": "kibFeaturesPluginApi", + "section": "def-server.PluginSetupContract", + "text": "PluginSetupContract" + }, + " | undefined" + ] + }, + { + "tags": [], + "id": "def-server.FleetSetupDeps.encryptedSavedObjects", + "type": "Object", + "label": "encryptedSavedObjects", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 94 + }, + "signature": [ + { + "pluginId": "encryptedSavedObjects", + "scope": "server", + "docId": "kibEncryptedSavedObjectsPluginApi", + "section": "def-server.EncryptedSavedObjectsPluginSetup", + "text": "EncryptedSavedObjectsPluginSetup" + } + ] + }, + { + "tags": [], + "id": "def-server.FleetSetupDeps.cloud", + "type": "Object", + "label": "cloud", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 95 + }, + "signature": [ + { + "pluginId": "cloud", + "scope": "server", + "docId": "kibCloudPluginApi", + "section": "def-server.CloudSetup", + "text": "CloudSetup" + }, + " | undefined" + ] + }, + { + "tags": [], + "id": "def-server.FleetSetupDeps.usageCollection", + "type": "Object", + "label": "usageCollection", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 96 + }, + "signature": [ + "Pick<", + { + "pluginId": "usageCollection", + "scope": "server", + "docId": "kibUsageCollectionPluginApi", + "section": "def-server.CollectorSet", + "text": "CollectorSet" + }, + ", \"makeStatsCollector\" | \"makeUsageCollector\" | \"registerCollector\" | \"getCollectorByType\" | \"areAllCollectorsReady\" | \"bulkFetch\" | \"bulkFetchUsage\" | \"toObject\" | \"toApiFieldNames\"> | undefined" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 90 }, "initialIsOpen": false }, @@ -2211,8 +2340,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L37" + "lineNumber": 37 } }, { @@ -2225,8 +2353,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L38" + "lineNumber": 38 } } ], @@ -2234,313 +2361,33 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L36" + "lineNumber": 36 } } ], "source": { "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 35, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L35" + "lineNumber": 35 }, "initialIsOpen": false - }, + } + ], + "enums": [], + "misc": [ { - "id": "def-server.AgentPolicyServiceInterface", - "type": "Interface", - "label": "AgentPolicyServiceInterface", - "description": [], + "id": "def-server.ExternalCallback", + "type": "Type", + "label": "ExternalCallback", "tags": [], - "children": [ - { - "tags": [], - "id": "def-server.AgentPolicyServiceInterface.get", - "type": "Function", - "label": "get", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L73" - }, - "signature": [ - "(soClient: Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, id: string, withPackagePolicies?: boolean) => Promise<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - }, - " | null>" - ] - }, - { - "tags": [], - "id": "def-server.AgentPolicyServiceInterface.list", - "type": "Function", - "label": "list", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 74, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L74" - }, - "signature": [ - "(soClient: Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, options: Readonly<{ page?: number | undefined; perPage?: number | undefined; sortField?: string | undefined; sortOrder?: \"asc\" | \"desc\" | undefined; kuery?: any; showUpgradeable?: boolean | undefined; } & {}> & { withPackagePolicies?: boolean | undefined; }) => Promise<{ items: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - }, - "[]; total: number; page: number; perPage: number; }>" - ] - }, - { - "tags": [], - "id": "def-server.AgentPolicyServiceInterface.getDefaultAgentPolicyId", - "type": "Function", - "label": "getDefaultAgentPolicyId", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 75, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L75" - }, - "signature": [ - "(soClient: Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">) => Promise" - ] - }, - { - "tags": [], - "id": "def-server.AgentPolicyServiceInterface.getFullAgentPolicy", - "type": "Function", - "label": "getFullAgentPolicy", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L76" - }, - "signature": [ - "(soClient: Pick<", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClient", - "text": "SavedObjectsClient" - }, - ", \"get\" | \"delete\" | \"create\" | \"find\" | \"update\" | \"bulkCreate\" | \"bulkGet\" | \"bulkUpdate\" | \"errors\" | \"checkConflicts\" | \"resolve\" | \"addToNamespaces\" | \"deleteFromNamespaces\" | \"removeReferencesTo\" | \"openPointInTimeForType\" | \"closePointInTime\">, id: string, options?: { standalone: boolean; } | undefined) => Promise<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicy", - "text": "FullAgentPolicy" - }, - " | null>" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/server/services/index.ts", - "lineNumber": 72, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/index.ts#L72" - }, - "initialIsOpen": false - }, - { - "id": "def-server.FleetSetupDeps", - "type": "Interface", - "label": "FleetSetupDeps", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-server.FleetSetupDeps.licensing", - "type": "Object", - "label": "licensing", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L91" - }, - "signature": [ - { - "pluginId": "licensing", - "scope": "server", - "docId": "kibLicensingPluginApi", - "section": "def-server.LicensingPluginSetup", - "text": "LicensingPluginSetup" - } - ] - }, - { - "tags": [], - "id": "def-server.FleetSetupDeps.security", - "type": "Object", - "label": "security", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 92, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L92" - }, - "signature": [ - { - "pluginId": "security", - "scope": "server", - "docId": "kibSecurityPluginApi", - "section": "def-server.SecurityPluginSetup", - "text": "SecurityPluginSetup" - }, - " | undefined" - ] - }, - { - "tags": [], - "id": "def-server.FleetSetupDeps.features", - "type": "Object", - "label": "features", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L93" - }, - "signature": [ - { - "pluginId": "features", - "scope": "server", - "docId": "kibFeaturesPluginApi", - "section": "def-server.PluginSetupContract", - "text": "PluginSetupContract" - }, - " | undefined" - ] - }, - { - "tags": [], - "id": "def-server.FleetSetupDeps.encryptedSavedObjects", - "type": "Object", - "label": "encryptedSavedObjects", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L94" - }, - "signature": [ - { - "pluginId": "encryptedSavedObjects", - "scope": "server", - "docId": "kibEncryptedSavedObjectsPluginApi", - "section": "def-server.EncryptedSavedObjectsPluginSetup", - "text": "EncryptedSavedObjectsPluginSetup" - } - ] - }, - { - "tags": [], - "id": "def-server.FleetSetupDeps.cloud", - "type": "Object", - "label": "cloud", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L95" - }, - "signature": [ - { - "pluginId": "cloud", - "scope": "server", - "docId": "kibCloudPluginApi", - "section": "def-server.CloudSetup", - "text": "CloudSetup" - }, - " | undefined" - ] - }, - { - "tags": [], - "id": "def-server.FleetSetupDeps.usageCollection", - "type": "Object", - "label": "usageCollection", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 96, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L96" - }, - "signature": [ - "Pick<", - { - "pluginId": "usageCollection", - "scope": "server", - "docId": "kibUsageCollectionPluginApi", - "section": "def-server.CollectorSet", - "text": "CollectorSet" - }, - ", \"makeStatsCollector\" | \"makeUsageCollector\" | \"registerCollector\" | \"getCollectorByType\" | \"areAllCollectorsReady\" | \"bulkFetch\" | \"bulkFetchUsage\" | \"toObject\" | \"toApiFieldNames\"> | undefined" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L90" - }, - "initialIsOpen": false - } - ], - "enums": [], - "misc": [ - { - "id": "def-server.ExternalCallback", - "type": "Type", - "label": "ExternalCallback", - "tags": [], - "description": [ - "\nCallbacks supported by the Fleet plugin" - ], - "source": { - "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L134" - }, - "signature": [ - "[\"packagePolicyCreate\", (newPackagePolicy: ", + "description": [ + "\nCallbacks supported by the Fleet plugin" + ], + "source": { + "path": "x-pack/plugins/fleet/server/plugin.ts", + "lineNumber": 134 + }, + "signature": [ + "[\"packagePolicyCreate\", (newPackagePolicy: ", { "pluginId": "fleet", "scope": "common", @@ -2591,8 +2438,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/index.ts", - "lineNumber": 75, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/index.ts#L75" + "lineNumber": 76 }, "signature": [ "any" @@ -2607,8 +2453,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/services/package_policy.ts", - "lineNumber": 592, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/services/package_policy.ts#L592" + "lineNumber": 592 }, "signature": [ "PackagePolicyService" @@ -2625,8 +2470,7 @@ "description": [], "source": { "path": "node_modules/elastic-apm-node/index.d.ts", - "lineNumber": 7, - "link": "https://github.com/elastic/kibana/tree/masternode_modules/elastic-apm-node/index.d.ts#L7" + "lineNumber": 7 }, "signature": [ "Agent" @@ -2642,8 +2486,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 119, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L119" + "lineNumber": 119 }, "signature": [ "void" @@ -2668,8 +2511,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 158, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L158" + "lineNumber": 158 }, "signature": [ { @@ -2689,8 +2531,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 159, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L159" + "lineNumber": 159 }, "signature": [ { @@ -2710,8 +2551,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 160, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L160" + "lineNumber": 160 }, "signature": [ { @@ -2733,8 +2573,7 @@ ], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 164, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L164" + "lineNumber": 164 }, "signature": [ { @@ -2754,8 +2593,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 165, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L165" + "lineNumber": 165 }, "signature": [ { @@ -2777,8 +2615,7 @@ ], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 170, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L170" + "lineNumber": 170 }, "signature": [ "(...args: ", @@ -2795,8 +2632,7 @@ ], "source": { "path": "x-pack/plugins/fleet/server/plugin.ts", - "lineNumber": 157, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/server/plugin.ts#L157" + "lineNumber": 157 }, "lifecycle": "start", "initialIsOpen": true @@ -2849,8 +2685,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L23" + "lineNumber": 23 } } ], @@ -2858,8 +2693,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L23" + "lineNumber": 23 } }, { @@ -2875,8 +2709,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L28" + "lineNumber": 28 } }, { @@ -2900,8 +2733,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 34, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L34" + "lineNumber": 34 } }, { @@ -2927,8 +2759,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L38" + "lineNumber": 38 } }, { @@ -2944,8 +2775,7 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L42" + "lineNumber": 42 } }, { @@ -2961,255 +2791,120 @@ "returnComment": [], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L49" + "lineNumber": 49 } } ], "source": { "path": "x-pack/plugins/fleet/common/services/license.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/license.ts#L14" + "lineNumber": 14 }, "initialIsOpen": false } ], "functions": [ { - "id": "def-common.packageToPackagePolicyInputs", + "id": "def-common.decodeCloudId", "type": "Function", - "children": [ - { - "type": "CompoundType", - "label": "packageInfo", + "label": "decodeCloudId", + "signature": [ + "(cid: string) => { host: string; defaultPort: string; elasticsearchUrl: string; kibanaUrl: string; } | undefined" + ], + "description": [], + "children": [ + { + "type": "string", + "label": "cid", "isRequired": true, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" - } + "string" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L47" + "path": "x-pack/plugins/fleet/common/services/decode_cloud_id.ts", + "lineNumber": 10 } } ], - "signature": [ - "(packageInfo: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" - }, - ") => ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInput", - "text": "NewPackagePolicyInput" - }, - "[]" - ], - "description": [], - "label": "packageToPackagePolicyInputs", - "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L46" - }, "tags": [], "returnComment": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/decode_cloud_id.ts", + "lineNumber": 9 + }, "initialIsOpen": false }, { - "id": "def-common.packageToPackagePolicy", + "id": "def-common.doesAgentPolicyAlreadyIncludePackage", "type": "Function", "children": [ { - "type": "CompoundType", - "label": "packageInfo", + "type": "Object", + "label": "agentPolicy", "isRequired": true, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" } ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 117, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L117" - } - }, - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 118, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L118" - } - }, - { - "type": "string", - "label": "outputId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 119, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L119" + "path": "x-pack/plugins/fleet/common/services/limited_package.ts", + "lineNumber": 16 } }, { "type": "string", - "label": "namespace", + "label": "packageName", "isRequired": true, "signature": [ "string" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 120, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L120" - } - }, - { - "type": "string", - "label": "packagePolicyName", - "isRequired": false, - "signature": [ - "string | undefined" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 121, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L121" - } - }, - { - "type": "string", - "label": "description", - "isRequired": false, - "signature": [ - "string | undefined" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 122, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L122" + "path": "x-pack/plugins/fleet/common/services/limited_package.ts", + "lineNumber": 17 } } ], "signature": [ - "(packageInfo: ", + "(agentPolicy: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" }, - ", agentPolicyId: string, outputId: string, namespace?: string, packagePolicyName?: string | undefined, description?: string | undefined) => ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicy", - "text": "NewPackagePolicy" - } - ], - "description": [ - "\nBuilds a `NewPackagePolicy` structure based on a package\n" + ", packageName: string) => boolean" ], - "label": "packageToPackagePolicy", + "description": [], + "label": "doesAgentPolicyAlreadyIncludePackage", "source": { - "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_to_package_policy.ts#L116" + "path": "x-pack/plugins/fleet/common/services/limited_package.ts", + "lineNumber": 15 }, "tags": [], "returnComment": [], "initialIsOpen": false }, { - "id": "def-common.storedPackagePoliciesToAgentInputs", + "tags": [], + "id": "def-common.entries", "type": "Function", - "children": [ - { - "type": "Array", - "label": "packagePolicies", - "isRequired": true, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - "[]" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts#L12" - } - } - ], - "signature": [ - "(packagePolicies: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - "[]) => ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicyInput", - "text": "FullAgentPolicyInput" - }, - "[]" - ], + "label": "entries", "description": [], - "label": "storedPackagePoliciesToAgentInputs", "source": { - "path": "x-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts#L11" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 38 }, - "tags": [], - "returnComment": [], + "signature": [ + "(o: T) => [keyof T, T[keyof T]][]" + ], "initialIsOpen": false }, { @@ -3232,8 +2927,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts#L27" + "lineNumber": 27 } } ], @@ -3252,434 +2946,500 @@ "label": "fullAgentPolicyToYaml", "source": { "path": "x-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/full_agent_policy_to_yaml.ts#L27" + "lineNumber": 27 }, "tags": [], "returnComment": [], "initialIsOpen": false }, { - "id": "def-common.isPackageLimited", + "id": "def-common.isAgentUpgradeable", "type": "Function", - "children": [ - { - "type": "CompoundType", - "label": "packageInfo", - "isRequired": true, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" - } - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/limited_package.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/limited_package.ts#L11" - } - } - ], + "label": "isAgentUpgradeable", "signature": [ - "(packageInfo: ", + "(agent: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" + "section": "def-common.Agent", + "text": "Agent" }, - ") => boolean" + ", kibanaVersion: string) => boolean" ], "description": [], - "label": "isPackageLimited", - "source": { - "path": "x-pack/plugins/fleet/common/services/limited_package.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/limited_package.ts#L11" - }, - "tags": [], - "returnComment": [], - "initialIsOpen": false - }, - { - "id": "def-common.doesAgentPolicyAlreadyIncludePackage", - "type": "Function", "children": [ { "type": "Object", - "label": "agentPolicy", + "label": "agent", "isRequired": true, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" + "section": "def-common.Agent", + "text": "Agent" } ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/limited_package.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/limited_package.ts#L16" + "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", + "lineNumber": 13 } }, { "type": "string", - "label": "packageName", + "label": "kibanaVersion", "isRequired": true, "signature": [ "string" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/limited_package.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/limited_package.ts#L17" + "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", + "lineNumber": 13 } } ], - "signature": [ - "(agentPolicy: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - }, - ", packageName: string) => boolean" - ], - "description": [], - "label": "doesAgentPolicyAlreadyIncludePackage", - "source": { - "path": "x-pack/plugins/fleet/common/services/limited_package.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/limited_package.ts#L15" - }, "tags": [], "returnComment": [], - "initialIsOpen": false + "source": { + "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", + "lineNumber": 13 + }, + "initialIsOpen": false }, { - "id": "def-common.decodeCloudId", + "id": "def-common.isDiffPathProtocol", "type": "Function", - "label": "decodeCloudId", + "label": "isDiffPathProtocol", "signature": [ - "(cid: string) => { host: string; defaultPort: string; elasticsearchUrl: string; kibanaUrl: string; } | undefined" + "(kibanaUrls: string[]) => boolean" ], "description": [], "children": [ { - "type": "string", - "label": "cid", + "type": "Array", + "label": "kibanaUrls", "isRequired": true, "signature": [ - "string" + "string[]" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/decode_cloud_id.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/decode_cloud_id.ts#L10" + "path": "x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts", + "lineNumber": 9 } } ], "tags": [], "returnComment": [], "source": { - "path": "x-pack/plugins/fleet/common/services/decode_cloud_id.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/decode_cloud_id.ts#L9" + "path": "x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts", + "lineNumber": 9 }, "initialIsOpen": false }, { - "id": "def-common.isValidNamespace", + "id": "def-common.isPackageLimited", "type": "Function", - "label": "isValidNamespace", - "signature": [ - "(namespace: string) => { valid: boolean; error?: string | undefined; }" - ], - "description": [], "children": [ { - "type": "string", - "label": "namespace", + "type": "CompoundType", + "label": "packageInfo", "isRequired": true, "signature": [ - "string" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageInfo", + "text": "PackageInfo" + } ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/is_valid_namespace.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_valid_namespace.ts#L13" + "path": "x-pack/plugins/fleet/common/services/limited_package.ts", + "lineNumber": 11 } } ], - "tags": [], - "returnComment": [], + "signature": [ + "(packageInfo: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageInfo", + "text": "PackageInfo" + }, + ") => boolean" + ], + "description": [], + "label": "isPackageLimited", "source": { - "path": "x-pack/plugins/fleet/common/services/is_valid_namespace.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_valid_namespace.ts#L13" + "path": "x-pack/plugins/fleet/common/services/limited_package.ts", + "lineNumber": 11 }, + "tags": [], + "returnComment": [], "initialIsOpen": false }, { - "id": "def-common.isDiffPathProtocol", + "id": "def-common.isValidNamespace", "type": "Function", - "label": "isDiffPathProtocol", + "label": "isValidNamespace", "signature": [ - "(kibanaUrls: string[]) => boolean" + "(namespace: string) => { valid: boolean; error?: string | undefined; }" ], "description": [], "children": [ { - "type": "Array", - "label": "kibanaUrls", + "type": "string", + "label": "namespace", "isRequired": true, "signature": [ - "string[]" + "string" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_diff_path_protocol.ts#L9" + "path": "x-pack/plugins/fleet/common/services/is_valid_namespace.ts", + "lineNumber": 13 } } ], "tags": [], "returnComment": [], "source": { - "path": "x-pack/plugins/fleet/common/services/is_diff_path_protocol.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_diff_path_protocol.ts#L9" + "path": "x-pack/plugins/fleet/common/services/is_valid_namespace.ts", + "lineNumber": 13 }, "initialIsOpen": false }, { - "id": "def-common.isAgentUpgradeable", + "id": "def-common.packageToPackagePolicy", "type": "Function", - "label": "isAgentUpgradeable", - "signature": [ - "(agent: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" - }, - ", kibanaVersion: string) => boolean" - ], - "description": [], "children": [ { - "type": "Object", - "label": "agent", + "type": "CompoundType", + "label": "packageInfo", "isRequired": true, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" + "section": "def-common.PackageInfo", + "text": "PackageInfo" } ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_agent_upgradeable.ts#L13" + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 117 } }, { "type": "string", - "label": "kibanaVersion", + "label": "agentPolicyId", "isRequired": true, "signature": [ "string" ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_agent_upgradeable.ts#L13" + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 118 } - } - ], - "tags": [], - "returnComment": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/is_agent_upgradeable.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/is_agent_upgradeable.ts#L13" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.entries", - "type": "Function", - "label": "entries", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L39" - }, - "signature": [ - "(o: T) => [keyof T, T[keyof T]][]" - ], - "initialIsOpen": false - } - ], - "interfaces": [ - { - "id": "def-common.FleetConfigType", - "type": "Interface", - "label": "FleetConfigType", - "description": [], - "tags": [], - "children": [ + }, { - "tags": [], - "id": "def-common.FleetConfigType.enabled", - "type": "boolean", - "label": "enabled", + "type": "string", + "label": "outputId", + "isRequired": true, + "signature": [ + "string" + ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L12" + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 119 } }, { - "tags": [], - "id": "def-common.FleetConfigType.registryUrl", "type": "string", - "label": "registryUrl", + "label": "namespace", + "isRequired": true, + "signature": [ + "string" + ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L13" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 120 + } }, { - "tags": [], - "id": "def-common.FleetConfigType.registryProxyUrl", "type": "string", - "label": "registryProxyUrl", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L14" - }, + "label": "packagePolicyName", + "isRequired": false, "signature": [ "string | undefined" - ] + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 121 + } }, { - "tags": [], - "id": "def-common.FleetConfigType.agents", - "type": "Object", - "label": "agents", + "type": "string", + "label": "description", + "isRequired": false, + "signature": [ + "string | undefined" + ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L15" - }, - "signature": [ - "{ fleetServerEnabled: boolean; enabled: boolean; tlsCheckDisabled: boolean; pollingRequestTimeout: number; maxConcurrentConnections: number; kibana: { host?: string | string[] | undefined; ca_sha256?: string | undefined; }; elasticsearch: { host?: string | undefined; ca_sha256?: string | undefined; }; agentPolicyRolloutRateLimitIntervalMs: number; agentPolicyRolloutRateLimitRequestPerInterval: number; }" - ] + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 122 + } + } + ], + "signature": [ + "(packageInfo: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageInfo", + "text": "PackageInfo" + }, + ", agentPolicyId: string, outputId: string, namespace?: string, packagePolicyName?: string | undefined, description?: string | undefined) => ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicy", + "text": "NewPackagePolicy" } ], + "description": [ + "\nBuilds a `NewPackagePolicy` structure based on a package\n" + ], + "label": "packageToPackagePolicy", "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L11" + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 116 }, + "tags": [], + "returnComment": [], "initialIsOpen": false }, { - "id": "def-common.NewAgentAction", - "type": "Interface", - "label": "NewAgentAction", - "description": [], - "tags": [], + "id": "def-common.packageToPackagePolicyInputs", + "type": "Function", "children": [ { - "tags": [], - "id": "def-common.NewAgentAction.type", "type": "CompoundType", - "label": "type", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L39" - }, + "label": "packageInfo", + "isRequired": true, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentActionType", - "text": "AgentActionType" + "section": "def-common.PackageInfo", + "text": "PackageInfo" } - ] - }, - { - "tags": [], - "id": "def-common.NewAgentAction.data", - "type": "Any", - "label": "data", + ], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L40" - }, - "signature": [ - "any" - ] - }, + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 47 + } + } + ], + "signature": [ + "(packageInfo: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageInfo", + "text": "PackageInfo" + }, + ") => ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicyInput", + "text": "NewPackagePolicyInput" + }, + "[]" + ], + "description": [], + "label": "packageToPackagePolicyInputs", + "source": { + "path": "x-pack/plugins/fleet/common/services/package_to_package_policy.ts", + "lineNumber": 46 + }, + "tags": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "id": "def-common.storedPackagePoliciesToAgentInputs", + "type": "Function", + "children": [ + { + "type": "Array", + "label": "packagePolicies", + "isRequired": true, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + "[]" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts", + "lineNumber": 12 + } + } + ], + "signature": [ + "(packagePolicies: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + "[]) => ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.FullAgentPolicyInput", + "text": "FullAgentPolicyInput" + }, + "[]" + ], + "description": [], + "label": "storedPackagePoliciesToAgentInputs", + "source": { + "path": "x-pack/plugins/fleet/common/services/package_policies_to_agent_inputs.ts", + "lineNumber": 11 + }, + "tags": [], + "returnComment": [], + "initialIsOpen": false + } + ], + "interfaces": [ + { + "id": "def-common.Agent", + "type": "Interface", + "label": "Agent", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Agent", + "text": "Agent" + }, + " extends AgentBase" + ], + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.NewAgentAction.sent_at", + "id": "def-common.Agent.id", "type": "string", - "label": "sent_at", + "label": "id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 148 + } + }, + { + "tags": [], + "id": "def-common.Agent.current_error_events", + "type": "Array", + "label": "current_error_events", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 149 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentEvent", + "text": "AgentEvent" + }, + "[]" + ] + }, + { + "tags": [], + "id": "def-common.Agent.access_api_key", + "type": "string", + "label": "access_api_key", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 150 + }, + "signature": [ + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.Agent.status", + "type": "string", + "label": "status", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L41" + "lineNumber": 151 }, "signature": [ "string | undefined" ] + }, + { + "tags": [], + "id": "def-common.Agent.packages", + "type": "Array", + "label": "packages", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 152 + }, + "signature": [ + "string[]" + ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L38" + "lineNumber": 147 }, "initialIsOpen": false }, @@ -3715,8 +3475,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L45" + "lineNumber": 45 }, "signature": [ { @@ -3736,8 +3495,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L46" + "lineNumber": 46 }, "signature": [ "any" @@ -3751,8 +3509,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L47" + "lineNumber": 47 }, "signature": [ "string | undefined" @@ -3766,8 +3523,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L48" + "lineNumber": 48 } }, { @@ -3778,8 +3534,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L49" + "lineNumber": 49 } }, { @@ -3790,8 +3545,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L50" + "lineNumber": 50 } }, { @@ -3802,8 +3556,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 51, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L51" + "lineNumber": 51 }, "signature": [ "any" @@ -3812,30 +3565,29 @@ ], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L44" + "lineNumber": 44 }, "initialIsOpen": false }, { - "id": "def-common.AgentPolicyAction", + "id": "def-common.AgentEvent", "type": "Interface", - "label": "AgentPolicyAction", + "label": "AgentEvent", "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicyAction", - "text": "AgentPolicyAction" + "section": "def-common.AgentEvent", + "text": "AgentEvent" }, " extends ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentAction", - "text": "NewAgentAction" + "section": "def-common.NewAgentEvent", + "text": "NewAgentEvent" } ], "description": [], @@ -3843,531 +3595,504 @@ "children": [ { "tags": [], - "id": "def-common.AgentPolicyAction.id", + "id": "def-common.AgentEvent.id", "type": "string", "label": "id", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L55" + "lineNumber": 120 } - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 119 + }, + "initialIsOpen": false + }, + { + "id": "def-common.AgentMetadata", + "type": "Interface", + "label": "AgentMetadata", + "description": [], + "tags": [], + "children": [ { + "id": "def-common.AgentMetadata.Unnamed", + "type": "Any", + "label": "Unnamed", "tags": [], - "id": "def-common.AgentPolicyAction.type", - "type": "CompoundType", - "label": "type", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L56" + "lineNumber": 126 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentActionType", - "text": "AgentActionType" - } + "any" ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 125 + }, + "initialIsOpen": false + }, + { + "id": "def-common.AgentPolicy", + "type": "Interface", + "label": "AgentPolicy", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewAgentPolicy", + "text": "NewAgentPolicy" + } + ], + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.AgentPolicyAction.data", - "type": "Object", - "label": "data", + "id": "def-common.AgentPolicy.id", + "type": "string", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L57" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 27 + } + }, + { + "tags": [], + "id": "def-common.AgentPolicy.status", + "type": "CompoundType", + "label": "status", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 28 }, "signature": [ - "{ policy: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicy", - "text": "FullAgentPolicy" + "section": "def-common.ValueOf", + "text": "ValueOf" }, - "; }" + "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>" ] }, { "tags": [], - "id": "def-common.AgentPolicyAction.policy_id", - "type": "string", - "label": "policy_id", + "id": "def-common.AgentPolicy.package_policies", + "type": "CompoundType", + "label": "package_policies", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L60" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 29 + }, + "signature": [ + "string[] | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + "[]" + ] + }, + { + "tags": [], + "id": "def-common.AgentPolicy.is_managed", + "type": "boolean", + "label": "is_managed", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 30 } }, { "tags": [], - "id": "def-common.AgentPolicyAction.policy_revision", - "type": "number", - "label": "policy_revision", + "id": "def-common.AgentPolicy.updated_at", + "type": "string", + "label": "updated_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 61, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L61" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 31 } }, { "tags": [], - "id": "def-common.AgentPolicyAction.created_at", + "id": "def-common.AgentPolicy.updated_by", "type": "string", - "label": "created_at", + "label": "updated_by", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L62" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 32 } }, { "tags": [], - "id": "def-common.AgentPolicyAction.ack_data", - "type": "Any", - "label": "ack_data", + "id": "def-common.AgentPolicy.revision", + "type": "number", + "label": "revision", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 63, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L63" - }, - "signature": [ - "any" - ] + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 33 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L54" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 26 }, "initialIsOpen": false }, { - "id": "def-common.NewAgentEvent", + "id": "def-common.AgentPolicyAction", "type": "Interface", - "label": "NewAgentEvent", + "label": "AgentPolicyAction", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicyAction", + "text": "AgentPolicyAction" + }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewAgentAction", + "text": "NewAgentAction" + } + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.NewAgentEvent.type", - "type": "CompoundType", - "label": "type", + "id": "def-common.AgentPolicyAction.id", + "type": "string", + "label": "id", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L94" - }, - "signature": [ - "\"STATE\" | \"ERROR\" | \"ACTION_RESULT\" | \"ACTION\"" - ] + "lineNumber": 55 + } }, { "tags": [], - "id": "def-common.NewAgentEvent.subtype", + "id": "def-common.AgentPolicyAction.type", "type": "CompoundType", - "label": "subtype", + "label": "type", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L95" + "lineNumber": 56 }, "signature": [ - "\"RUNNING\" | \"STARTING\" | \"IN_PROGRESS\" | \"CONFIG\" | \"FAILED\" | \"STOPPING\" | \"STOPPED\" | \"DEGRADED\" | \"UPDATING\" | \"DATA_DUMP\" | \"ACKNOWLEDGED\" | \"UNKNOWN\"" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentActionType", + "text": "AgentActionType" + } ] }, { "tags": [], - "id": "def-common.NewAgentEvent.timestamp", - "type": "string", - "label": "timestamp", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 110, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L110" - } - }, - { - "tags": [], - "id": "def-common.NewAgentEvent.message", - "type": "string", - "label": "message", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 111, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L111" - } - }, - { - "tags": [], - "id": "def-common.NewAgentEvent.payload", - "type": "Any", - "label": "payload", + "id": "def-common.AgentPolicyAction.data", + "type": "Object", + "label": "data", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 112, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L112" + "lineNumber": 57 }, "signature": [ - "any" + "{ policy: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.FullAgentPolicy", + "text": "FullAgentPolicy" + }, + "; }" ] }, { "tags": [], - "id": "def-common.NewAgentEvent.agent_id", + "id": "def-common.AgentPolicyAction.policy_id", "type": "string", - "label": "agent_id", + "label": "policy_id", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 113, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L113" + "lineNumber": 60 } }, { "tags": [], - "id": "def-common.NewAgentEvent.action_id", - "type": "string", - "label": "action_id", + "id": "def-common.AgentPolicyAction.policy_revision", + "type": "number", + "label": "policy_revision", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 114, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L114" - }, - "signature": [ - "string | undefined" - ] + "lineNumber": 61 + } }, { "tags": [], - "id": "def-common.NewAgentEvent.policy_id", + "id": "def-common.AgentPolicyAction.created_at", "type": "string", - "label": "policy_id", + "label": "created_at", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L115" - }, - "signature": [ - "string | undefined" - ] + "lineNumber": 62 + } }, { "tags": [], - "id": "def-common.NewAgentEvent.stream_id", - "type": "string", - "label": "stream_id", + "id": "def-common.AgentPolicyAction.ack_data", + "type": "Any", + "label": "ack_data", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L116" + "lineNumber": 63 }, "signature": [ - "string | undefined" + "any" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L93" + "lineNumber": 54 }, "initialIsOpen": false }, { - "id": "def-common.AgentEvent", + "id": "def-common.AgentSOAttributes", "type": "Interface", - "label": "AgentEvent", + "label": "AgentSOAttributes", "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentEvent", - "text": "AgentEvent" + "section": "def-common.AgentSOAttributes", + "text": "AgentSOAttributes" }, - " extends ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentEvent", - "text": "NewAgentEvent" - } + " extends AgentBase" ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.AgentEvent.id", + "id": "def-common.AgentSOAttributes.current_error_events", "type": "string", - "label": "id", + "label": "current_error_events", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 120, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L120" - } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 119, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L119" - }, - "initialIsOpen": false - }, - { - "id": "def-common.AgentMetadata", - "type": "Interface", - "label": "AgentMetadata", - "description": [], - "tags": [], - "children": [ + "lineNumber": 156 + }, + "signature": [ + "string | undefined" + ] + }, { - "id": "def-common.AgentMetadata.Unnamed", - "type": "Any", - "label": "Unnamed", "tags": [], + "id": "def-common.AgentSOAttributes.packages", + "type": "Array", + "label": "packages", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 126, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L126" + "lineNumber": 157 }, "signature": [ - "any" + "string[] | undefined" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 125, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L125" + "lineNumber": 155 }, "initialIsOpen": false }, { - "id": "def-common.Agent", + "id": "def-common.AssetParts", "type": "Interface", - "label": "Agent", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" - }, - " extends AgentBase" - ], + "label": "AssetParts", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.Agent.id", + "id": "def-common.AssetParts.pkgkey", "type": "string", - "label": "id", + "label": "pkgkey", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 148, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L148" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 185 } }, { "tags": [], - "id": "def-common.Agent.current_error_events", - "type": "Array", - "label": "current_error_events", + "id": "def-common.AssetParts.dataset", + "type": "string", + "label": "dataset", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 149, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L149" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 186 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentEvent", - "text": "AgentEvent" - }, - "[]" + "string | undefined" ] }, { "tags": [], - "id": "def-common.Agent.access_api_key", - "type": "string", - "label": "access_api_key", + "id": "def-common.AssetParts.service", + "type": "CompoundType", + "label": "service", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 150, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L150" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 187 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.ServiceName", + "text": "ServiceName" + } ] }, { "tags": [], - "id": "def-common.Agent.status", - "type": "string", - "label": "status", + "id": "def-common.AssetParts.type", + "type": "CompoundType", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 151, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L151" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 188 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AssetType", + "text": "AssetType" + } ] }, { "tags": [], - "id": "def-common.Agent.packages", - "type": "Array", - "label": "packages", + "id": "def-common.AssetParts.file", + "type": "string", + "label": "file", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 152, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L152" - }, - "signature": [ - "string[]" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 189 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 147, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L147" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 184 }, "initialIsOpen": false }, { - "id": "def-common.AgentSOAttributes", + "id": "def-common.BaseSettings", "type": "Interface", - "label": "AgentSOAttributes", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentSOAttributes", - "text": "AgentSOAttributes" - }, - " extends AgentBase" - ], + "label": "BaseSettings", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.AgentSOAttributes.current_error_events", - "type": "string", - "label": "current_error_events", + "id": "def-common.BaseSettings.agent_auto_upgrade", + "type": "boolean", + "label": "agent_auto_upgrade", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 156, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L156" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 11 + } }, { "tags": [], - "id": "def-common.AgentSOAttributes.packages", - "type": "Array", - "label": "packages", + "id": "def-common.BaseSettings.package_auto_upgrade", + "type": "boolean", + "label": "package_auto_upgrade", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 157, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L157" - }, - "signature": [ - "string[] | undefined" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L155" - }, - "initialIsOpen": false - }, - { - "id": "def-common.FleetServerAgent", - "type": "Interface", - "label": "FleetServerAgent", - "description": [ - "\nAn Elastic Agent that has enrolled into Fleet" - ], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 12 + } + }, { "tags": [], - "id": "def-common.FleetServerAgent._version", - "type": "number", - "label": "_version", - "description": [ - "\nThe version of the document in the index" - ], + "id": "def-common.BaseSettings.kibana_urls", + "type": "Array", + "label": "kibana_urls", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 169, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L169" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 13 }, "signature": [ - "number | undefined" + "string[]" ] }, { "tags": [], - "id": "def-common.FleetServerAgent.shared_id", + "id": "def-common.BaseSettings.kibana_ca_sha256", "type": "string", - "label": "shared_id", - "description": [ - "\nShared ID" - ], + "label": "kibana_ca_sha256", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 173, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L173" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 14 }, "signature": [ "string | undefined" @@ -4375,1463 +4100,1540 @@ }, { "tags": [], - "id": "def-common.FleetServerAgent.type", + "id": "def-common.BaseSettings.has_seen_add_data_notice", "type": "CompoundType", - "label": "type", - "description": [ - "\nType" - ], + "label": "has_seen_add_data_notice", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 177, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L177" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 15 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentType", - "text": "AgentType" - } + "boolean | undefined" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 10 + }, + "initialIsOpen": false + }, + { + "id": "def-common.BulkInstallPackageInfo", + "type": "Interface", + "label": "BulkInstallPackageInfo", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.active", - "type": "boolean", - "label": "active", - "description": [ - "\nActive flag" - ], + "id": "def-common.BulkInstallPackageInfo.name", + "type": "string", + "label": "name", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 181, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L181" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 86 } }, { "tags": [], - "id": "def-common.FleetServerAgent.enrolled_at", + "id": "def-common.BulkInstallPackageInfo.newVersion", "type": "string", - "label": "enrolled_at", - "description": [ - "\nDate/time the Elastic Agent enrolled" - ], + "label": "newVersion", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 185, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L185" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 87 } }, { "tags": [], - "id": "def-common.FleetServerAgent.unenrolled_at", - "type": "string", - "label": "unenrolled_at", - "description": [ - "\nDate/time the Elastic Agent unenrolled" - ], + "id": "def-common.BulkInstallPackageInfo.oldVersion", + "type": "CompoundType", + "label": "oldVersion", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 189, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L189" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 89 }, "signature": [ - "string | undefined" + "string | null" ] }, { "tags": [], - "id": "def-common.FleetServerAgent.unenrollment_started_at", - "type": "string", - "label": "unenrollment_started_at", - "description": [ - "\nDate/time the Elastic Agent unenrolled started" - ], + "id": "def-common.BulkInstallPackageInfo.assets", + "type": "Array", + "label": "assets", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 193, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L193" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 90 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AssetReference", + "text": "AssetReference" + }, + "[]" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 85 + }, + "initialIsOpen": false + }, + { + "id": "def-common.BulkInstallPackagesRequest", + "type": "Interface", + "label": "BulkInstallPackagesRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.upgraded_at", - "type": "CompoundType", - "label": "upgraded_at", - "description": [ - "\nDate/time the Elastic Agent was last upgraded" - ], + "id": "def-common.BulkInstallPackagesRequest.body", + "type": "Object", + "label": "body", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 197, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L197" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 98 }, "signature": [ - "string | null | undefined" + "{ packages: string[]; }" ] - }, - { - "tags": [], - "id": "def-common.FleetServerAgent.upgrade_started_at", - "type": "CompoundType", - "label": "upgrade_started_at", - "description": [ - "\nDate/time the Elastic Agent started the current upgrade" - ], + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 97 + }, + "initialIsOpen": false + }, + { + "id": "def-common.BulkInstallPackagesResponse", + "type": "Interface", + "label": "BulkInstallPackagesResponse", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.BulkInstallPackagesResponse.response", + "type": "Array", + "label": "response", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 201, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L201" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 94 }, "signature": [ - "string | null | undefined" + "(", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.IBulkInstallPackageHTTPError", + "text": "IBulkInstallPackageHTTPError" + }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.BulkInstallPackageInfo", + "text": "BulkInstallPackageInfo" + }, + ")[]" ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 93 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CategorySummaryItem", + "type": "Interface", + "label": "CategorySummaryItem", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.CategorySummaryItem.id", + "type": "string", + "label": "id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 178 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.access_api_key_id", + "id": "def-common.CategorySummaryItem.title", "type": "string", - "label": "access_api_key_id", - "description": [ - "\nID of the API key the Elastic Agent must used to contact Fleet Server" - ], + "label": "title", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 205, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L205" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 179 + } + }, + { + "tags": [], + "id": "def-common.CategorySummaryItem.count", + "type": "number", + "label": "count", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 180 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 177 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CheckPermissionsResponse", + "type": "Interface", + "label": "CheckPermissionsResponse", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.CheckPermissionsResponse.error", + "type": "CompoundType", + "label": "error", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", + "lineNumber": 9 }, "signature": [ - "string | undefined" + "\"MISSING_SECURITY\" | \"MISSING_SUPERUSER_ROLE\" | undefined" ] }, { "tags": [], - "id": "def-common.FleetServerAgent.agent", + "id": "def-common.CheckPermissionsResponse.success", + "type": "boolean", + "label": "success", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", + "lineNumber": 10 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", + "lineNumber": 8 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CopyAgentPolicyRequest", + "type": "Interface", + "label": "CopyAgentPolicyRequest", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.CopyAgentPolicyRequest.body", "type": "Object", - "label": "agent", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 206, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L206" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 54 }, "signature": [ + "Pick<", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.FleetServerAgentMetadata", - "text": "FleetServerAgentMetadata" + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" }, - " | undefined" + ", \"description\" | \"name\">" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 53 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CopyAgentPolicyResponse", + "type": "Interface", + "label": "CopyAgentPolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.user_provided_metadata", + "id": "def-common.CopyAgentPolicyResponse.item", "type": "Object", - "label": "user_provided_metadata", - "description": [ - "\nUser provided metadata information for the Elastic Agent" - ], + "label": "item", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 210, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L210" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 58 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentMetadata", - "text": "AgentMetadata" + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 57 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CreateAgentPolicyRequest", + "type": "Interface", + "label": "CreateAgentPolicyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.local_metadata", + "id": "def-common.CreateAgentPolicyRequest.body", "type": "Object", - "label": "local_metadata", - "description": [ - "\nLocal metadata information for the Elastic Agent" - ], + "label": "body", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 214, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L214" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 38 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentMetadata", - "text": "AgentMetadata" + "section": "def-common.NewAgentPolicy", + "text": "NewAgentPolicy" } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 37 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CreateAgentPolicyResponse", + "type": "Interface", + "label": "CreateAgentPolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.policy_id", - "type": "string", - "label": "policy_id", - "description": [ - "\nThe policy ID for the Elastic Agent" - ], + "id": "def-common.CreateAgentPolicyResponse.item", + "type": "Object", + "label": "item", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 218, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L218" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 42 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" + } ] - }, - { - "tags": [], - "id": "def-common.FleetServerAgent.policy_revision_idx", - "type": "CompoundType", - "label": "policy_revision_idx", - "description": [ - "\nThe current policy revision_idx for the Elastic Agent" - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 222, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L222" - }, - "signature": [ - "number | null | undefined" - ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 41 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CreateFleetSetupResponse", + "type": "Interface", + "label": "CreateFleetSetupResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.policy_coordinator_idx", - "type": "number", - "label": "policy_coordinator_idx", - "description": [ - "\nThe current policy coordinator for the Elastic Agent" - ], + "id": "def-common.CreateFleetSetupResponse.isInitialized", + "type": "boolean", + "label": "isInitialized", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 226, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L226" + "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", + "lineNumber": 9 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", + "lineNumber": 8 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CreatePackagePolicyRequest", + "type": "Interface", + "label": "CreatePackagePolicyRequest", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.CreatePackagePolicyRequest.body", + "type": "Object", + "label": "body", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 36 }, "signature": [ - "number | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicy", + "text": "NewPackagePolicy" + } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 35 + }, + "initialIsOpen": false + }, + { + "id": "def-common.CreatePackagePolicyResponse", + "type": "Interface", + "label": "CreatePackagePolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgent.last_updated", - "type": "string", - "label": "last_updated", - "description": [ - "\nDate/time the Elastic Agent was last updated" - ], + "id": "def-common.CreatePackagePolicyResponse.item", + "type": "Object", + "label": "item", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 230, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L230" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 40 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + } ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 39 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DataStream", + "type": "Interface", + "label": "DataStream", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.DataStream.index", + "type": "string", + "label": "index", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 9 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.last_checkin", + "id": "def-common.DataStream.dataset", "type": "string", - "label": "last_checkin", - "description": [ - "\nDate/time the Elastic Agent checked in last time" - ], + "label": "dataset", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 234, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L234" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 10 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.last_checkin_status", - "type": "CompoundType", - "label": "last_checkin_status", - "description": [ - "\nLst checkin status" - ], + "id": "def-common.DataStream.namespace", + "type": "string", + "label": "namespace", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 238, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L238" - }, - "signature": [ - "\"online\" | \"error\" | \"updating\" | \"degraded\" | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 11 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.default_api_key_id", + "id": "def-common.DataStream.type", "type": "string", - "label": "default_api_key_id", - "description": [ - "\nID of the API key the Elastic Agent uses to authenticate with elasticsearch" - ], + "label": "type", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 242, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L242" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 12 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.default_api_key", + "id": "def-common.DataStream.package", "type": "string", - "label": "default_api_key", - "description": [ - "\nAPI key the Elastic Agent uses to authenticate with elasticsearch" - ], + "label": "package", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 246, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L246" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 13 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.updated_at", + "id": "def-common.DataStream.package_version", "type": "string", - "label": "updated_at", - "description": [ - "\nDate/time the Elastic Agent was last updated" - ], + "label": "package_version", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 250, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L250" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 14 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.packages", - "type": "Array", - "label": "packages", - "description": [ - "\nPackages array" - ], + "id": "def-common.DataStream.last_activity_ms", + "type": "number", + "label": "last_activity_ms", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 254, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L254" - }, - "signature": [ - "string[] | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 15 + } }, { "tags": [], - "id": "def-common.FleetServerAgent.action_seq_no", + "id": "def-common.DataStream.size_in_bytes", "type": "number", - "label": "action_seq_no", - "description": [ - "\nThe last acknowledged action sequence number for the Elastic Agent" - ], + "label": "size_in_bytes", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 258, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L258" + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 16 + } + }, + { + "tags": [], + "id": "def-common.DataStream.dashboards", + "type": "Array", + "label": "dashboards", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 17 }, "signature": [ - "number | undefined" + "{ id: string; title: string; }[]" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 165, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L165" + "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", + "lineNumber": 8 }, "initialIsOpen": false }, { - "id": "def-common.FleetServerAgentMetadata", + "id": "def-common.DeleteAgentPolicyRequest", "type": "Interface", - "label": "FleetServerAgentMetadata", - "description": [ - "\nAn Elastic Agent metadata" - ], + "label": "DeleteAgentPolicyRequest", + "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.FleetServerAgentMetadata.id", - "type": "string", - "label": "id", - "description": [ - "\nThe unique identifier for the Elastic Agent" - ], + "id": "def-common.DeleteAgentPolicyRequest.body", + "type": "Object", + "label": "body", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 267, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L267" - } - }, - { - "tags": [], - "id": "def-common.FleetServerAgentMetadata.version", - "type": "string", - "label": "version", - "description": [ - "\nThe version of the Elastic Agent" - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 271, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L271" - } - }, - { - "id": "def-common.FleetServerAgentMetadata.Unnamed", - "type": "Any", - "label": "Unnamed", - "tags": [], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 272, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L272" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 62 }, "signature": [ - "any" + "{ agentPolicyId: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 263, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L263" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 61 }, "initialIsOpen": false }, { - "id": "def-common.FleetServerAgentAction", + "id": "def-common.DeleteAgentPolicyResponse", "type": "Interface", - "label": "FleetServerAgentAction", - "description": [ - "\nAn Elastic Agent action" - ], + "label": "DeleteAgentPolicyResponse", + "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.FleetServerAgentAction._id", - "type": "string", - "label": "_id", - "description": [ - "\nThe unique identifier for action document" - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 282, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L282" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-common.FleetServerAgentAction._seq_no", - "type": "number", - "label": "_seq_no", - "description": [ - "\nThe action sequence number" - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 286, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L286" - }, - "signature": [ - "number | undefined" - ] - }, - { - "tags": [], - "id": "def-common.FleetServerAgentAction.action_id", + "id": "def-common.DeleteAgentPolicyResponse.id", "type": "string", - "label": "action_id", - "description": [ - "\nThe unique identifier for the Elastic Agent action. There could be multiple documents with the same action_id if the action is split into two separate documents." - ], + "label": "id", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 290, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L290" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 68 + } }, { "tags": [], - "id": "def-common.FleetServerAgentAction.'@timestamp'", + "id": "def-common.DeleteAgentPolicyResponse.name", "type": "string", - "label": "'@timestamp'", - "description": [ - "\nDate/time the action was created" - ], + "label": "name", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 294, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L294" - }, - "signature": [ - "string | undefined" - ] - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 69 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 67 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DeleteAgentRequest", + "type": "Interface", + "label": "DeleteAgentRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgentAction.expiration", - "type": "string", - "label": "expiration", - "description": [ - "\nThe action expiration date/time" - ], + "id": "def-common.DeleteAgentRequest.params", + "type": "Object", + "label": "params", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 298, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L298" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 193 }, "signature": [ - "string | undefined" + "{ agentId: string; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 192 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DeleteEnrollmentAPIKeyRequest", + "type": "Interface", + "label": "DeleteEnrollmentAPIKeyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgentAction.type", - "type": "string", - "label": "type", - "description": [ - "\nThe action type. APP_ACTION is the value for the actions that suppose to be routed to the endpoints/beats." - ], + "id": "def-common.DeleteEnrollmentAPIKeyRequest.params", + "type": "Object", + "label": "params", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 302, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L302" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 36 }, "signature": [ - "string | undefined" + "{ keyId: string; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 35 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DeleteEnrollmentAPIKeyResponse", + "type": "Interface", + "label": "DeleteEnrollmentAPIKeyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgentAction.input_id", + "id": "def-common.DeleteEnrollmentAPIKeyResponse.action", "type": "string", - "label": "input_id", - "description": [ - "\nThe input identifier the actions should be routed to." - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 306, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L306" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-common.FleetServerAgentAction.agents", - "type": "Array", - "label": "agents", - "description": [ - "\nThe Agent IDs the action is intended for. No support for json.RawMessage with the current generator. Could be useful to lazy parse the agent ids" - ], + "label": "action", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 310, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L310" - }, - "signature": [ - "string[] | undefined" - ] - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 42 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 41 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DeletePackagePoliciesRequest", + "type": "Interface", + "label": "DeletePackagePoliciesRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.FleetServerAgentAction.data", + "id": "def-common.DeletePackagePoliciesRequest.body", "type": "Object", - "label": "data", - "description": [ - "\nThe opaque payload." - ], + "label": "body", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 314, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L314" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 50 }, "signature": [ - "{ [k: string]: unknown; } | undefined" + "{ packagePolicyIds: string[]; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 49 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DeletePackageRequest", + "type": "Interface", + "label": "DeletePackageRequest", + "description": [], + "tags": [], + "children": [ { - "id": "def-common.FleetServerAgentAction.Unnamed", - "type": "Any", - "label": "Unnamed", "tags": [], + "id": "def-common.DeletePackageRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 317, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L317" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 108 }, "signature": [ - "any" + "{ pkgkey: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 278, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L278" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 107 }, "initialIsOpen": false }, { - "id": "def-common.NewAgentPolicy", + "id": "def-common.DeletePackageResponse", "type": "Interface", - "label": "NewAgentPolicy", + "label": "DeletePackageResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.NewAgentPolicy.name", - "type": "string", - "label": "name", + "id": "def-common.DeletePackageResponse.response", + "type": "Array", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L17" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 114 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AssetReference", + "text": "AssetReference" + }, + "[]" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 113 + }, + "initialIsOpen": false + }, + { + "id": "def-common.EnrollmentAPIKey", + "type": "Interface", + "label": "EnrollmentAPIKey", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.EnrollmentAPIKey.id", + "type": "string", + "label": "id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 9 } }, { "tags": [], - "id": "def-common.NewAgentPolicy.namespace", + "id": "def-common.EnrollmentAPIKey.api_key_id", "type": "string", - "label": "namespace", + "label": "api_key_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L18" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 10 } }, { "tags": [], - "id": "def-common.NewAgentPolicy.description", + "id": "def-common.EnrollmentAPIKey.api_key", "type": "string", - "label": "description", + "label": "api_key", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L19" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 11 + } }, { "tags": [], - "id": "def-common.NewAgentPolicy.is_default", - "type": "CompoundType", - "label": "is_default", + "id": "def-common.EnrollmentAPIKey.name", + "type": "string", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L20" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 12 }, "signature": [ - "boolean | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewAgentPolicy.is_default_fleet_server", - "type": "CompoundType", - "label": "is_default_fleet_server", + "id": "def-common.EnrollmentAPIKey.active", + "type": "boolean", + "label": "active", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L21" - }, - "signature": [ - "boolean | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 13 + } }, { "tags": [], - "id": "def-common.NewAgentPolicy.is_managed", - "type": "CompoundType", - "label": "is_managed", + "id": "def-common.EnrollmentAPIKey.policy_id", + "type": "string", + "label": "policy_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L22" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 14 }, "signature": [ - "boolean | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewAgentPolicy.monitoring_enabled", - "type": "Array", - "label": "monitoring_enabled", + "id": "def-common.EnrollmentAPIKey.created_at", + "type": "string", + "label": "created_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L23" - }, - "signature": [ - "(\"metrics\" | \"logs\")[] | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 15 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L16" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 8 }, "initialIsOpen": false }, { - "id": "def-common.AgentPolicy", + "id": "def-common.EpmPackageAdditions", "type": "Interface", - "label": "AgentPolicy", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - }, - " extends ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentPolicy", - "text": "NewAgentPolicy" - } - ], + "label": "EpmPackageAdditions", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.AgentPolicy.id", + "id": "def-common.EpmPackageAdditions.title", "type": "string", - "label": "id", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L27" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 257 } }, { "tags": [], - "id": "def-common.AgentPolicy.status", - "type": "CompoundType", - "label": "status", + "id": "def-common.EpmPackageAdditions.latestVersion", + "type": "string", + "label": "latestVersion", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L28" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.ValueOf", - "text": "ValueOf" - }, - "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 258 + } }, { "tags": [], - "id": "def-common.AgentPolicy.package_policies", + "id": "def-common.EpmPackageAdditions.assets", "type": "CompoundType", - "label": "package_policies", + "label": "assets", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L29" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 259 }, "signature": [ - "string[] | ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - "[]" + "section": "def-common.AssetsGroupedByServiceByType", + "text": "AssetsGroupedByServiceByType" + } ] }, { "tags": [], - "id": "def-common.AgentPolicy.is_managed", - "type": "boolean", - "label": "is_managed", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L30" - } - }, - { - "tags": [], - "id": "def-common.AgentPolicy.updated_at", - "type": "string", - "label": "updated_at", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L31" - } - }, - { - "tags": [], - "id": "def-common.AgentPolicy.updated_by", - "type": "string", - "label": "updated_by", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L32" - } - }, - { - "tags": [], - "id": "def-common.AgentPolicy.revision", - "type": "number", - "label": "revision", + "id": "def-common.EpmPackageAdditions.removable", + "type": "CompoundType", + "label": "removable", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L33" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 260 + }, + "signature": [ + "boolean | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L26" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 256 }, "initialIsOpen": false }, { - "id": "def-common.FullAgentPolicyInputStream", + "id": "def-common.FleetConfigType", "type": "Interface", - "label": "FullAgentPolicyInputStream", + "label": "FleetConfigType", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.FullAgentPolicyInputStream.id", - "type": "string", - "label": "id", + "id": "def-common.FleetConfigType.enabled", + "type": "boolean", + "label": "enabled", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L39" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 12 } }, { "tags": [], - "id": "def-common.FullAgentPolicyInputStream.data_stream", - "type": "Object", - "label": "data_stream", + "id": "def-common.FleetConfigType.registryUrl", + "type": "string", + "label": "registryUrl", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L40" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 13 }, "signature": [ - "{ dataset: string; type: string; }" + "string | undefined" ] }, { - "id": "def-common.FullAgentPolicyInputStream.Unnamed", - "type": "Any", - "label": "Unnamed", "tags": [], + "id": "def-common.FleetConfigType.registryProxyUrl", + "type": "string", + "label": "registryProxyUrl", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L44" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 14 }, "signature": [ - "any" + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.FleetConfigType.agents", + "type": "Object", + "label": "agents", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 15 + }, + "signature": [ + "{ enabled: boolean; tlsCheckDisabled: boolean; pollingRequestTimeout: number; maxConcurrentConnections: number; kibana: { host?: string | string[] | undefined; ca_sha256?: string | undefined; }; elasticsearch: { host?: string | undefined; ca_sha256?: string | undefined; }; agentPolicyRolloutRateLimitIntervalMs: number; agentPolicyRolloutRateLimitRequestPerInterval: number; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L38" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 11 }, "initialIsOpen": false }, { - "id": "def-common.FullAgentPolicyInput", + "id": "def-common.FleetServerAgent", "type": "Interface", - "label": "FullAgentPolicyInput", - "description": [], + "label": "FleetServerAgent", + "description": [ + "\nAn Elastic Agent that has enrolled into Fleet" + ], "tags": [], "children": [ { "tags": [], - "id": "def-common.FullAgentPolicyInput.id", - "type": "string", - "label": "id", - "description": [], + "id": "def-common.FleetServerAgent._version", + "type": "number", + "label": "_version", + "description": [ + "\nThe version of the document in the index" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L48" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 169 + }, + "signature": [ + "number | undefined" + ] }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.name", + "id": "def-common.FleetServerAgent.shared_id", "type": "string", - "label": "name", - "description": [], + "label": "shared_id", + "description": [ + "\nShared ID" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L49" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 173 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.revision", - "type": "number", - "label": "revision", - "description": [], + "id": "def-common.FleetServerAgent.type", + "type": "CompoundType", + "label": "type", + "description": [ + "\nType" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L50" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 177 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentType", + "text": "AgentType" + } + ] + }, + { + "tags": [], + "id": "def-common.FleetServerAgent.active", + "type": "boolean", + "label": "active", + "description": [ + "\nActive flag" + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 181 } }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.type", + "id": "def-common.FleetServerAgent.enrolled_at", "type": "string", - "label": "type", - "description": [], + "label": "enrolled_at", + "description": [ + "\nDate/time the Elastic Agent enrolled" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 51, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L51" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 185 } }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.data_stream", - "type": "Object", - "label": "data_stream", - "description": [], + "id": "def-common.FleetServerAgent.unenrolled_at", + "type": "string", + "label": "unenrolled_at", + "description": [ + "\nDate/time the Elastic Agent unenrolled" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 52, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L52" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 189 }, "signature": [ - "{ namespace: string; }" + "string | undefined" ] }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.use_output", + "id": "def-common.FleetServerAgent.unenrollment_started_at", "type": "string", - "label": "use_output", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L53" - } - }, - { - "tags": [], - "id": "def-common.FullAgentPolicyInput.meta", - "type": "Object", - "label": "meta", - "description": [], + "label": "unenrollment_started_at", + "description": [ + "\nDate/time the Elastic Agent unenrolled started" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L54" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 193 }, "signature": [ - "{ [key: string]: unknown; package?: Pick<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyPackage", - "text": "PackagePolicyPackage" - }, - ", \"name\" | \"version\"> | undefined; } | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.FullAgentPolicyInput.streams", - "type": "Array", - "label": "streams", - "description": [], + "id": "def-common.FleetServerAgent.upgraded_at", + "type": "CompoundType", + "label": "upgraded_at", + "description": [ + "\nDate/time the Elastic Agent was last upgraded" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L58" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 197 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicyInputStream", - "text": "FullAgentPolicyInputStream" - }, - "[] | undefined" + "string | null | undefined" ] }, { - "id": "def-common.FullAgentPolicyInput.Unnamed", - "type": "Any", - "label": "Unnamed", "tags": [], - "description": [], + "id": "def-common.FleetServerAgent.upgrade_started_at", + "type": "CompoundType", + "label": "upgrade_started_at", + "description": [ + "\nDate/time the Elastic Agent started the current upgrade" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 59, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L59" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 201 }, "signature": [ - "any" + "string | null | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L47" - }, - "initialIsOpen": false - }, - { - "id": "def-common.FullAgentPolicy", - "type": "Interface", - "label": "FullAgentPolicy", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.FullAgentPolicy.id", + "id": "def-common.FleetServerAgent.access_api_key_id", "type": "string", - "label": "id", - "description": [], + "label": "access_api_key_id", + "description": [ + "\nID of the API key the Elastic Agent must used to contact Fleet Server" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 63, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L63" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 205 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FullAgentPolicy.outputs", + "id": "def-common.FleetServerAgent.agent", "type": "Object", - "label": "outputs", + "label": "agent", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L64" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 206 }, "signature": [ - "{ [key: string]: Pick<", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Output", - "text": "Output" + "section": "def-common.FleetServerAgentMetadata", + "text": "FleetServerAgentMetadata" }, - ", \"type\" | \"hosts\" | \"ca_sha256\" | \"api_key\"> & { [key: string]: any; }; }" + " | undefined" ] }, { "tags": [], - "id": "def-common.FullAgentPolicy.fleet", + "id": "def-common.FleetServerAgent.user_provided_metadata", "type": "Object", - "label": "fleet", - "description": [], + "label": "user_provided_metadata", + "description": [ + "\nUser provided metadata information for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L69" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 210 }, "signature": [ - "{ kibana: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicyKibanaConfig", - "text": "FullAgentPolicyKibanaConfig" - }, - "; } | undefined" + "section": "def-common.AgentMetadata", + "text": "AgentMetadata" + } ] }, { "tags": [], - "id": "def-common.FullAgentPolicy.inputs", - "type": "Array", - "label": "inputs", - "description": [], + "id": "def-common.FleetServerAgent.local_metadata", + "type": "Object", + "label": "local_metadata", + "description": [ + "\nLocal metadata information for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 72, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L72" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 214 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicyInput", - "text": "FullAgentPolicyInput" - }, - "[]" + "section": "def-common.AgentMetadata", + "text": "AgentMetadata" + } ] }, { "tags": [], - "id": "def-common.FullAgentPolicy.revision", - "type": "number", - "label": "revision", - "description": [], + "id": "def-common.FleetServerAgent.policy_id", + "type": "string", + "label": "policy_id", + "description": [ + "\nThe policy ID for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L73" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 218 }, "signature": [ - "number | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.FullAgentPolicy.agent", - "type": "Object", - "label": "agent", - "description": [], + "id": "def-common.FleetServerAgent.policy_revision_idx", + "type": "CompoundType", + "label": "policy_revision_idx", + "description": [ + "\nThe current policy revision_idx for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 74, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L74" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 222 }, "signature": [ - "{ monitoring: { use_output?: string | undefined; enabled: boolean; metrics: boolean; logs: boolean; }; } | undefined" + "number | null | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L62" - }, - "initialIsOpen": false - }, - { - "id": "def-common.FullAgentPolicyKibanaConfig", - "type": "Interface", - "label": "FullAgentPolicyKibanaConfig", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.FullAgentPolicyKibanaConfig.hosts", - "type": "Array", - "label": "hosts", - "description": [], + "id": "def-common.FleetServerAgent.policy_coordinator_idx", + "type": "number", + "label": "policy_coordinator_idx", + "description": [ + "\nThe current policy coordinator for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 85, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L85" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 226 }, "signature": [ - "string[]" + "number | undefined" ] }, { "tags": [], - "id": "def-common.FullAgentPolicyKibanaConfig.protocol", + "id": "def-common.FleetServerAgent.last_updated", "type": "string", - "label": "protocol", - "description": [], + "label": "last_updated", + "description": [ + "\nDate/time the Elastic Agent was last updated" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 86, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L86" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 230 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FullAgentPolicyKibanaConfig.path", + "id": "def-common.FleetServerAgent.last_checkin", "type": "string", - "label": "path", - "description": [], + "label": "last_checkin", + "description": [ + "\nDate/time the Elastic Agent checked in last time" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L87" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 234 }, "signature": [ "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L84" - }, - "initialIsOpen": false - }, - { - "id": "def-common.FleetServerPolicy", - "type": "Interface", - "label": "FleetServerPolicy", - "description": [ - "\nA policy that an Elastic Agent is attached to" - ], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.FleetServerPolicy.'@timestamp'", - "type": "string", - "label": "'@timestamp'", + "id": "def-common.FleetServerAgent.last_checkin_status", + "type": "CompoundType", + "label": "last_checkin_status", "description": [ - "\nDate/time the policy revision was created" + "\nLst checkin status" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 99, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L99" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 238 }, "signature": [ - "string | undefined" + "\"online\" | \"error\" | \"updating\" | \"degraded\" | undefined" ] }, { "tags": [], - "id": "def-common.FleetServerPolicy.policy_id", + "id": "def-common.FleetServerAgent.default_api_key_id", "type": "string", - "label": "policy_id", + "label": "default_api_key_id", "description": [ - "\nThe ID of the policy" + "\nID of the API key the Elastic Agent uses to authenticate with elasticsearch" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 103, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L103" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 242 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FleetServerPolicy.revision_idx", - "type": "number", - "label": "revision_idx", + "id": "def-common.FleetServerAgent.default_api_key", + "type": "string", + "label": "default_api_key", "description": [ - "\nThe revision index of the policy" + "\nAPI key the Elastic Agent uses to authenticate with elasticsearch" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L107" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 246 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FleetServerPolicy.coordinator_idx", - "type": "number", - "label": "coordinator_idx", + "id": "def-common.FleetServerAgent.updated_at", + "type": "string", + "label": "updated_at", "description": [ - "\nThe coordinator index of the policy" + "\nDate/time the Elastic Agent was last updated" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 111, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L111" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 250 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.FleetServerPolicy.data", - "type": "Object", - "label": "data", + "id": "def-common.FleetServerAgent.packages", + "type": "Array", + "label": "packages", "description": [ - "\nThe opaque payload." + "\nPackages array" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L115" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 254 }, "signature": [ - "{ [k: string]: unknown; }" + "string[] | undefined" ] }, { "tags": [], - "id": "def-common.FleetServerPolicy.default_fleet_server", - "type": "boolean", - "label": "default_fleet_server", + "id": "def-common.FleetServerAgent.action_seq_no", + "type": "number", + "label": "action_seq_no", "description": [ - "\nTrue when this policy is the default policy to start Fleet Server" + "\nThe last acknowledged action sequence number for the Elastic Agent" ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 121, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L121" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 258 + }, + "signature": [ + "number | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L95" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 165 }, "initialIsOpen": false }, { - "id": "def-common.PackagePolicyPackage", + "id": "def-common.FleetServerAgentAction", "type": "Interface", - "label": "PackagePolicyPackage", - "description": [], + "label": "FleetServerAgentAction", + "description": [ + "\nAn Elastic Agent action" + ], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackagePolicyPackage.name", + "id": "def-common.FleetServerAgentAction._id", "type": "string", - "label": "name", - "description": [], + "label": "_id", + "description": [ + "\nThe unique identifier for action document" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L9" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 282 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.PackagePolicyPackage.title", - "type": "string", - "label": "title", - "description": [], + "id": "def-common.FleetServerAgentAction._seq_no", + "type": "number", + "label": "_seq_no", + "description": [ + "\nThe action sequence number" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L10" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 286 + }, + "signature": [ + "number | undefined" + ] }, { "tags": [], - "id": "def-common.PackagePolicyPackage.version", - "type": "string", - "label": "version", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L11" - } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L8" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PackagePolicyConfigRecordEntry", - "type": "Interface", - "label": "PackagePolicyConfigRecordEntry", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PackagePolicyConfigRecordEntry.type", + "id": "def-common.FleetServerAgentAction.action_id", "type": "string", - "label": "type", - "description": [], + "label": "action_id", + "description": [ + "\nThe unique identifier for the Elastic Agent action. There could be multiple documents with the same action_id if the action is split into two separate documents." + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L15" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 290 }, "signature": [ "string | undefined" @@ -5839,161 +5641,165 @@ }, { "tags": [], - "id": "def-common.PackagePolicyConfigRecordEntry.value", - "type": "Any", - "label": "value", - "description": [], + "id": "def-common.FleetServerAgentAction.'@timestamp'", + "type": "string", + "label": "'@timestamp'", + "description": [ + "\nDate/time the action was created" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L16" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 294 }, "signature": [ - "any" + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L14" - }, - "initialIsOpen": false - }, - { - "id": "def-common.NewPackagePolicyInputStream", - "type": "Interface", - "label": "NewPackagePolicyInputStream", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.NewPackagePolicyInputStream.enabled", - "type": "boolean", - "label": "enabled", - "description": [], + "id": "def-common.FleetServerAgentAction.expiration", + "type": "string", + "label": "expiration", + "description": [ + "\nThe action expiration date/time" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L22" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 298 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.NewPackagePolicyInputStream.data_stream", - "type": "Object", - "label": "data_stream", - "description": [], + "id": "def-common.FleetServerAgentAction.type", + "type": "string", + "label": "type", + "description": [ + "\nThe action type. APP_ACTION is the value for the actions that suppose to be routed to the endpoints/beats." + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L23" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 302 }, "signature": [ - "{ dataset: string; type: string; }" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewPackagePolicyInputStream.vars", - "type": "Object", - "label": "vars", - "description": [], + "id": "def-common.FleetServerAgentAction.input_id", + "type": "string", + "label": "input_id", + "description": [ + "\nThe input identifier the actions should be routed to." + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L27" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 306 }, "signature": [ - "Record | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewPackagePolicyInputStream.config", + "id": "def-common.FleetServerAgentAction.agents", + "type": "Array", + "label": "agents", + "description": [ + "\nThe Agent IDs the action is intended for. No support for json.RawMessage with the current generator. Could be useful to lazy parse the agent ids" + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 310 + }, + "signature": [ + "string[] | undefined" + ] + }, + { + "tags": [], + "id": "def-common.FleetServerAgentAction.data", "type": "Object", - "label": "config", + "label": "data", + "description": [ + "\nThe opaque payload." + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 314 + }, + "signature": [ + "{ [k: string]: unknown; } | undefined" + ] + }, + { + "id": "def-common.FleetServerAgentAction.Unnamed", + "type": "Any", + "label": "Unnamed", + "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L28" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 317 }, "signature": [ - "Record | undefined" + "any" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L21" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 278 }, "initialIsOpen": false }, { - "id": "def-common.PackagePolicyInputStream", + "id": "def-common.FleetServerAgentMetadata", "type": "Interface", - "label": "PackagePolicyInputStream", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyInputStream", - "text": "PackagePolicyInputStream" - }, - " extends ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInputStream", - "text": "NewPackagePolicyInputStream" - } + "label": "FleetServerAgentMetadata", + "description": [ + "\nAn Elastic Agent metadata" ], - "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackagePolicyInputStream.id", + "id": "def-common.FleetServerAgentMetadata.id", "type": "string", "label": "id", - "description": [], + "description": [ + "\nThe unique identifier for the Elastic Agent" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L32" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 267 } }, { "tags": [], - "id": "def-common.PackagePolicyInputStream.compiled_stream", + "id": "def-common.FleetServerAgentMetadata.version", + "type": "string", + "label": "version", + "description": [ + "\nThe version of the Elastic Agent" + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 271 + } + }, + { + "id": "def-common.FleetServerAgentMetadata.Unnamed", "type": "Any", - "label": "compiled_stream", + "label": "Unnamed", + "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L33" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 272 }, "signature": [ "any" @@ -6001,218 +5807,161 @@ } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L31" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 263 }, "initialIsOpen": false }, { - "id": "def-common.NewPackagePolicyInput", + "id": "def-common.FleetServerEnrollmentAPIKey", "type": "Interface", - "label": "NewPackagePolicyInput", - "description": [], + "label": "FleetServerEnrollmentAPIKey", + "description": [ + "\nAn Elastic Agent enrollment API key" + ], "tags": [], "children": [ { "tags": [], - "id": "def-common.NewPackagePolicyInput.type", + "id": "def-common.FleetServerEnrollmentAPIKey.active", + "type": "CompoundType", + "label": "active", + "description": [ + "\nTrue when the key is active" + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 29 + }, + "signature": [ + "boolean | undefined" + ] + }, + { + "tags": [], + "id": "def-common.FleetServerEnrollmentAPIKey.api_key_id", "type": "string", - "label": "type", - "description": [], + "label": "api_key_id", + "description": [ + "\nThe unique identifier for the enrollment key, currently xid" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L37" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 33 } }, { "tags": [], - "id": "def-common.NewPackagePolicyInput.enabled", - "type": "boolean", - "label": "enabled", - "description": [], + "id": "def-common.FleetServerEnrollmentAPIKey.api_key", + "type": "string", + "label": "api_key", + "description": [ + "\nApi key" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L38" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 37 } }, { "tags": [], - "id": "def-common.NewPackagePolicyInput.vars", - "type": "Object", - "label": "vars", - "description": [], + "id": "def-common.FleetServerEnrollmentAPIKey.name", + "type": "string", + "label": "name", + "description": [ + "\nEnrollment key name" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L39" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 41 }, "signature": [ - "Record | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewPackagePolicyInput.config", - "type": "Object", - "label": "config", + "id": "def-common.FleetServerEnrollmentAPIKey.policy_id", + "type": "string", + "label": "policy_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L40" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 42 }, "signature": [ - "Record | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.NewPackagePolicyInput.streams", - "type": "Array", - "label": "streams", - "description": [], + "id": "def-common.FleetServerEnrollmentAPIKey.expire_at", + "type": "string", + "label": "expire_at", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L41" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 43 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInputStream", - "text": "NewPackagePolicyInputStream" - }, - "[]" + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L36" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PackagePolicyInput", - "type": "Interface", - "label": "PackagePolicyInput", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyInput", - "text": "PackagePolicyInput" - }, - " extends Pick<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInput", - "text": "NewPackagePolicyInput" }, - ", \"type\" | \"enabled\" | \"config\" | \"vars\">" - ], - "description": [], - "tags": [], - "children": [ { "tags": [], - "id": "def-common.PackagePolicyInput.streams", - "type": "Array", - "label": "streams", + "id": "def-common.FleetServerEnrollmentAPIKey.created_at", + "type": "string", + "label": "created_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L45" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 44 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyInputStream", - "text": "PackagePolicyInputStream" - }, - "[]" + "string | undefined" ] }, { "tags": [], - "id": "def-common.PackagePolicyInput.compiled_input", - "type": "Any", - "label": "compiled_input", + "id": "def-common.FleetServerEnrollmentAPIKey.updated_at", + "type": "string", + "label": "updated_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L46" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 45 }, "signature": [ - "any" + "string | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L44" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 25 }, "initialIsOpen": false }, { - "id": "def-common.NewPackagePolicy", + "id": "def-common.FleetServerPolicy", "type": "Interface", - "label": "NewPackagePolicy", - "description": [], + "label": "FleetServerPolicy", + "description": [ + "\nA policy that an Elastic Agent is attached to" + ], "tags": [], "children": [ { "tags": [], - "id": "def-common.NewPackagePolicy.name", - "type": "string", - "label": "name", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L50" - } - }, - { - "tags": [], - "id": "def-common.NewPackagePolicy.description", + "id": "def-common.FleetServerPolicy.'@timestamp'", "type": "string", - "label": "description", - "description": [], + "label": "'@timestamp'", + "description": [ + "\nDate/time the policy revision was created" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 51, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L51" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 99 }, "signature": [ "string | undefined" @@ -6220,1842 +5969,1919 @@ }, { "tags": [], - "id": "def-common.NewPackagePolicy.namespace", + "id": "def-common.FleetServerPolicy.policy_id", "type": "string", - "label": "namespace", - "description": [], + "label": "policy_id", + "description": [ + "\nThe ID of the policy" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 52, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L52" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 103 } }, { "tags": [], - "id": "def-common.NewPackagePolicy.enabled", - "type": "boolean", - "label": "enabled", - "description": [], + "id": "def-common.FleetServerPolicy.revision_idx", + "type": "number", + "label": "revision_idx", + "description": [ + "\nThe revision index of the policy" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L53" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 107 } }, { "tags": [], - "id": "def-common.NewPackagePolicy.policy_id", - "type": "string", - "label": "policy_id", - "description": [], + "id": "def-common.FleetServerPolicy.coordinator_idx", + "type": "number", + "label": "coordinator_idx", + "description": [ + "\nThe coordinator index of the policy" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L54" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 111 } }, { "tags": [], - "id": "def-common.NewPackagePolicy.output_id", + "id": "def-common.FleetServerPolicy.data", + "type": "Object", + "label": "data", + "description": [ + "\nThe opaque payload." + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 115 + }, + "signature": [ + "{ [k: string]: unknown; }" + ] + }, + { + "tags": [], + "id": "def-common.FleetServerPolicy.default_fleet_server", + "type": "boolean", + "label": "default_fleet_server", + "description": [ + "\nTrue when this policy is the default policy to start Fleet Server" + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 121 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 95 + }, + "initialIsOpen": false + }, + { + "id": "def-common.FullAgentPolicy", + "type": "Interface", + "label": "FullAgentPolicy", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.FullAgentPolicy.id", "type": "string", - "label": "output_id", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L55" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 63 } }, { "tags": [], - "id": "def-common.NewPackagePolicy.package", + "id": "def-common.FullAgentPolicy.outputs", "type": "Object", - "label": "package", + "label": "outputs", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L56" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 64 }, "signature": [ + "{ [key: string]: Pick<", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyPackage", - "text": "PackagePolicyPackage" + "section": "def-common.Output", + "text": "Output" }, - " | undefined" + ", \"type\" | \"hosts\" | \"ca_sha256\" | \"api_key\"> & { [key: string]: any; }; }" ] }, { "tags": [], - "id": "def-common.NewPackagePolicy.inputs", + "id": "def-common.FullAgentPolicy.fleet", + "type": "Object", + "label": "fleet", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 69 + }, + "signature": [ + "{ kibana: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.FullAgentPolicyKibanaConfig", + "text": "FullAgentPolicyKibanaConfig" + }, + "; } | undefined" + ] + }, + { + "tags": [], + "id": "def-common.FullAgentPolicy.inputs", "type": "Array", "label": "inputs", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L57" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 72 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicyInput", - "text": "NewPackagePolicyInput" + "section": "def-common.FullAgentPolicyInput", + "text": "FullAgentPolicyInput" }, "[]" ] + }, + { + "tags": [], + "id": "def-common.FullAgentPolicy.revision", + "type": "number", + "label": "revision", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 73 + }, + "signature": [ + "number | undefined" + ] + }, + { + "tags": [], + "id": "def-common.FullAgentPolicy.agent", + "type": "Object", + "label": "agent", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 74 + }, + "signature": [ + "{ monitoring: { use_output?: string | undefined; enabled: boolean; metrics: boolean; logs: boolean; }; } | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L49" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 62 }, "initialIsOpen": false }, { - "id": "def-common.UpdatePackagePolicy", + "id": "def-common.FullAgentPolicyInput", "type": "Interface", - "label": "UpdatePackagePolicy", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.UpdatePackagePolicy", - "text": "UpdatePackagePolicy" - }, - " extends ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicy", - "text": "NewPackagePolicy" - } - ], + "label": "FullAgentPolicyInput", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.UpdatePackagePolicy.version", + "id": "def-common.FullAgentPolicyInput.id", "type": "string", - "label": "version", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 61, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L61" - }, - "signature": [ - "string | undefined" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L60" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PackagePolicy", - "type": "Interface", - "label": "PackagePolicy", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - " extends Pick<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewPackagePolicy", - "text": "NewPackagePolicy" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 48 + } }, - ", \"enabled\" | \"description\" | \"name\" | \"package\" | \"namespace\" | \"policy_id\" | \"output_id\">" - ], - "description": [], - "tags": [], - "children": [ { "tags": [], - "id": "def-common.PackagePolicy.id", + "id": "def-common.FullAgentPolicyInput.name", "type": "string", - "label": "id", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 65, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L65" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 49 } }, { "tags": [], - "id": "def-common.PackagePolicy.inputs", - "type": "Array", - "label": "inputs", + "id": "def-common.FullAgentPolicyInput.revision", + "type": "number", + "label": "revision", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 66, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L66" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicyInput", - "text": "PackagePolicyInput" - }, - "[]" - ] + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 50 + } }, { "tags": [], - "id": "def-common.PackagePolicy.version", + "id": "def-common.FullAgentPolicyInput.type", "type": "string", - "label": "version", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L67" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 51 + } }, { "tags": [], - "id": "def-common.PackagePolicy.revision", - "type": "number", - "label": "revision", + "id": "def-common.FullAgentPolicyInput.data_stream", + "type": "Object", + "label": "data_stream", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 68, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L68" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 52 + }, + "signature": [ + "{ namespace: string; }" + ] }, { "tags": [], - "id": "def-common.PackagePolicy.updated_at", + "id": "def-common.FullAgentPolicyInput.use_output", "type": "string", - "label": "updated_at", + "label": "use_output", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L69" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 53 } }, { "tags": [], - "id": "def-common.PackagePolicy.updated_by", - "type": "string", - "label": "updated_by", + "id": "def-common.FullAgentPolicyInput.meta", + "type": "Object", + "label": "meta", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 70, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L70" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 54 + }, + "signature": [ + "{ [key: string]: unknown; package?: Pick<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicyPackage", + "text": "PackagePolicyPackage" + }, + ", \"name\" | \"version\"> | undefined; } | undefined" + ] }, { "tags": [], - "id": "def-common.PackagePolicy.created_at", - "type": "string", - "label": "created_at", + "id": "def-common.FullAgentPolicyInput.streams", + "type": "Array", + "label": "streams", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 71, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L71" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 58 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.FullAgentPolicyInputStream", + "text": "FullAgentPolicyInputStream" + }, + "[] | undefined" + ] }, { + "id": "def-common.FullAgentPolicyInput.Unnamed", + "type": "Any", + "label": "Unnamed", "tags": [], - "id": "def-common.PackagePolicy.created_by", - "type": "string", - "label": "created_by", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 72, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L72" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 59 + }, + "signature": [ + "any" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L64" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 47 }, "initialIsOpen": false }, { - "id": "def-common.DataStream", + "id": "def-common.FullAgentPolicyInputStream", "type": "Interface", - "label": "DataStream", + "label": "FullAgentPolicyInputStream", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.DataStream.index", + "id": "def-common.FullAgentPolicyInputStream.id", "type": "string", - "label": "index", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L9" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 39 } }, { "tags": [], - "id": "def-common.DataStream.dataset", - "type": "string", - "label": "dataset", + "id": "def-common.FullAgentPolicyInputStream.data_stream", + "type": "Object", + "label": "data_stream", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L10" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 40 + }, + "signature": [ + "{ dataset: string; type: string; }" + ] }, { + "id": "def-common.FullAgentPolicyInputStream.Unnamed", + "type": "Any", + "label": "Unnamed", "tags": [], - "id": "def-common.DataStream.namespace", - "type": "string", - "label": "namespace", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L11" - } - }, + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 44 + }, + "signature": [ + "any" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 38 + }, + "initialIsOpen": false + }, + { + "id": "def-common.FullAgentPolicyKibanaConfig", + "type": "Interface", + "label": "FullAgentPolicyKibanaConfig", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.DataStream.type", - "type": "string", - "label": "type", + "id": "def-common.FullAgentPolicyKibanaConfig.hosts", + "type": "Array", + "label": "hosts", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L12" - } + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 85 + }, + "signature": [ + "string[]" + ] }, { "tags": [], - "id": "def-common.DataStream.package", + "id": "def-common.FullAgentPolicyKibanaConfig.protocol", "type": "string", - "label": "package", + "label": "protocol", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 86 } }, { "tags": [], - "id": "def-common.DataStream.package_version", + "id": "def-common.FullAgentPolicyKibanaConfig.path", "type": "string", - "label": "package_version", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L14" - } - }, - { - "tags": [], - "id": "def-common.DataStream.last_activity_ms", - "type": "number", - "label": "last_activity_ms", + "label": "path", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L15" - } - }, - { - "tags": [], - "id": "def-common.DataStream.size_in_bytes", - "type": "number", - "label": "size_in_bytes", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L16" - } - }, + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 87 + }, + "signature": [ + "string | undefined" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 84 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetAgentPoliciesRequest", + "type": "Interface", + "label": "GetAgentPoliciesRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.DataStream.dashboards", - "type": "Array", - "label": "dashboards", + "id": "def-common.GetAgentPoliciesRequest.query", + "type": "CompoundType", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L17" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 13 }, "signature": [ - "{ id: string; title: string; }[]" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.ListWithKuery", + "text": "ListWithKuery" + }, + " & { full?: boolean | undefined; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/data_stream.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/data_stream.ts#L8" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 12 }, "initialIsOpen": false }, { - "id": "def-common.NewOutput", + "id": "def-common.GetAgentPoliciesResponse", "type": "Interface", - "label": "NewOutput", + "label": "GetAgentPoliciesResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.NewOutput.is_default", - "type": "boolean", - "label": "is_default", + "id": "def-common.GetAgentPoliciesResponse.items", + "type": "Array", + "label": "items", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L14" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 21 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.GetAgentPoliciesResponseItem", + "text": "GetAgentPoliciesResponseItem" + }, + "[]" + ] }, { "tags": [], - "id": "def-common.NewOutput.name", - "type": "string", - "label": "name", + "id": "def-common.GetAgentPoliciesResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L15" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 22 } }, { "tags": [], - "id": "def-common.NewOutput.type", - "type": "string", - "label": "type", + "id": "def-common.GetAgentPoliciesResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L16" - }, - "signature": [ - "\"elasticsearch\"" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 23 + } }, { "tags": [], - "id": "def-common.NewOutput.hosts", - "type": "Array", - "label": "hosts", + "id": "def-common.GetAgentPoliciesResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L17" - }, - "signature": [ - "string[] | undefined" - ] - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 24 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 20 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetAgentsRequest", + "type": "Interface", + "label": "GetAgentsRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.NewOutput.ca_sha256", - "type": "string", - "label": "ca_sha256", + "id": "def-common.GetAgentsRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L18" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 19 }, "signature": [ - "string | undefined" + "{ page: number; perPage: number; kuery?: string | undefined; showInactive: boolean; showUpgradeable?: boolean | undefined; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 18 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetAgentsResponse", + "type": "Interface", + "label": "GetAgentsResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.NewOutput.api_key", - "type": "string", - "label": "api_key", + "id": "def-common.GetAgentsResponse.list", + "type": "Array", + "label": "list", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L19" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 29 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Agent", + "text": "Agent" + }, + "[]" ] }, { "tags": [], - "id": "def-common.NewOutput.fleet_enroll_username", - "type": "string", - "label": "fleet_enroll_username", + "id": "def-common.GetAgentsResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L20" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 30 + } }, { "tags": [], - "id": "def-common.NewOutput.fleet_enroll_password", - "type": "string", - "label": "fleet_enroll_password", + "id": "def-common.GetAgentsResponse.totalInactive", + "type": "number", + "label": "totalInactive", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L21" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 31 + } }, { "tags": [], - "id": "def-common.NewOutput.config", - "type": "Object", - "label": "config", + "id": "def-common.GetAgentsResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L22" - }, - "signature": [ - "Record | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 32 + } }, { "tags": [], - "id": "def-common.NewOutput.config_yaml", - "type": "string", - "label": "config_yaml", + "id": "def-common.GetAgentsResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L23" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 33 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L13" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 28 }, "initialIsOpen": false }, { - "id": "def-common.RegistryImage", + "id": "def-common.GetAgentStatusRequest", "type": "Interface", - "label": "RegistryImage", + "label": "GetAgentStatusRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryImage.src", - "type": "string", - "label": "src", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 113, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L113" - } - }, - { - "tags": [], - "id": "def-common.RegistryImage.path", - "type": "string", - "label": "path", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 114, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L114" - } - }, - { - "tags": [], - "id": "def-common.RegistryImage.title", - "type": "string", - "label": "title", + "id": "def-common.GetAgentStatusRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L115" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 208 }, "signature": [ - "string | undefined" + "{ kuery?: string | undefined; policyId?: string | undefined; }" ] - }, - { + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 207 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetAgentStatusResponse", + "type": "Interface", + "label": "GetAgentStatusResponse", + "description": [], + "tags": [], + "children": [ + { "tags": [], - "id": "def-common.RegistryImage.size", - "type": "string", - "label": "size", + "id": "def-common.GetAgentStatusResponse.results", + "type": "Object", + "label": "results", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L116" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 215 }, "signature": [ - "string | undefined" + "{ events: number; total: number; online: number; error: number; offline: number; other: number; updating: number; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 214 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetCategoriesRequest", + "type": "Interface", + "label": "GetCategoriesRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryImage.type", - "type": "string", - "label": "type", + "id": "def-common.GetCategoriesRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 117, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L117" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 18 }, "signature": [ - "string | undefined" + "{ experimental?: boolean | undefined; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 112, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L112" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 17 }, "initialIsOpen": false }, { - "id": "def-common.RegistryPolicyTemplate", + "id": "def-common.GetCategoriesResponse", "type": "Interface", - "label": "RegistryPolicyTemplate", + "label": "GetCategoriesResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryPolicyTemplate.name", - "type": "string", - "label": "name", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 121, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L121" - } - }, - { - "tags": [], - "id": "def-common.RegistryPolicyTemplate.title", - "type": "string", - "label": "title", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 122, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L122" - } - }, - { - "tags": [], - "id": "def-common.RegistryPolicyTemplate.description", - "type": "string", - "label": "description", + "id": "def-common.GetCategoriesResponse.response", + "type": "Array", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 123, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L123" - } - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 24 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.CategorySummaryList", + "text": "CategorySummaryList" + } + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 23 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetDataStreamsResponse", + "type": "Interface", + "label": "GetDataStreamsResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryPolicyTemplate.inputs", + "id": "def-common.GetDataStreamsResponse.data_streams", "type": "Array", - "label": "inputs", + "label": "data_streams", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 124, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L124" + "path": "x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts", + "lineNumber": 11 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryInput", - "text": "RegistryInput" + "section": "def-common.DataStream", + "text": "DataStream" }, - "[] | undefined" + "[]" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts", + "lineNumber": 10 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetEnrollmentAPIKeysRequest", + "type": "Interface", + "label": "GetEnrollmentAPIKeysRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryPolicyTemplate.multiple", - "type": "CompoundType", - "label": "multiple", + "id": "def-common.GetEnrollmentAPIKeysRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 125, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L125" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 11 }, "signature": [ - "boolean | undefined" + "{ page: number; perPage: number; kuery?: string | undefined; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 120, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L120" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 10 }, "initialIsOpen": false }, { - "id": "def-common.RegistryInput", + "id": "def-common.GetEnrollmentAPIKeysResponse", "type": "Interface", - "label": "RegistryInput", + "label": "GetEnrollmentAPIKeysResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryInput.type", - "type": "string", - "label": "type", + "id": "def-common.GetEnrollmentAPIKeysResponse.list", + "type": "Array", + "label": "list", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 128, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L128" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 19 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EnrollmentAPIKey", + "text": "EnrollmentAPIKey" + }, + "[]" + ] }, { "tags": [], - "id": "def-common.RegistryInput.title", - "type": "string", - "label": "title", + "id": "def-common.GetEnrollmentAPIKeysResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 129, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L129" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 20 } }, { "tags": [], - "id": "def-common.RegistryInput.description", - "type": "string", - "label": "description", + "id": "def-common.GetEnrollmentAPIKeysResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 130, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L130" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 21 } }, { "tags": [], - "id": "def-common.RegistryInput.template_path", - "type": "string", - "label": "template_path", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 131, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L131" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-common.RegistryInput.condition", - "type": "string", - "label": "condition", + "id": "def-common.GetEnrollmentAPIKeysResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 132, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L132" - }, - "signature": [ - "string | undefined" - ] - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 22 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 18 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetFileRequest", + "type": "Interface", + "label": "GetFileRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryInput.vars", - "type": "Array", - "label": "vars", + "id": "def-common.GetFileRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 133, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L133" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 43 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.RegistryVarsEntry", - "text": "RegistryVarsEntry" - }, - "[] | undefined" + "{ pkgkey: string; filePath: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 127, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L127" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 42 }, "initialIsOpen": false }, { - "id": "def-common.RegistryStream", + "id": "def-common.GetFleetStatusResponse", "type": "Interface", - "label": "RegistryStream", + "label": "GetFleetStatusResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryStream.input", - "type": "string", - "label": "input", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 136, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L136" - } - }, - { - "tags": [], - "id": "def-common.RegistryStream.title", - "type": "string", - "label": "title", + "id": "def-common.GetFleetStatusResponse.isReady", + "type": "boolean", + "label": "isReady", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 137, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L137" + "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", + "lineNumber": 13 } }, { "tags": [], - "id": "def-common.RegistryStream.description", - "type": "string", - "label": "description", + "id": "def-common.GetFleetStatusResponse.missing_requirements", + "type": "Array", + "label": "missing_requirements", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 138, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L138" + "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", + "lineNumber": 14 }, "signature": [ - "string | undefined" + "(\"tls_required\" | \"api_keys\" | \"fleet_admin_user\" | \"encrypted_saved_object_encryption_key_required\")[]" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", + "lineNumber": 12 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetFullAgentPolicyRequest", + "type": "Interface", + "label": "GetFullAgentPolicyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryStream.enabled", - "type": "CompoundType", - "label": "enabled", + "id": "def-common.GetFullAgentPolicyRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 139, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L139" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 73 }, "signature": [ - "boolean | undefined" + "{ agentPolicyId: string; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 72 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetFullAgentPolicyResponse", + "type": "Interface", + "label": "GetFullAgentPolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryStream.vars", - "type": "Array", - "label": "vars", + "id": "def-common.GetFullAgentPolicyResponse.item", + "type": "Object", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 140, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L140" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 79 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryVarsEntry", - "text": "RegistryVarsEntry" - }, - "[] | undefined" + "section": "def-common.FullAgentPolicy", + "text": "FullAgentPolicy" + } ] - }, - { - "tags": [], - "id": "def-common.RegistryStream.template_path", - "type": "string", - "label": "template_path", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 141, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L141" - } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 135, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L135" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 78 }, "initialIsOpen": false }, { - "id": "def-common.ServiceRequirements", + "id": "def-common.GetInfoRequest", "type": "Interface", - "label": "ServiceRequirements", + "label": "GetInfoRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.ServiceRequirements.versions", - "type": "string", - "label": "versions", + "id": "def-common.GetInfoRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 147, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L147" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 50 + }, + "signature": [ + "{ pkgkey: string; }" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 146, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L146" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 49 }, "initialIsOpen": false }, { - "id": "def-common.CategorySummaryItem", + "id": "def-common.GetInfoResponse", "type": "Interface", - "label": "CategorySummaryItem", + "label": "GetInfoResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CategorySummaryItem.id", - "type": "string", - "label": "id", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 178, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L178" - } - }, - { - "tags": [], - "id": "def-common.CategorySummaryItem.title", - "type": "string", - "label": "title", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 179, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L179" - } - }, - { - "tags": [], - "id": "def-common.CategorySummaryItem.count", - "type": "number", - "label": "count", + "id": "def-common.GetInfoResponse.response", + "type": "CompoundType", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 180, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L180" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 56 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageInfo", + "text": "PackageInfo" + } + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 177, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L177" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 55 }, "initialIsOpen": false }, { - "id": "def-common.AssetParts", + "id": "def-common.GetLimitedPackagesResponse", "type": "Interface", - "label": "AssetParts", + "label": "GetLimitedPackagesResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.AssetParts.pkgkey", - "type": "string", - "label": "pkgkey", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 185, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L185" - } - }, - { - "tags": [], - "id": "def-common.AssetParts.dataset", - "type": "string", - "label": "dataset", + "id": "def-common.GetLimitedPackagesResponse.response", + "type": "Array", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 186, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L186" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 39 }, "signature": [ - "string | undefined" + "string[]" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 38 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneAgentEventsRequest", + "type": "Interface", + "label": "GetOneAgentEventsRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.AssetParts.service", - "type": "CompoundType", - "label": "service", + "id": "def-common.GetOneAgentEventsRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 187, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L187" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 175 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.ServiceName", - "text": "ServiceName" - } + "{ agentId: string; }" ] }, { "tags": [], - "id": "def-common.AssetParts.type", - "type": "CompoundType", - "label": "type", + "id": "def-common.GetOneAgentEventsRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L188" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 178 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AssetType", - "text": "AssetType" - } + "{ page: number; perPage: number; kuery?: string | undefined; }" ] - }, - { - "tags": [], - "id": "def-common.AssetParts.file", - "type": "string", - "label": "file", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 189, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L189" - } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 184, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L184" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 174 }, "initialIsOpen": false }, { - "id": "def-common.RegistryDataStream", + "id": "def-common.GetOneAgentEventsResponse", "type": "Interface", - "label": "RegistryDataStream", + "label": "GetOneAgentEventsResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.type", - "type": "string", - "label": "type", + "id": "def-common.GetOneAgentEventsResponse.list", + "type": "Array", + "label": "list", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 215, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L215" - } - }, - { - "tags": [], - "id": "def-common.RegistryDataStream.ilm_policy", - "type": "string", - "label": "ilm_policy", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 216, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L216" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 186 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentEvent", + "text": "AgentEvent" + }, + "[]" ] }, { "tags": [], - "id": "def-common.RegistryDataStream.hidden", - "type": "CompoundType", - "label": "hidden", + "id": "def-common.GetOneAgentEventsResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 217, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L217" - }, - "signature": [ - "boolean | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 187 + } }, { "tags": [], - "id": "def-common.RegistryDataStream.dataset", - "type": "string", - "label": "dataset", + "id": "def-common.GetOneAgentEventsResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 218, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L218" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 188 } }, { "tags": [], - "id": "def-common.RegistryDataStream.title", - "type": "string", - "label": "title", + "id": "def-common.GetOneAgentEventsResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 219, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L219" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 189 } - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 185 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneAgentPolicyRequest", + "type": "Interface", + "label": "GetOneAgentPolicyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.release", - "type": "string", - "label": "release", + "id": "def-common.GetOneAgentPolicyRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 220, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L220" - } - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 28 + }, + "signature": [ + "{ agentPolicyId: string; }" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 27 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneAgentPolicyResponse", + "type": "Interface", + "label": "GetOneAgentPolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.streams", - "type": "Array", - "label": "streams", + "id": "def-common.GetOneAgentPolicyResponse.item", + "type": "Object", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 221, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L221" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 34 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryStream", - "text": "RegistryStream" - }, - "[] | undefined" + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" + } ] - }, - { - "tags": [], - "id": "def-common.RegistryDataStream.package", - "type": "string", - "label": "package", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 222, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L222" - } - }, - { - "tags": [], - "id": "def-common.RegistryDataStream.path", - "type": "string", - "label": "path", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 223, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L223" - } - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 33 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneAgentRequest", + "type": "Interface", + "label": "GetOneAgentRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.ingest_pipeline", - "type": "string", - "label": "ingest_pipeline", + "id": "def-common.GetOneAgentRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 224, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L224" - } - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 37 + }, + "signature": [ + "{ agentId: string; }" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 36 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneAgentResponse", + "type": "Interface", + "label": "GetOneAgentResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.elasticsearch", + "id": "def-common.GetOneAgentResponse.item", "type": "Object", - "label": "elasticsearch", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 225, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L225" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 43 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryElasticsearch", - "text": "RegistryElasticsearch" - }, - " | undefined" + "section": "def-common.Agent", + "text": "Agent" + } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 42 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneEnrollmentAPIKeyRequest", + "type": "Interface", + "label": "GetOneEnrollmentAPIKeyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryDataStream.dataset_is_prefix", - "type": "CompoundType", - "label": "dataset_is_prefix", + "id": "def-common.GetOneEnrollmentAPIKeyRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 226, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L226" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 26 }, "signature": [ - "boolean | undefined" + "{ keyId: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 214, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L214" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 25 }, "initialIsOpen": false }, { - "id": "def-common.RegistryElasticsearch", + "id": "def-common.GetOneEnrollmentAPIKeyResponse", "type": "Interface", - "label": "RegistryElasticsearch", + "label": "GetOneEnrollmentAPIKeyResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryElasticsearch.'index_template.settings'", - "type": "Uncategorized", - "label": "'index_template.settings'", + "id": "def-common.GetOneEnrollmentAPIKeyResponse.item", + "type": "Object", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 230, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L230" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 32 }, "signature": [ - "object | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EnrollmentAPIKey", + "text": "EnrollmentAPIKey" + } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 31 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOneOutputRequest", + "type": "Interface", + "label": "GetOneOutputRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryElasticsearch.'index_template.mappings'", - "type": "Uncategorized", - "label": "'index_template.mappings'", + "id": "def-common.GetOneOutputRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 231, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L231" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 15 }, "signature": [ - "object | undefined" + "{ outputId: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 229, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L229" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 14 }, "initialIsOpen": false }, { - "id": "def-common.RegistryVarsEntry", + "id": "def-common.GetOneOutputResponse", "type": "Interface", - "label": "RegistryVarsEntry", + "label": "GetOneOutputResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.RegistryVarsEntry.name", - "type": "string", - "label": "name", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L239" - } - }, - { - "tags": [], - "id": "def-common.RegistryVarsEntry.title", - "type": "string", - "label": "title", + "id": "def-common.GetOneOutputResponse.item", + "type": "CompoundType", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 240, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L240" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 11 }, "signature": [ - "string | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Output", + "text": "Output" + } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 10 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOnePackagePolicyRequest", + "type": "Interface", + "label": "GetOnePackagePolicyRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryVarsEntry.description", - "type": "string", - "label": "description", + "id": "def-common.GetOnePackagePolicyRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 241, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L241" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 26 }, "signature": [ - "string | undefined" + "{ packagePolicyId: string; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 25 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOnePackagePolicyResponse", + "type": "Interface", + "label": "GetOnePackagePolicyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryVarsEntry.type", - "type": "CompoundType", - "label": "type", + "id": "def-common.GetOnePackagePolicyResponse.item", + "type": "Object", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 242, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L242" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 32 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryVarType", - "text": "RegistryVarType" + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 31 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetOutputsResponse", + "type": "Interface", + "label": "GetOutputsResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryVarsEntry.required", - "type": "CompoundType", - "label": "required", + "id": "def-common.GetOutputsResponse.items", + "type": "Array", + "label": "items", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 243, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L243" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 37 }, "signature": [ - "boolean | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Output", + "text": "Output" + }, + "[]" ] }, { "tags": [], - "id": "def-common.RegistryVarsEntry.show_user", - "type": "CompoundType", - "label": "show_user", + "id": "def-common.GetOutputsResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 244, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L244" - }, - "signature": [ - "boolean | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 38 + } }, { "tags": [], - "id": "def-common.RegistryVarsEntry.multi", - "type": "CompoundType", - "label": "multi", + "id": "def-common.GetOutputsResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 245, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L245" - }, - "signature": [ - "boolean | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 39 + } }, { "tags": [], - "id": "def-common.RegistryVarsEntry.default", - "type": "CompoundType", - "label": "default", + "id": "def-common.GetOutputsResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 246, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L246" - }, - "signature": [ - "string | string[] | undefined" - ] - }, + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 40 + } + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 36 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetPackagePoliciesRequest", + "type": "Interface", + "label": "GetPackagePoliciesRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.RegistryVarsEntry.os", + "id": "def-common.GetPackagePoliciesRequest.query", "type": "Object", - "label": "os", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 247, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L247" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 11 }, "signature": [ - "{ [key: string]: { default: string | string[]; }; } | undefined" + "{ page: number; perPage: number; kuery?: string | undefined; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 238, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L238" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 10 }, "initialIsOpen": false }, { - "id": "def-common.EpmPackageAdditions", + "id": "def-common.GetPackagePoliciesResponse", "type": "Interface", - "label": "EpmPackageAdditions", + "label": "GetPackagePoliciesResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.EpmPackageAdditions.title", - "type": "string", - "label": "title", + "id": "def-common.GetPackagePoliciesResponse.items", + "type": "Array", + "label": "items", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 257, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L257" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 19 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + "[]" + ] }, { "tags": [], - "id": "def-common.EpmPackageAdditions.latestVersion", - "type": "string", - "label": "latestVersion", + "id": "def-common.GetPackagePoliciesResponse.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 258, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L258" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 20 } }, { "tags": [], - "id": "def-common.EpmPackageAdditions.assets", - "type": "CompoundType", - "label": "assets", + "id": "def-common.GetPackagePoliciesResponse.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 259, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L259" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AssetsGroupedByServiceByType", - "text": "AssetsGroupedByServiceByType" - } - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 21 + } }, { "tags": [], - "id": "def-common.EpmPackageAdditions.removable", - "type": "CompoundType", - "label": "removable", + "id": "def-common.GetPackagePoliciesResponse.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 260, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L260" - }, - "signature": [ - "boolean | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 22 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 256, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L256" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 18 }, "initialIsOpen": false }, { - "id": "def-common.Installation", + "id": "def-common.GetPackagesRequest", "type": "Interface", - "label": "Installation", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Installation", - "text": "Installation" - }, - " extends ", - "SavedObjectAttributes" - ], + "label": "GetPackagesRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.Installation.installed_kibana", - "type": "Array", - "label": "installed_kibana", + "id": "def-common.GetPackagesRequest.query", + "type": "Object", + "label": "query", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 276, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L276" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 28 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetReference", - "text": "KibanaAssetReference" - }, - "[]" + "{ category?: string | undefined; experimental?: boolean | undefined; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 27 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetPackagesResponse", + "type": "Interface", + "label": "GetPackagesResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.Installation.installed_es", + "id": "def-common.GetPackagesResponse.response", "type": "Array", - "label": "installed_es", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 277, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L277" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 35 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.EsAssetReference", - "text": "EsAssetReference" + "section": "def-common.Installable", + "text": "Installable" }, - "[]" - ] - }, - { - "tags": [], - "id": "def-common.Installation.package_assets", - "type": "Array", - "label": "package_assets", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 278, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L278" - }, - "signature": [ + ">[]" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 34 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetSettingsResponse", + "type": "Interface", + "label": "GetSettingsResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.Installation.es_index_patterns", + "id": "def-common.GetSettingsResponse.item", "type": "Object", - "label": "es_index_patterns", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 279, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L279" - }, - "signature": [ - "Record" - ] - }, - { - "tags": [], - "id": "def-common.Installation.name", - "type": "string", - "label": "name", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 280, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L280" - } - }, - { - "tags": [], - "id": "def-common.Installation.version", - "type": "string", - "label": "version", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 281, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L281" - } - }, - { - "tags": [], - "id": "def-common.Installation.install_status", - "type": "CompoundType", - "label": "install_status", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 282, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L282" + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 11 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.EpmPackageInstallStatus", - "text": "EpmPackageInstallStatus" + "section": "def-common.Settings", + "text": "Settings" } ] - }, - { - "tags": [], - "id": "def-common.Installation.install_version", - "type": "string", - "label": "install_version", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 283, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L283" - } - }, - { - "tags": [], - "id": "def-common.Installation.install_started_at", - "type": "string", - "label": "install_started_at", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 284, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L284" - } - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 10 + }, + "initialIsOpen": false + }, + { + "id": "def-common.GetStatsRequest", + "type": "Interface", + "label": "GetStatsRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.Installation.install_source", - "type": "CompoundType", - "label": "install_source", + "id": "def-common.GetStatsRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 285, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L285" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 60 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.InstallSource", - "text": "InstallSource" - } + "{ pkgname: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 275, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L275" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 59 }, "initialIsOpen": false }, { - "id": "def-common.PackageUsageStats", + "id": "def-common.GetStatsResponse", "type": "Interface", - "label": "PackageUsageStats", + "label": "GetStatsResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackageUsageStats.agent_policy_count", - "type": "number", - "label": "agent_policy_count", + "id": "def-common.GetStatsResponse.response", + "type": "Object", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 289, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L289" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 66 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageUsageStats", + "text": "PackageUsageStats" + } + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 288, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L288" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 65 }, "initialIsOpen": false }, { - "id": "def-common.IndexTemplateMappings", + "id": "def-common.IBulkInstallPackageHTTPError", "type": "Interface", - "label": "IndexTemplateMappings", + "label": "IBulkInstallPackageHTTPError", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.IndexTemplateMappings.properties", - "type": "Any", - "label": "properties", + "id": "def-common.IBulkInstallPackageHTTPError.name", + "type": "string", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 321, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L321" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 80 + } + }, + { + "tags": [], + "id": "def-common.IBulkInstallPackageHTTPError.statusCode", + "type": "number", + "label": "statusCode", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 81 + } + }, + { + "tags": [], + "id": "def-common.IBulkInstallPackageHTTPError.error", + "type": "CompoundType", + "label": "error", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 82 }, "signature": [ - "any" + "string | Error" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 320, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L320" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 79 }, "initialIsOpen": false }, @@ -8074,8 +7900,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 328, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L328" + "lineNumber": 328 } }, { @@ -8086,8 +7911,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 329, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L329" + "lineNumber": 329 }, "signature": [ "string[]" @@ -8101,8 +7925,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 330, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L330" + "lineNumber": 330 }, "signature": [ "{ settings: any; mappings: any; }" @@ -8116,8 +7939,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 334, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L334" + "lineNumber": 334 }, "signature": [ "{ hidden?: boolean | undefined; }" @@ -8131,8 +7953,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 335, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L335" + "lineNumber": 335 }, "signature": [ "string[]" @@ -8146,8 +7967,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 336, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L336" + "lineNumber": 336 }, "signature": [ "object" @@ -8156,484 +7976,447 @@ ], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 327, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L327" + "lineNumber": 327 }, "initialIsOpen": false }, { - "id": "def-common.TemplateRef", + "id": "def-common.IndexTemplateMappings", "type": "Interface", - "label": "TemplateRef", + "label": "IndexTemplateMappings", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.TemplateRef.templateName", - "type": "string", - "label": "templateName", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 340, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L340" - } - }, - { - "tags": [], - "id": "def-common.TemplateRef.indexTemplate", - "type": "Object", - "label": "indexTemplate", + "id": "def-common.IndexTemplateMappings.properties", + "type": "Any", + "label": "properties", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 341, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L341" + "lineNumber": 321 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.IndexTemplate", - "text": "IndexTemplate" - } + "any" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 339, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L339" + "lineNumber": 320 }, "initialIsOpen": false }, { - "id": "def-common.PackageSpecManifest", + "id": "def-common.Installation", "type": "Interface", - "label": "PackageSpecManifest", + "label": "Installation", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Installation", + "text": "Installation" + }, + " extends ", + "SavedObjectAttributes" + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackageSpecManifest.format_version", - "type": "string", - "label": "format_version", + "id": "def-common.Installation.installed_kibana", + "type": "Array", + "label": "installed_kibana", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L12" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 276 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetReference", + "text": "KibanaAssetReference" + }, + "[]" + ] }, { "tags": [], - "id": "def-common.PackageSpecManifest.name", - "type": "string", - "label": "name", + "id": "def-common.Installation.installed_es", + "type": "Array", + "label": "installed_es", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L13" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 277 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EsAssetReference", + "text": "EsAssetReference" + }, + "[]" + ] }, { "tags": [], - "id": "def-common.PackageSpecManifest.title", - "type": "string", - "label": "title", + "id": "def-common.Installation.package_assets", + "type": "Array", + "label": "package_assets", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L14" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 278 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageAssetReference", + "text": "PackageAssetReference" + }, + "[] | undefined" + ] }, { "tags": [], - "id": "def-common.PackageSpecManifest.description", - "type": "string", - "label": "description", + "id": "def-common.Installation.es_index_patterns", + "type": "Object", + "label": "es_index_patterns", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L15" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 279 + }, + "signature": [ + "Record" + ] }, { "tags": [], - "id": "def-common.PackageSpecManifest.version", + "id": "def-common.Installation.name", "type": "string", - "label": "version", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L16" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 280 } }, { "tags": [], - "id": "def-common.PackageSpecManifest.license", - "type": "string", - "label": "license", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L17" - }, - "signature": [ - "\"basic\" | undefined" - ] - }, - { - "tags": [], - "id": "def-common.PackageSpecManifest.type", + "id": "def-common.Installation.version", "type": "string", - "label": "type", + "label": "version", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L18" - }, - "signature": [ - "\"integration\" | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 281 + } }, { "tags": [], - "id": "def-common.PackageSpecManifest.release", + "id": "def-common.Installation.install_status", "type": "CompoundType", - "label": "release", + "label": "install_status", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L19" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 282 }, "signature": [ - "\"experimental\" | \"beta\" | \"ga\"" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EpmPackageInstallStatus", + "text": "EpmPackageInstallStatus" + } ] }, { "tags": [], - "id": "def-common.PackageSpecManifest.categories", - "type": "Array", - "label": "categories", + "id": "def-common.Installation.install_version", + "type": "string", + "label": "install_version", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L20" - }, - "signature": [ - "(\"custom\" | \"security\" | \"monitoring\" | \"aws\" | \"azure\" | \"cloud\" | \"config_management\" | \"containers\" | \"crm\" | \"datastore\" | \"elastic_stack\" | \"google_cloud\" | \"kubernetes\" | \"languages\" | \"message_queue\" | \"network\" | \"notification\" | \"os_system\" | \"productivity\" | \"support\" | \"ticketing\" | \"version_control\" | \"web\" | undefined)[] | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 283 + } }, { "tags": [], - "id": "def-common.PackageSpecManifest.conditions", - "type": "Object", - "label": "conditions", + "id": "def-common.Installation.install_started_at", + "type": "string", + "label": "install_started_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L21" - }, - "signature": [ - "Record<\"kibana\", { version: string; }> | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 284 + } }, { "tags": [], - "id": "def-common.PackageSpecManifest.icons", - "type": "Array", - "label": "icons", + "id": "def-common.Installation.install_source", + "type": "CompoundType", + "label": "install_source", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L22" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 285 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageSpecIcon", - "text": "PackageSpecIcon" - }, - "[] | undefined" + "section": "def-common.InstallSource", + "text": "InstallSource" + } ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 275 + }, + "initialIsOpen": false + }, + { + "id": "def-common.InstallPackageRequest", + "type": "Interface", + "label": "InstallPackageRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.PackageSpecManifest.screenshots", - "type": "Array", - "label": "screenshots", + "id": "def-common.InstallPackageRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L23" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 70 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageSpecScreenshot", - "text": "PackageSpecScreenshot" - }, - "[] | undefined" + "{ pkgkey: string; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 69 + }, + "initialIsOpen": false + }, + { + "id": "def-common.InstallPackageResponse", + "type": "Interface", + "label": "InstallPackageResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.PackageSpecManifest.policy_templates", + "id": "def-common.InstallPackageResponse.response", "type": "Array", - "label": "policy_templates", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L24" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 76 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.RegistryPolicyTemplate", - "text": "RegistryPolicyTemplate" + "section": "def-common.AssetReference", + "text": "AssetReference" }, - "[] | undefined" - ] - }, - { - "tags": [], - "id": "def-common.PackageSpecManifest.owner", - "type": "Object", - "label": "owner", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L25" - }, - "signature": [ - "{ github: string; }" + "[]" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L11" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 75 }, "initialIsOpen": false }, { - "id": "def-common.PackageSpecIcon", + "id": "def-common.InstallScriptRequest", "type": "Interface", - "label": "PackageSpecIcon", + "label": "InstallScriptRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackageSpecIcon.src", - "type": "string", - "label": "src", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 61, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L61" - } - }, - { - "tags": [], - "id": "def-common.PackageSpecIcon.title", - "type": "string", - "label": "title", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L62" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-common.PackageSpecIcon.size", - "type": "string", - "label": "size", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 63, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L63" - }, - "signature": [ - "string | undefined" - ] - }, - { - "tags": [], - "id": "def-common.PackageSpecIcon.type", - "type": "string", - "label": "type", + "id": "def-common.InstallScriptRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L64" + "path": "x-pack/plugins/fleet/common/types/rest_spec/install_script.ts", + "lineNumber": 9 }, "signature": [ - "string | undefined" + "{ osType: \"macos\"; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L60" + "path": "x-pack/plugins/fleet/common/types/rest_spec/install_script.ts", + "lineNumber": 8 }, "initialIsOpen": false }, { - "id": "def-common.PackageSpecScreenshot", + "id": "def-common.ListResult", "type": "Interface", - "label": "PackageSpecScreenshot", + "label": "ListResult", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.ListResult", + "text": "ListResult" + }, + "" + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PackageSpecScreenshot.src", - "type": "string", - "label": "src", + "id": "def-common.ListResult.items", + "type": "Array", + "label": "items", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 68, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L68" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 19 + }, + "signature": [ + "T[]" + ] }, { "tags": [], - "id": "def-common.PackageSpecScreenshot.title", - "type": "string", - "label": "title", + "id": "def-common.ListResult.total", + "type": "number", + "label": "total", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L69" + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 20 } }, { "tags": [], - "id": "def-common.PackageSpecScreenshot.size", - "type": "string", - "label": "size", + "id": "def-common.ListResult.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 70, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L70" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 21 + } }, { "tags": [], - "id": "def-common.PackageSpecScreenshot.type", - "type": "string", - "label": "type", + "id": "def-common.ListResult.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 71, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L71" - }, - "signature": [ - "string | undefined" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 22 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L67" + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 18 }, "initialIsOpen": false }, { - "id": "def-common.EnrollmentAPIKey", + "id": "def-common.ListWithKuery", "type": "Interface", - "label": "EnrollmentAPIKey", + "label": "ListWithKuery", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.ListWithKuery", + "text": "ListWithKuery" + }, + " extends ", + { + "pluginId": "core", + "scope": "public", + "docId": "kibCoreHttpPluginApi", + "section": "def-public.HttpFetchQuery", + "text": "HttpFetchQuery" + } + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.EnrollmentAPIKey.id", - "type": "string", - "label": "id", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L9" - } - }, - { - "tags": [], - "id": "def-common.EnrollmentAPIKey.api_key_id", - "type": "string", - "label": "api_key_id", + "id": "def-common.ListWithKuery.page", + "type": "number", + "label": "page", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L10" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 11 + }, + "signature": [ + "number | undefined" + ] }, { "tags": [], - "id": "def-common.EnrollmentAPIKey.api_key", - "type": "string", - "label": "api_key", + "id": "def-common.ListWithKuery.perPage", + "type": "number", + "label": "perPage", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L11" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 12 + }, + "signature": [ + "number | undefined" + ] }, { "tags": [], - "id": "def-common.EnrollmentAPIKey.name", + "id": "def-common.ListWithKuery.sortField", "type": "string", - "label": "name", + "label": "sortField", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L12" + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 13 }, "signature": [ "string | undefined" @@ -8641,147 +8424,217 @@ }, { "tags": [], - "id": "def-common.EnrollmentAPIKey.active", - "type": "boolean", - "label": "active", + "id": "def-common.ListWithKuery.sortOrder", + "type": "CompoundType", + "label": "sortOrder", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L13" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 14 + }, + "signature": [ + "\"asc\" | \"desc\" | undefined" + ] }, { "tags": [], - "id": "def-common.EnrollmentAPIKey.policy_id", + "id": "def-common.ListWithKuery.kuery", "type": "string", - "label": "policy_id", + "label": "kuery", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L14" + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 15 }, "signature": [ "string | undefined" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", + "lineNumber": 10 + }, + "initialIsOpen": false + }, + { + "id": "def-common.MessageResponse", + "type": "Interface", + "label": "MessageResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.EnrollmentAPIKey.created_at", + "id": "def-common.MessageResponse.response", "type": "string", - "label": "created_at", + "label": "response", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L15" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 104 } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L8" + "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", + "lineNumber": 103 }, "initialIsOpen": false }, { - "id": "def-common.FleetServerEnrollmentAPIKey", + "id": "def-common.NewAgentAction", "type": "Interface", - "label": "FleetServerEnrollmentAPIKey", - "description": [ - "\nAn Elastic Agent enrollment API key" - ], + "label": "NewAgentAction", + "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.active", + "id": "def-common.NewAgentAction.type", "type": "CompoundType", - "label": "active", - "description": [ - "\nTrue when the key is active" - ], + "label": "type", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L29" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 39 }, "signature": [ - "boolean | undefined" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentActionType", + "text": "AgentActionType" + } ] }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.api_key_id", - "type": "string", - "label": "api_key_id", - "description": [ - "\nThe unique identifier for the enrollment key, currently xid" - ], + "id": "def-common.NewAgentAction.data", + "type": "Any", + "label": "data", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L33" - } - }, - { - "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.api_key", - "type": "string", - "label": "api_key", - "description": [ - "\nApi key" - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L37" - } + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 40 + }, + "signature": [ + "any" + ] }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.name", + "id": "def-common.NewAgentAction.sent_at", "type": "string", - "label": "name", - "description": [ - "\nEnrollment key name" - ], + "label": "sent_at", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L41" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 41 }, "signature": [ "string | undefined" ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 38 + }, + "initialIsOpen": false + }, + { + "id": "def-common.NewAgentEvent", + "type": "Interface", + "label": "NewAgentEvent", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.NewAgentEvent.type", + "type": "CompoundType", + "label": "type", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 94 + }, + "signature": [ + "\"STATE\" | \"ERROR\" | \"ACTION_RESULT\" | \"ACTION\"" + ] }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.policy_id", + "id": "def-common.NewAgentEvent.subtype", + "type": "CompoundType", + "label": "subtype", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 95 + }, + "signature": [ + "\"RUNNING\" | \"STARTING\" | \"IN_PROGRESS\" | \"CONFIG\" | \"FAILED\" | \"STOPPING\" | \"STOPPED\" | \"DEGRADED\" | \"UPDATING\" | \"DATA_DUMP\" | \"ACKNOWLEDGED\" | \"UNKNOWN\"" + ] + }, + { + "tags": [], + "id": "def-common.NewAgentEvent.timestamp", "type": "string", - "label": "policy_id", + "label": "timestamp", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L42" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 110 + } + }, + { + "tags": [], + "id": "def-common.NewAgentEvent.message", + "type": "string", + "label": "message", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 111 + } + }, + { + "tags": [], + "id": "def-common.NewAgentEvent.payload", + "type": "Any", + "label": "payload", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 112 }, "signature": [ - "string | undefined" + "any" ] }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.expire_at", + "id": "def-common.NewAgentEvent.agent_id", "type": "string", - "label": "expire_at", + "label": "agent_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L43" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 113 + } + }, + { + "tags": [], + "id": "def-common.NewAgentEvent.action_id", + "type": "string", + "label": "action_id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 114 }, "signature": [ "string | undefined" @@ -8789,14 +8642,13 @@ }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.created_at", + "id": "def-common.NewAgentEvent.policy_id", "type": "string", - "label": "created_at", + "label": "policy_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L44" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 115 }, "signature": [ "string | undefined" @@ -8804,14 +8656,13 @@ }, { "tags": [], - "id": "def-common.FleetServerEnrollmentAPIKey.updated_at", + "id": "def-common.NewAgentEvent.stream_id", "type": "string", - "label": "updated_at", + "label": "stream_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L45" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 116 }, "signature": [ "string | undefined" @@ -8819,237 +8670,183 @@ } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L25" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 93 }, "initialIsOpen": false }, { - "id": "def-common.BaseSettings", + "id": "def-common.NewAgentPolicy", "type": "Interface", - "label": "BaseSettings", + "label": "NewAgentPolicy", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.BaseSettings.agent_auto_upgrade", - "type": "boolean", - "label": "agent_auto_upgrade", + "id": "def-common.NewAgentPolicy.name", + "type": "string", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L11" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 17 } }, { "tags": [], - "id": "def-common.BaseSettings.package_auto_upgrade", - "type": "boolean", - "label": "package_auto_upgrade", + "id": "def-common.NewAgentPolicy.namespace", + "type": "string", + "label": "namespace", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L12" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 18 } }, { "tags": [], - "id": "def-common.BaseSettings.kibana_urls", - "type": "Array", - "label": "kibana_urls", + "id": "def-common.NewAgentPolicy.description", + "type": "string", + "label": "description", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 19 }, "signature": [ - "string[]" + "string | undefined" ] }, { "tags": [], - "id": "def-common.BaseSettings.kibana_ca_sha256", - "type": "string", - "label": "kibana_ca_sha256", + "id": "def-common.NewAgentPolicy.is_default", + "type": "CompoundType", + "label": "is_default", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L14" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 20 }, "signature": [ - "string | undefined" + "boolean | undefined" ] }, { "tags": [], - "id": "def-common.BaseSettings.has_seen_add_data_notice", + "id": "def-common.NewAgentPolicy.is_default_fleet_server", "type": "CompoundType", - "label": "has_seen_add_data_notice", + "label": "is_default_fleet_server", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L15" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 21 + }, + "signature": [ + "boolean | undefined" + ] + }, + { + "tags": [], + "id": "def-common.NewAgentPolicy.is_managed", + "type": "CompoundType", + "label": "is_managed", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 22 }, "signature": [ "boolean | undefined" ] + }, + { + "tags": [], + "id": "def-common.NewAgentPolicy.monitoring_enabled", + "type": "Array", + "label": "monitoring_enabled", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 23 + }, + "signature": [ + "(\"metrics\" | \"logs\")[] | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L10" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 16 }, "initialIsOpen": false }, { - "id": "def-common.Settings", + "id": "def-common.NewOutput", "type": "Interface", - "label": "Settings", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Settings", - "text": "Settings" - }, - " extends ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.BaseSettings", - "text": "BaseSettings" - } - ], + "label": "NewOutput", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.Settings.id", - "type": "string", - "label": "id", + "id": "def-common.NewOutput.is_default", + "type": "boolean", + "label": "is_default", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L19" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 14 } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L18" - }, - "initialIsOpen": false - }, - { - "id": "def-common.SettingsSOAttributes", - "type": "Interface", - "label": "SettingsSOAttributes", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.SettingsSOAttributes", - "text": "SettingsSOAttributes" }, - " extends ", { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.BaseSettings", - "text": "BaseSettings" + "tags": [], + "id": "def-common.NewOutput.name", + "type": "string", + "label": "name", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 15 + } }, - ",", - "SavedObjectAttributes" - ], - "description": [], - "tags": [], - "children": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/settings.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/settings.ts#L22" - }, - "initialIsOpen": false - }, - { - "id": "def-common.ListWithKuery", - "type": "Interface", - "label": "ListWithKuery", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.ListWithKuery", - "text": "ListWithKuery" - }, - " extends ", - { - "pluginId": "core", - "scope": "public", - "docId": "kibCoreHttpPluginApi", - "section": "def-public.HttpFetchQuery", - "text": "HttpFetchQuery" - } - ], - "description": [], - "tags": [], - "children": [ { "tags": [], - "id": "def-common.ListWithKuery.page", - "type": "number", - "label": "page", + "id": "def-common.NewOutput.type", + "type": "string", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L11" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 16 }, "signature": [ - "number | undefined" + "\"elasticsearch\"" ] }, { "tags": [], - "id": "def-common.ListWithKuery.perPage", - "type": "number", - "label": "perPage", + "id": "def-common.NewOutput.hosts", + "type": "Array", + "label": "hosts", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L12" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 17 }, "signature": [ - "number | undefined" + "string[] | undefined" ] }, { "tags": [], - "id": "def-common.ListWithKuery.sortField", + "id": "def-common.NewOutput.ca_sha256", "type": "string", - "label": "sortField", + "label": "ca_sha256", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 18 }, "signature": [ "string | undefined" @@ -9057,1093 +8854,1198 @@ }, { "tags": [], - "id": "def-common.ListWithKuery.sortOrder", - "type": "CompoundType", - "label": "sortOrder", + "id": "def-common.NewOutput.api_key", + "type": "string", + "label": "api_key", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L14" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 19 }, "signature": [ - "\"asc\" | \"desc\" | undefined" + "string | undefined" ] }, { "tags": [], - "id": "def-common.ListWithKuery.kuery", + "id": "def-common.NewOutput.fleet_enroll_username", "type": "string", - "label": "kuery", + "label": "fleet_enroll_username", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L15" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 20 }, "signature": [ "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L10" - }, - "initialIsOpen": false - }, - { - "id": "def-common.ListResult", - "type": "Interface", - "label": "ListResult", - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.ListResult", - "text": "ListResult" }, - "" - ], - "description": [], - "tags": [], - "children": [ { "tags": [], - "id": "def-common.ListResult.items", - "type": "Array", - "label": "items", + "id": "def-common.NewOutput.fleet_enroll_password", + "type": "string", + "label": "fleet_enroll_password", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L19" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 21 }, "signature": [ - "T[]" + "string | undefined" ] }, { "tags": [], - "id": "def-common.ListResult.total", - "type": "number", - "label": "total", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L20" - } - }, - { - "tags": [], - "id": "def-common.ListResult.page", - "type": "number", - "label": "page", + "id": "def-common.NewOutput.config", + "type": "Object", + "label": "config", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L21" - } + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 22 + }, + "signature": [ + "Record | undefined" + ] }, { "tags": [], - "id": "def-common.ListResult.perPage", - "type": "number", - "label": "perPage", + "id": "def-common.NewOutput.config_yaml", + "type": "string", + "label": "config_yaml", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L22" - } + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 23 + }, + "signature": [ + "string | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/common.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/common.ts#L18" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 13 }, "initialIsOpen": false }, { - "id": "def-common.GetPackagePoliciesRequest", + "id": "def-common.NewPackagePolicy", "type": "Interface", - "label": "GetPackagePoliciesRequest", + "label": "NewPackagePolicy", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetPackagePoliciesRequest.query", - "type": "Object", - "label": "query", + "id": "def-common.NewPackagePolicy.name", + "type": "string", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L11" - }, - "signature": [ - "{ page: number; perPage: number; kuery?: string | undefined; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L10" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetPackagePoliciesResponse", - "type": "Interface", - "label": "GetPackagePoliciesResponse", - "description": [], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 50 + } + }, { "tags": [], - "id": "def-common.GetPackagePoliciesResponse.items", - "type": "Array", - "label": "items", + "id": "def-common.NewPackagePolicy.description", + "type": "string", + "label": "description", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L19" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 51 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - "[]" + "string | undefined" ] }, { "tags": [], - "id": "def-common.GetPackagePoliciesResponse.total", - "type": "number", - "label": "total", + "id": "def-common.NewPackagePolicy.namespace", + "type": "string", + "label": "namespace", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L20" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 52 } }, { "tags": [], - "id": "def-common.GetPackagePoliciesResponse.page", - "type": "number", - "label": "page", + "id": "def-common.NewPackagePolicy.enabled", + "type": "boolean", + "label": "enabled", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L21" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 53 } }, { "tags": [], - "id": "def-common.GetPackagePoliciesResponse.perPage", - "type": "number", - "label": "perPage", + "id": "def-common.NewPackagePolicy.policy_id", + "type": "string", + "label": "policy_id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L22" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 54 } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L18" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetOnePackagePolicyRequest", - "type": "Interface", - "label": "GetOnePackagePolicyRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetOnePackagePolicyRequest.params", + "id": "def-common.NewPackagePolicy.output_id", + "type": "string", + "label": "output_id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 55 + } + }, + { + "tags": [], + "id": "def-common.NewPackagePolicy.package", "type": "Object", - "label": "params", + "label": "package", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L26" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 56 }, "signature": [ - "{ packagePolicyId: string; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L25" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetOnePackagePolicyResponse", - "type": "Interface", - "label": "GetOnePackagePolicyResponse", - "description": [], - "tags": [], - "children": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicyPackage", + "text": "PackagePolicyPackage" + }, + " | undefined" + ] + }, { "tags": [], - "id": "def-common.GetOnePackagePolicyResponse.item", - "type": "Object", - "label": "item", + "id": "def-common.NewPackagePolicy.inputs", + "type": "Array", + "label": "inputs", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L32" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 57 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - } + "section": "def-common.NewPackagePolicyInput", + "text": "NewPackagePolicyInput" + }, + "[]" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L31" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 49 }, "initialIsOpen": false }, { - "id": "def-common.CreatePackagePolicyRequest", + "id": "def-common.NewPackagePolicyInput", "type": "Interface", - "label": "CreatePackagePolicyRequest", + "label": "NewPackagePolicyInput", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CreatePackagePolicyRequest.body", + "id": "def-common.NewPackagePolicyInput.type", + "type": "string", + "label": "type", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 37 + } + }, + { + "tags": [], + "id": "def-common.NewPackagePolicyInput.enabled", + "type": "boolean", + "label": "enabled", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 38 + } + }, + { + "tags": [], + "id": "def-common.NewPackagePolicyInput.vars", "type": "Object", - "label": "body", + "label": "vars", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L36" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 39 }, "signature": [ + "Record | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 35, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L35" - }, - "initialIsOpen": false - }, - { - "id": "def-common.CreatePackagePolicyResponse", - "type": "Interface", - "label": "CreatePackagePolicyResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.CreatePackagePolicyResponse.item", + "id": "def-common.NewPackagePolicyInput.config", "type": "Object", - "label": "item", + "label": "config", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L40" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 40 }, "signature": [ + "Record | undefined" + ] + }, + { + "tags": [], + "id": "def-common.NewPackagePolicyInput.streams", + "type": "Array", + "label": "streams", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 41 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicyInputStream", + "text": "NewPackagePolicyInputStream" + }, + "[]" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L39" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 36 }, "initialIsOpen": false }, { - "id": "def-common.DeletePackagePoliciesRequest", + "id": "def-common.NewPackagePolicyInputStream", "type": "Interface", - "label": "DeletePackagePoliciesRequest", + "label": "NewPackagePolicyInputStream", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.DeletePackagePoliciesRequest.body", + "id": "def-common.NewPackagePolicyInputStream.enabled", + "type": "boolean", + "label": "enabled", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 22 + } + }, + { + "tags": [], + "id": "def-common.NewPackagePolicyInputStream.data_stream", "type": "Object", - "label": "body", + "label": "data_stream", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L50" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 23 }, "signature": [ - "{ packagePolicyIds: string[]; }" + "{ dataset: string; type: string; }" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L49" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetDataStreamsResponse", - "type": "Interface", - "label": "GetDataStreamsResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetDataStreamsResponse.data_streams", - "type": "Array", - "label": "data_streams", + "id": "def-common.NewPackagePolicyInputStream.vars", + "type": "Object", + "label": "vars", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/data_stream.ts#L11" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 27 }, "signature": [ + "Record | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/data_stream.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/data_stream.ts#L10" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetAgentsRequest", - "type": "Interface", - "label": "GetAgentsRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetAgentsRequest.query", + "id": "def-common.NewPackagePolicyInputStream.config", "type": "Object", - "label": "query", + "label": "config", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L19" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 28 }, "signature": [ - "{ page: number; perPage: number; kuery?: string | undefined; showInactive: boolean; showUpgradeable?: boolean | undefined; }" + "Record | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L18" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 21 }, "initialIsOpen": false }, { - "id": "def-common.GetAgentsResponse", + "id": "def-common.PackagePolicy", "type": "Interface", - "label": "GetAgentsResponse", + "label": "PackagePolicy", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + " extends Pick<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicy", + "text": "NewPackagePolicy" + }, + ", \"enabled\" | \"description\" | \"name\" | \"package\" | \"namespace\" | \"policy_id\" | \"output_id\">" + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetAgentsResponse.list", + "id": "def-common.PackagePolicy.id", + "type": "string", + "label": "id", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 65 + } + }, + { + "tags": [], + "id": "def-common.PackagePolicy.inputs", "type": "Array", - "label": "list", + "label": "inputs", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L29" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 66 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" + "section": "def-common.PackagePolicyInput", + "text": "PackagePolicyInput" }, "[]" ] }, { "tags": [], - "id": "def-common.GetAgentsResponse.total", + "id": "def-common.PackagePolicy.version", + "type": "string", + "label": "version", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 67 + }, + "signature": [ + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackagePolicy.revision", "type": "number", - "label": "total", + "label": "revision", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L30" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 68 } }, { "tags": [], - "id": "def-common.GetAgentsResponse.totalInactive", - "type": "number", - "label": "totalInactive", + "id": "def-common.PackagePolicy.updated_at", + "type": "string", + "label": "updated_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L31" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 69 } }, { "tags": [], - "id": "def-common.GetAgentsResponse.page", - "type": "number", - "label": "page", + "id": "def-common.PackagePolicy.updated_by", + "type": "string", + "label": "updated_by", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L32" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 70 } }, { "tags": [], - "id": "def-common.GetAgentsResponse.perPage", - "type": "number", - "label": "perPage", + "id": "def-common.PackagePolicy.created_at", + "type": "string", + "label": "created_at", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L33" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 71 + } + }, + { + "tags": [], + "id": "def-common.PackagePolicy.created_by", + "type": "string", + "label": "created_by", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 72 } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L28" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 64 }, "initialIsOpen": false }, { - "id": "def-common.GetOneAgentRequest", + "id": "def-common.PackagePolicyConfigRecordEntry", "type": "Interface", - "label": "GetOneAgentRequest", + "label": "PackagePolicyConfigRecordEntry", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneAgentRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.PackagePolicyConfigRecordEntry.type", + "type": "string", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L37" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 15 }, "signature": [ - "{ agentId: string; }" + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackagePolicyConfigRecordEntry.value", + "type": "Any", + "label": "value", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 16 + }, + "signature": [ + "any" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L36" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 14 }, "initialIsOpen": false }, { - "id": "def-common.GetOneAgentResponse", + "id": "def-common.PackagePolicyInput", "type": "Interface", - "label": "GetOneAgentResponse", + "label": "PackagePolicyInput", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicyInput", + "text": "PackagePolicyInput" + }, + " extends Pick<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicyInput", + "text": "NewPackagePolicyInput" + }, + ", \"type\" | \"enabled\" | \"config\" | \"vars\">" + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneAgentResponse.item", - "type": "Object", - "label": "item", + "id": "def-common.PackagePolicyInput.streams", + "type": "Array", + "label": "streams", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L43" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 45 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" - } + "section": "def-common.PackagePolicyInputStream", + "text": "PackagePolicyInputStream" + }, + "[]" + ] + }, + { + "tags": [], + "id": "def-common.PackagePolicyInput.compiled_input", + "type": "Any", + "label": "compiled_input", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 46 + }, + "signature": [ + "any" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L42" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 44 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentCheckinRequest", + "id": "def-common.PackagePolicyInputStream", "type": "Interface", - "label": "PostAgentCheckinRequest", + "label": "PackagePolicyInputStream", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicyInputStream", + "text": "PackagePolicyInputStream" + }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicyInputStream", + "text": "NewPackagePolicyInputStream" + } + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentCheckinRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.PackagePolicyInputStream.id", + "type": "string", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L47" - }, - "signature": [ - "{ agentId: string; }" - ] + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 32 + } }, { "tags": [], - "id": "def-common.PostAgentCheckinRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PackagePolicyInputStream.compiled_stream", + "type": "Any", + "label": "compiled_stream", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L50" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 33 }, "signature": [ - "{ status?: \"online\" | \"error\" | \"degraded\" | undefined; local_metadata?: Record | undefined; events?: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentEvent", - "text": "NewAgentEvent" - }, - "[] | undefined; }" + "any" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L46" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 31 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentCheckinResponse", + "id": "def-common.PackagePolicyPackage", "type": "Interface", - "label": "PostAgentCheckinResponse", + "label": "PackagePolicyPackage", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentCheckinResponse.action", + "id": "def-common.PackagePolicyPackage.name", "type": "string", - "label": "action", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L58" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 9 } }, { "tags": [], - "id": "def-common.PostAgentCheckinResponse.actions", - "type": "Array", - "label": "actions", + "id": "def-common.PackagePolicyPackage.title", + "type": "string", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L60" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentAction", - "text": "AgentAction" - }, - "[]" - ] + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 10 + } + }, + { + "tags": [], + "id": "def-common.PackagePolicyPackage.version", + "type": "string", + "label": "version", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 11 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L57" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 8 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentEnrollRequest", + "id": "def-common.PackageSpecIcon", "type": "Interface", - "label": "PostAgentEnrollRequest", + "label": "PackageSpecIcon", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentEnrollRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PackageSpecIcon.src", + "type": "string", + "label": "src", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L64" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 61 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecIcon.title", + "type": "string", + "label": "title", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 62 }, "signature": [ - "{ type: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentType", - "text": "AgentType" - }, - "; metadata: { local: Record; user_provided: Record; }; }" + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecIcon.size", + "type": "string", + "label": "size", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 63 + }, + "signature": [ + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecIcon.type", + "type": "string", + "label": "type", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 64 + }, + "signature": [ + "string | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 63, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L63" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 60 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentEnrollResponse", + "id": "def-common.PackageSpecManifest", "type": "Interface", - "label": "PostAgentEnrollResponse", + "label": "PackageSpecManifest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentEnrollResponse.action", + "id": "def-common.PackageSpecManifest.format_version", "type": "string", - "label": "action", + "label": "format_version", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 74, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L74" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 12 } }, { "tags": [], - "id": "def-common.PostAgentEnrollResponse.item", + "id": "def-common.PackageSpecManifest.name", + "type": "string", + "label": "name", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 13 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.title", + "type": "string", + "label": "title", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 14 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.description", + "type": "string", + "label": "description", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 15 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.version", + "type": "string", + "label": "version", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 16 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.license", + "type": "string", + "label": "license", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 17 + }, + "signature": [ + "\"basic\" | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.type", + "type": "string", + "label": "type", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 18 + }, + "signature": [ + "\"integration\" | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.release", "type": "CompoundType", - "label": "item", + "label": "release", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L76" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 19 + }, + "signature": [ + "\"experimental\" | \"beta\" | \"ga\"" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.categories", + "type": "Array", + "label": "categories", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 20 + }, + "signature": [ + "(\"custom\" | \"security\" | \"monitoring\" | \"aws\" | \"azure\" | \"cloud\" | \"config_management\" | \"containers\" | \"crm\" | \"datastore\" | \"elastic_stack\" | \"google_cloud\" | \"kubernetes\" | \"languages\" | \"message_queue\" | \"network\" | \"notification\" | \"os_system\" | \"productivity\" | \"support\" | \"ticketing\" | \"version_control\" | \"web\" | undefined)[] | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.conditions", + "type": "Object", + "label": "conditions", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 21 + }, + "signature": [ + "Record<\"kibana\", { version: string; }> | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.icons", + "type": "Array", + "label": "icons", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 22 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Agent", - "text": "Agent" + "section": "def-common.PackageSpecIcon", + "text": "PackageSpecIcon" }, - " & { status: ", + "[] | undefined" + ] + }, + { + "tags": [], + "id": "def-common.PackageSpecManifest.screenshots", + "type": "Array", + "label": "screenshots", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 23 + }, + "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentStatus", - "text": "AgentStatus" + "section": "def-common.PackageSpecScreenshot", + "text": "PackageSpecScreenshot" }, - "; }" + "[] | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L73" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PostAgentAcksRequest", - "type": "Interface", - "label": "PostAgentAcksRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.PostAgentAcksRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PackageSpecManifest.policy_templates", + "type": "Array", + "label": "policy_templates", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 80, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L80" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 24 }, "signature": [ - "{ events: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentEvent", - "text": "AgentEvent" + "section": "def-common.RegistryPolicyTemplate", + "text": "RegistryPolicyTemplate" }, - "[]; }" + "[] | undefined" ] }, { "tags": [], - "id": "def-common.PostAgentAcksRequest.params", + "id": "def-common.PackageSpecManifest.owner", "type": "Object", - "label": "params", + "label": "owner", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 83, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L83" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 25 }, "signature": [ - "{ agentId: string; }" + "{ github: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 79, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L79" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 11 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentAcksResponse", + "id": "def-common.PackageSpecScreenshot", "type": "Interface", - "label": "PostAgentAcksResponse", + "label": "PackageSpecScreenshot", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentAcksResponse.action", + "id": "def-common.PackageSpecScreenshot.src", "type": "string", - "label": "action", + "label": "src", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L89" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 68 } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 88, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L88" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PostNewAgentActionRequest", - "type": "Interface", - "label": "PostNewAgentActionRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.PostNewAgentActionRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PackageSpecScreenshot.title", + "type": "string", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L93" - }, - "signature": [ - "{ action: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentAction", - "text": "NewAgentAction" - }, - "; }" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 69 + } + }, + { + "tags": [], + "id": "def-common.PackageSpecScreenshot.size", + "type": "string", + "label": "size", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 70 + }, + "signature": [ + "string | undefined" ] }, { "tags": [], - "id": "def-common.PostNewAgentActionRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.PackageSpecScreenshot.type", + "type": "string", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 96, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L96" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 71 }, "signature": [ - "{ agentId: string; }" + "string | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 92, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L92" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 67 }, "initialIsOpen": false }, { - "id": "def-common.PostNewAgentActionResponse", + "id": "def-common.PackageUsageStats", "type": "Interface", - "label": "PostNewAgentActionResponse", + "label": "PackageUsageStats", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostNewAgentActionResponse.item", - "type": "Object", - "label": "item", + "id": "def-common.PackageUsageStats.agent_policy_count", + "type": "number", + "label": "agent_policy_count", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 102, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L102" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentAction", - "text": "AgentAction" - } - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 289 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 101, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L101" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 288 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentUnenrollRequest", + "id": "def-common.PostAgentAcksRequest", "type": "Interface", - "label": "PostAgentUnenrollRequest", + "label": "PostAgentAcksRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentUnenrollRequest.params", + "id": "def-common.PostAgentAcksRequest.body", "type": "Object", - "label": "params", + "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 106, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L106" + "lineNumber": 80 }, "signature": [ - "{ agentId: string; }" + "{ events: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentEvent", + "text": "AgentEvent" + }, + "[]; }" ] }, { "tags": [], - "id": "def-common.PostAgentUnenrollRequest.body", + "id": "def-common.PostAgentAcksRequest.params", "type": "Object", - "label": "body", + "label": "params", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 109, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L109" + "lineNumber": 83 }, "signature": [ - "{ force?: boolean | undefined; }" + "{ agentId: string; }" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 105, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L105" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PostAgentUnenrollResponse", - "type": "Interface", - "label": "PostAgentUnenrollResponse", - "description": [], - "tags": [], - "children": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L115" + "lineNumber": 79 }, "initialIsOpen": false }, { - "id": "def-common.PostBulkAgentUnenrollRequest", + "id": "def-common.PostAgentAcksResponse", "type": "Interface", - "label": "PostBulkAgentUnenrollRequest", + "label": "PostAgentAcksResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostBulkAgentUnenrollRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PostAgentAcksResponse.action", + "type": "string", + "label": "action", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 118, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L118" - }, - "signature": [ - "{ agents: string | string[]; force?: boolean | undefined; }" - ] + "lineNumber": 89 + } } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 117, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L117" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PostBulkAgentUnenrollResponse", - "type": "Interface", - "label": "PostBulkAgentUnenrollResponse", - "description": [], - "tags": [], - "children": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 125, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L125" + "lineNumber": 88 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentUpgradeRequest", + "id": "def-common.PostAgentCheckinRequest", "type": "Interface", - "label": "PostAgentUpgradeRequest", + "label": "PostAgentCheckinRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostAgentUpgradeRequest.params", + "id": "def-common.PostAgentCheckinRequest.params", "type": "Object", "label": "params", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 128, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L128" + "lineNumber": 47 }, "signature": [ "{ agentId: string; }" @@ -10151,102 +10053,185 @@ }, { "tags": [], - "id": "def-common.PostAgentUpgradeRequest.body", + "id": "def-common.PostAgentCheckinRequest.body", "type": "Object", "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 131, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L131" + "lineNumber": 50 }, "signature": [ - "{ source_uri?: string | undefined; version: string; }" + "{ status?: \"online\" | \"error\" | \"degraded\" | undefined; local_metadata?: Record | undefined; events?: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewAgentEvent", + "text": "NewAgentEvent" + }, + "[] | undefined; }" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 127, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L127" + "lineNumber": 46 }, "initialIsOpen": false }, { - "id": "def-common.PostBulkAgentUpgradeRequest", + "id": "def-common.PostAgentCheckinResponse", "type": "Interface", - "label": "PostBulkAgentUpgradeRequest", + "label": "PostAgentCheckinResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PostBulkAgentUpgradeRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PostAgentCheckinResponse.action", + "type": "string", + "label": "action", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 58 + } + }, + { + "tags": [], + "id": "def-common.PostAgentCheckinResponse.actions", + "type": "Array", + "label": "actions", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 138, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L138" + "lineNumber": 60 }, "signature": [ - "{ agents: string | string[]; source_uri?: string | undefined; version: string; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentAction", + "text": "AgentAction" + }, + "[]" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 137, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L137" + "lineNumber": 57 }, "initialIsOpen": false }, { - "id": "def-common.PostBulkAgentUpgradeResponse", + "id": "def-common.PostAgentEnrollRequest", "type": "Interface", - "label": "PostBulkAgentUpgradeResponse", + "label": "PostAgentEnrollRequest", "description": [], "tags": [], - "children": [], + "children": [ + { + "tags": [], + "id": "def-common.PostAgentEnrollRequest.body", + "type": "Object", + "label": "body", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 64 + }, + "signature": [ + "{ type: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentType", + "text": "AgentType" + }, + "; metadata: { local: Record; user_provided: Record; }; }" + ] + } + ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 145, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L145" + "lineNumber": 63 }, "initialIsOpen": false }, { - "id": "def-common.PostAgentUpgradeResponse", + "id": "def-common.PostAgentEnrollResponse", "type": "Interface", - "label": "PostAgentUpgradeResponse", + "label": "PostAgentEnrollResponse", "description": [], "tags": [], - "children": [], + "children": [ + { + "tags": [], + "id": "def-common.PostAgentEnrollResponse.action", + "type": "string", + "label": "action", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 74 + } + }, + { + "tags": [], + "id": "def-common.PostAgentEnrollResponse.item", + "type": "CompoundType", + "label": "item", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 76 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Agent", + "text": "Agent" + }, + " & { status: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentStatus", + "text": "AgentStatus" + }, + "; }" + ] + } + ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 148, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L148" + "lineNumber": 73 }, "initialIsOpen": false }, { - "id": "def-common.PutAgentReassignRequest", + "id": "def-common.PostAgentUnenrollRequest", "type": "Interface", - "label": "PutAgentReassignRequest", + "label": "PostAgentUnenrollRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.PutAgentReassignRequest.params", + "id": "def-common.PostAgentUnenrollRequest.params", "type": "Object", "label": "params", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 151, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L151" + "lineNumber": 106 }, "signature": [ "{ agentId: string; }" @@ -10254,43 +10239,95 @@ }, { "tags": [], - "id": "def-common.PutAgentReassignRequest.body", + "id": "def-common.PostAgentUnenrollRequest.body", "type": "Object", "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 154, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L154" + "lineNumber": 109 }, "signature": [ - "{ policy_id: string; }" + "{ force?: boolean | undefined; }" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 150, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L150" + "lineNumber": 105 }, "initialIsOpen": false }, { - "id": "def-common.PutAgentReassignResponse", + "id": "def-common.PostAgentUnenrollResponse", "type": "Interface", - "label": "PutAgentReassignResponse", + "label": "PostAgentUnenrollResponse", "description": [], "tags": [], "children": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 158, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L158" + "lineNumber": 115 }, "initialIsOpen": false }, { - "id": "def-common.PostBulkAgentReassignRequest", + "id": "def-common.PostAgentUpgradeRequest", + "type": "Interface", + "label": "PostAgentUpgradeRequest", + "description": [], + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.PostAgentUpgradeRequest.params", + "type": "Object", + "label": "params", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 128 + }, + "signature": [ + "{ agentId: string; }" + ] + }, + { + "tags": [], + "id": "def-common.PostAgentUpgradeRequest.body", + "type": "Object", + "label": "body", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 131 + }, + "signature": [ + "{ source_uri?: string | undefined; version: string; }" + ] + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 127 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostAgentUpgradeResponse", + "type": "Interface", + "label": "PostAgentUpgradeResponse", + "description": [], + "tags": [], + "children": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 148 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostBulkAgentReassignRequest", "type": "Interface", "label": "PostBulkAgentReassignRequest", "description": [], @@ -10304,8 +10341,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 161, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L161" + "lineNumber": 161 }, "signature": [ "{ policy_id: string; agents: string | string[]; }" @@ -10314,8 +10350,7 @@ ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 160, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L160" + "lineNumber": 160 }, "initialIsOpen": false }, @@ -10334,8 +10369,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 168, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L168" + "lineNumber": 168 }, "signature": [ "any" @@ -10344,2505 +10378,1681 @@ ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 167, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L167" + "lineNumber": 167 }, "initialIsOpen": false }, { - "id": "def-common.GetOneAgentEventsRequest", + "id": "def-common.PostBulkAgentUnenrollRequest", "type": "Interface", - "label": "GetOneAgentEventsRequest", + "label": "PostBulkAgentUnenrollRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneAgentEventsRequest.params", + "id": "def-common.PostBulkAgentUnenrollRequest.body", "type": "Object", - "label": "params", + "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 175, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L175" + "lineNumber": 118 }, "signature": [ - "{ agentId: string; }" + "{ agents: string | string[]; force?: boolean | undefined; }" ] - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 117 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostBulkAgentUnenrollResponse", + "type": "Interface", + "label": "PostBulkAgentUnenrollResponse", + "description": [], + "tags": [], + "children": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 125 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostBulkAgentUpgradeRequest", + "type": "Interface", + "label": "PostBulkAgentUpgradeRequest", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.GetOneAgentEventsRequest.query", + "id": "def-common.PostBulkAgentUpgradeRequest.body", "type": "Object", - "label": "query", + "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 178, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L178" + "lineNumber": 138 }, "signature": [ - "{ page: number; perPage: number; kuery?: string | undefined; }" + "{ agents: string | string[]; source_uri?: string | undefined; version: string; }" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 174, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L174" + "lineNumber": 137 }, "initialIsOpen": false }, { - "id": "def-common.GetOneAgentEventsResponse", + "id": "def-common.PostBulkAgentUpgradeResponse", "type": "Interface", - "label": "GetOneAgentEventsResponse", + "label": "PostBulkAgentUpgradeResponse", + "description": [], + "tags": [], + "children": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 145 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostEnrollmentAPIKeyRequest", + "type": "Interface", + "label": "PostEnrollmentAPIKeyRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneAgentEventsResponse.list", - "type": "Array", - "label": "list", + "id": "def-common.PostEnrollmentAPIKeyRequest.body", + "type": "Object", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 186, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L186" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 46 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentEvent", - "text": "AgentEvent" - }, - "[]" + "{ name?: string | undefined; policy_id: string; expiration?: string | undefined; }" ] - }, - { - "tags": [], - "id": "def-common.GetOneAgentEventsResponse.total", - "type": "number", - "label": "total", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 187, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L187" - } - }, + } + ], + "source": { + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 45 + }, + "initialIsOpen": false + }, + { + "id": "def-common.PostEnrollmentAPIKeyResponse", + "type": "Interface", + "label": "PostEnrollmentAPIKeyResponse", + "description": [], + "tags": [], + "children": [ { "tags": [], - "id": "def-common.GetOneAgentEventsResponse.page", - "type": "number", - "label": "page", + "id": "def-common.PostEnrollmentAPIKeyResponse.action", + "type": "string", + "label": "action", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L188" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 54 } }, { "tags": [], - "id": "def-common.GetOneAgentEventsResponse.perPage", - "type": "number", - "label": "perPage", + "id": "def-common.PostEnrollmentAPIKeyResponse.item", + "type": "Object", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 189, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L189" - } + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 55 + }, + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EnrollmentAPIKey", + "text": "EnrollmentAPIKey" + } + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 185, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L185" + "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", + "lineNumber": 53 }, "initialIsOpen": false }, { - "id": "def-common.DeleteAgentRequest", + "id": "def-common.PostIngestSetupResponse", "type": "Interface", - "label": "DeleteAgentRequest", + "label": "PostIngestSetupResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.DeleteAgentRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.PostIngestSetupResponse.isInitialized", + "type": "boolean", + "label": "isInitialized", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 193, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L193" - }, - "signature": [ - "{ agentId: string; }" - ] + "path": "x-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts", + "lineNumber": 9 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 192, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L192" + "path": "x-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts", + "lineNumber": 8 }, "initialIsOpen": false }, { - "id": "def-common.UpdateAgentRequest", + "id": "def-common.PostNewAgentActionRequest", "type": "Interface", - "label": "UpdateAgentRequest", + "label": "PostNewAgentActionRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.UpdateAgentRequest.params", + "id": "def-common.PostNewAgentActionRequest.body", "type": "Object", - "label": "params", + "label": "body", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 199, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L199" + "lineNumber": 93 }, "signature": [ - "{ agentId: string; }" + "{ action: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewAgentAction", + "text": "NewAgentAction" + }, + "; }" ] }, { "tags": [], - "id": "def-common.UpdateAgentRequest.body", + "id": "def-common.PostNewAgentActionRequest.params", "type": "Object", - "label": "body", + "label": "params", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 202, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L202" + "lineNumber": 96 }, "signature": [ - "{ user_provided_metadata: Record; }" + "{ agentId: string; }" ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 198, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L198" + "lineNumber": 92 }, "initialIsOpen": false }, { - "id": "def-common.GetAgentStatusRequest", + "id": "def-common.PostNewAgentActionResponse", "type": "Interface", - "label": "GetAgentStatusRequest", + "label": "PostNewAgentActionResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetAgentStatusRequest.query", + "id": "def-common.PostNewAgentActionResponse.item", "type": "Object", - "label": "query", + "label": "item", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 208, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L208" + "lineNumber": 102 }, "signature": [ - "{ kuery?: string | undefined; policyId?: string | undefined; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentAction", + "text": "AgentAction" + } ] } ], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 207, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L207" + "lineNumber": 101 }, "initialIsOpen": false }, { - "id": "def-common.GetAgentStatusResponse", + "id": "def-common.PutAgentReassignRequest", "type": "Interface", - "label": "GetAgentStatusResponse", + "label": "PutAgentReassignRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetAgentStatusResponse.results", + "id": "def-common.PutAgentReassignRequest.params", "type": "Object", - "label": "results", + "label": "params", "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 215, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L215" + "lineNumber": 151 }, "signature": [ - "{ events: number; total: number; online: number; error: number; offline: number; other: number; updating: number; }" + "{ agentId: string; }" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", - "lineNumber": 214, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent.ts#L214" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetAgentPoliciesRequest", - "type": "Interface", - "label": "GetAgentPoliciesRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetAgentPoliciesRequest.query", - "type": "CompoundType", - "label": "query", + "id": "def-common.PutAgentReassignRequest.body", + "type": "Object", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L13" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 154 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.ListWithKuery", - "text": "ListWithKuery" - }, - " & { full?: boolean | undefined; }" + "{ policy_id: string; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L12" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 150 }, "initialIsOpen": false }, { - "id": "def-common.GetAgentPoliciesResponse", + "id": "def-common.PutAgentReassignResponse", "type": "Interface", - "label": "GetAgentPoliciesResponse", + "label": "PutAgentReassignResponse", "description": [], "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetAgentPoliciesResponse.items", - "type": "Array", - "label": "items", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L21" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.GetAgentPoliciesResponseItem", - "text": "GetAgentPoliciesResponseItem" - }, - "[]" - ] - }, - { - "tags": [], - "id": "def-common.GetAgentPoliciesResponse.total", - "type": "number", - "label": "total", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L22" - } - }, - { - "tags": [], - "id": "def-common.GetAgentPoliciesResponse.page", - "type": "number", - "label": "page", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L23" - } - }, - { - "tags": [], - "id": "def-common.GetAgentPoliciesResponse.perPage", - "type": "number", - "label": "perPage", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L24" - } - } - ], + "children": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L20" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 158 }, "initialIsOpen": false }, { - "id": "def-common.GetOneAgentPolicyRequest", + "id": "def-common.PutOutputRequest", "type": "Interface", - "label": "GetOneAgentPolicyRequest", + "label": "PutOutputRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneAgentPolicyRequest.params", + "id": "def-common.PutOutputRequest.params", "type": "Object", "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L28" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 21 }, "signature": [ - "{ agentPolicyId: string; }" + "{ outputId: string; }" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L27" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetOneAgentPolicyResponse", - "type": "Interface", - "label": "GetOneAgentPolicyResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetOneAgentPolicyResponse.item", + "id": "def-common.PutOutputRequest.body", "type": "Object", - "label": "item", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 34, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L34" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 24 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - } + "{ hosts?: string[] | undefined; ca_sha256?: string | undefined; config?: Record | undefined; config_yaml?: string | undefined; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L33" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 20 }, "initialIsOpen": false }, { - "id": "def-common.CreateAgentPolicyRequest", + "id": "def-common.PutOutputResponse", "type": "Interface", - "label": "CreateAgentPolicyRequest", + "label": "PutOutputResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CreateAgentPolicyRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.PutOutputResponse.item", + "type": "CompoundType", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L38" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 33 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.NewAgentPolicy", - "text": "NewAgentPolicy" + "section": "def-common.Output", + "text": "Output" } ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L37" + "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", + "lineNumber": 32 }, "initialIsOpen": false }, { - "id": "def-common.CreateAgentPolicyResponse", + "id": "def-common.PutSettingsRequest", "type": "Interface", - "label": "CreateAgentPolicyResponse", + "label": "PutSettingsRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CreateAgentPolicyResponse.item", + "id": "def-common.PutSettingsRequest.body", "type": "Object", - "label": "item", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L42" + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 15 }, "signature": [ + "Partial>" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L41" + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 14 }, "initialIsOpen": false }, { - "id": "def-common.UpdateAgentPolicyResponse", + "id": "def-common.PutSettingsResponse", "type": "Interface", - "label": "UpdateAgentPolicyResponse", + "label": "PutSettingsResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.UpdateAgentPolicyResponse.item", + "id": "def-common.PutSettingsResponse.item", "type": "Object", "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L50" + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 19 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" + "section": "def-common.Settings", + "text": "Settings" } ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L49" + "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", + "lineNumber": 18 }, "initialIsOpen": false }, { - "id": "def-common.CopyAgentPolicyRequest", + "id": "def-common.RegistryDataStream", "type": "Interface", - "label": "CopyAgentPolicyRequest", + "label": "RegistryDataStream", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CopyAgentPolicyRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.RegistryDataStream.type", + "type": "string", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L54" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 215 + } + }, + { + "tags": [], + "id": "def-common.RegistryDataStream.ilm_policy", + "type": "string", + "label": "ilm_policy", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 216 }, "signature": [ - "Pick<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - }, - ", \"description\" | \"name\">" + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L53" - }, - "initialIsOpen": false - }, - { - "id": "def-common.CopyAgentPolicyResponse", - "type": "Interface", - "label": "CopyAgentPolicyResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.CopyAgentPolicyResponse.item", - "type": "Object", - "label": "item", + "id": "def-common.RegistryDataStream.hidden", + "type": "CompoundType", + "label": "hidden", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L58" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 217 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicy", - "text": "AgentPolicy" - } + "boolean | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L57" - }, - "initialIsOpen": false - }, - { - "id": "def-common.DeleteAgentPolicyRequest", - "type": "Interface", - "label": "DeleteAgentPolicyRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.DeleteAgentPolicyRequest.body", - "type": "Object", - "label": "body", + "id": "def-common.RegistryDataStream.dataset", + "type": "string", + "label": "dataset", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 62, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L62" - }, - "signature": [ - "{ agentPolicyId: string; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 61, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L61" - }, - "initialIsOpen": false - }, - { - "id": "def-common.DeleteAgentPolicyResponse", - "type": "Interface", - "label": "DeleteAgentPolicyResponse", - "description": [], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 218 + } + }, { "tags": [], - "id": "def-common.DeleteAgentPolicyResponse.id", + "id": "def-common.RegistryDataStream.title", "type": "string", - "label": "id", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 68, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L68" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 219 } }, { "tags": [], - "id": "def-common.DeleteAgentPolicyResponse.name", + "id": "def-common.RegistryDataStream.release", "type": "string", - "label": "name", + "label": "release", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L69" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 220 } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L67" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetFullAgentPolicyRequest", - "type": "Interface", - "label": "GetFullAgentPolicyRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetFullAgentPolicyRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.RegistryDataStream.streams", + "type": "Array", + "label": "streams", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L73" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 221 }, "signature": [ - "{ agentPolicyId: string; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.RegistryStream", + "text": "RegistryStream" + }, + "[] | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 72, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L72" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetFullAgentPolicyResponse", - "type": "Interface", - "label": "GetFullAgentPolicyResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetFullAgentPolicyResponse.item", + "id": "def-common.RegistryDataStream.package", + "type": "string", + "label": "package", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 222 + } + }, + { + "tags": [], + "id": "def-common.RegistryDataStream.path", + "type": "string", + "label": "path", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 223 + } + }, + { + "tags": [], + "id": "def-common.RegistryDataStream.ingest_pipeline", + "type": "string", + "label": "ingest_pipeline", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 224 + } + }, + { + "tags": [], + "id": "def-common.RegistryDataStream.elasticsearch", "type": "Object", - "label": "item", + "label": "elasticsearch", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 79, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L79" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 225 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.FullAgentPolicy", - "text": "FullAgentPolicy" - } + "section": "def-common.RegistryElasticsearch", + "text": "RegistryElasticsearch" + }, + " | undefined" + ] + }, + { + "tags": [], + "id": "def-common.RegistryDataStream.dataset_is_prefix", + "type": "CompoundType", + "label": "dataset_is_prefix", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 226 + }, + "signature": [ + "boolean | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 78, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L78" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 214 }, "initialIsOpen": false }, { - "id": "def-common.CreateFleetSetupResponse", + "id": "def-common.RegistryElasticsearch", "type": "Interface", - "label": "CreateFleetSetupResponse", + "label": "RegistryElasticsearch", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.CreateFleetSetupResponse.isInitialized", - "type": "boolean", - "label": "isInitialized", + "id": "def-common.RegistryElasticsearch.'index_template.settings'", + "type": "Uncategorized", + "label": "'index_template.settings'", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts#L9" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 230 + }, + "signature": [ + "object | undefined" + ] + }, + { + "tags": [], + "id": "def-common.RegistryElasticsearch.'index_template.mappings'", + "type": "Uncategorized", + "label": "'index_template.mappings'", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 231 + }, + "signature": [ + "object | undefined" + ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts#L8" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 229 }, "initialIsOpen": false }, { - "id": "def-common.GetFleetStatusResponse", + "id": "def-common.RegistryImage", "type": "Interface", - "label": "GetFleetStatusResponse", + "label": "RegistryImage", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetFleetStatusResponse.isReady", - "type": "boolean", - "label": "isReady", + "id": "def-common.RegistryImage.src", + "type": "string", + "label": "src", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 113 } }, { "tags": [], - "id": "def-common.GetFleetStatusResponse.missing_requirements", - "type": "Array", - "label": "missing_requirements", + "id": "def-common.RegistryImage.path", + "type": "string", + "label": "path", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts#L14" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 114 + } + }, + { + "tags": [], + "id": "def-common.RegistryImage.title", + "type": "string", + "label": "title", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 115 }, "signature": [ - "(\"tls_required\" | \"api_keys\" | \"fleet_admin_user\" | \"encrypted_saved_object_encryption_key_required\")[]" + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/fleet_setup.ts#L12" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetCategoriesRequest", - "type": "Interface", - "label": "GetCategoriesRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetCategoriesRequest.query", - "type": "Object", - "label": "query", + "id": "def-common.RegistryImage.size", + "type": "string", + "label": "size", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L18" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 116 }, "signature": [ - "{ experimental?: boolean | undefined; }" + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.RegistryImage.type", + "type": "string", + "label": "type", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 117 + }, + "signature": [ + "string | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L17" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 112 }, "initialIsOpen": false }, { - "id": "def-common.GetCategoriesResponse", + "id": "def-common.RegistryInput", "type": "Interface", - "label": "GetCategoriesResponse", + "label": "RegistryInput", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetCategoriesResponse.response", - "type": "Array", - "label": "response", + "id": "def-common.RegistryInput.type", + "type": "string", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L24" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 128 + } + }, + { + "tags": [], + "id": "def-common.RegistryInput.title", + "type": "string", + "label": "title", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 129 + } + }, + { + "tags": [], + "id": "def-common.RegistryInput.description", + "type": "string", + "label": "description", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 130 + } + }, + { + "tags": [], + "id": "def-common.RegistryInput.template_path", + "type": "string", + "label": "template_path", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 131 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.CategorySummaryList", - "text": "CategorySummaryList" - } + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L23" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetPackagesRequest", - "type": "Interface", - "label": "GetPackagesRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetPackagesRequest.query", - "type": "Object", - "label": "query", + "id": "def-common.RegistryInput.condition", + "type": "string", + "label": "condition", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L28" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 132 }, "signature": [ - "{ category?: string | undefined; experimental?: boolean | undefined; }" + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L27" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetPackagesResponse", - "type": "Interface", - "label": "GetPackagesResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetPackagesResponse.response", + "id": "def-common.RegistryInput.vars", "type": "Array", - "label": "response", + "label": "vars", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 35, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L35" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 133 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Installable", - "text": "Installable" - }, - ">[]" + "[] | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 34, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L34" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 127 }, "initialIsOpen": false }, { - "id": "def-common.GetLimitedPackagesResponse", + "id": "def-common.RegistryPolicyTemplate", "type": "Interface", - "label": "GetLimitedPackagesResponse", + "label": "RegistryPolicyTemplate", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetLimitedPackagesResponse.response", - "type": "Array", - "label": "response", + "id": "def-common.RegistryPolicyTemplate.name", + "type": "string", + "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L39" - }, - "signature": [ - "string[]" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L38" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetFileRequest", - "type": "Interface", - "label": "GetFileRequest", - "description": [], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 121 + } + }, { "tags": [], - "id": "def-common.GetFileRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.RegistryPolicyTemplate.title", + "type": "string", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L43" - }, - "signature": [ - "{ pkgkey: string; filePath: string; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L42" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetInfoRequest", - "type": "Interface", - "label": "GetInfoRequest", - "description": [], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 122 + } + }, { "tags": [], - "id": "def-common.GetInfoRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.RegistryPolicyTemplate.description", + "type": "string", + "label": "description", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 50, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L50" - }, - "signature": [ - "{ pkgkey: string; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 49, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L49" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetInfoResponse", - "type": "Interface", - "label": "GetInfoResponse", - "description": [], - "tags": [], - "children": [ + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 123 + } + }, { "tags": [], - "id": "def-common.GetInfoResponse.response", - "type": "CompoundType", - "label": "response", + "id": "def-common.RegistryPolicyTemplate.inputs", + "type": "Array", + "label": "inputs", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L56" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 124 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.PackageInfo", - "text": "PackageInfo" - } + "section": "def-common.RegistryInput", + "text": "RegistryInput" + }, + "[] | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L55" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetStatsRequest", - "type": "Interface", - "label": "GetStatsRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.GetStatsRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.RegistryPolicyTemplate.multiple", + "type": "CompoundType", + "label": "multiple", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L60" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 125 }, "signature": [ - "{ pkgname: string; }" + "boolean | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 59, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L59" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 120 }, "initialIsOpen": false }, { - "id": "def-common.GetStatsResponse", + "id": "def-common.RegistryStream", "type": "Interface", - "label": "GetStatsResponse", + "label": "RegistryStream", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetStatsResponse.response", - "type": "Object", - "label": "response", + "id": "def-common.RegistryStream.input", + "type": "string", + "label": "input", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 66, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L66" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageUsageStats", - "text": "PackageUsageStats" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 136 + } + }, + { + "tags": [], + "id": "def-common.RegistryStream.title", + "type": "string", + "label": "title", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 137 + } + }, + { + "tags": [], + "id": "def-common.RegistryStream.description", + "type": "string", + "label": "description", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 138 + }, + "signature": [ + "string | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 65, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L65" - }, - "initialIsOpen": false - }, - { - "id": "def-common.InstallPackageRequest", - "type": "Interface", - "label": "InstallPackageRequest", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.InstallPackageRequest.params", - "type": "Object", - "label": "params", + "id": "def-common.RegistryStream.enabled", + "type": "CompoundType", + "label": "enabled", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 70, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L70" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 139 }, "signature": [ - "{ pkgkey: string; }" + "boolean | undefined" ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L69" - }, - "initialIsOpen": false - }, - { - "id": "def-common.InstallPackageResponse", - "type": "Interface", - "label": "InstallPackageResponse", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.InstallPackageResponse.response", + "id": "def-common.RegistryStream.vars", "type": "Array", - "label": "response", + "label": "vars", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L76" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 140 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AssetReference", - "text": "AssetReference" + "section": "def-common.RegistryVarsEntry", + "text": "RegistryVarsEntry" }, - "[]" + "[] | undefined" ] + }, + { + "tags": [], + "id": "def-common.RegistryStream.template_path", + "type": "string", + "label": "template_path", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 141 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 75, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L75" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 135 }, "initialIsOpen": false }, { - "id": "def-common.IBulkInstallPackageHTTPError", + "id": "def-common.RegistryVarsEntry", "type": "Interface", - "label": "IBulkInstallPackageHTTPError", + "label": "RegistryVarsEntry", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.IBulkInstallPackageHTTPError.name", + "id": "def-common.RegistryVarsEntry.name", "type": "string", "label": "name", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 80, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L80" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 239 } }, { "tags": [], - "id": "def-common.IBulkInstallPackageHTTPError.statusCode", - "type": "number", - "label": "statusCode", + "id": "def-common.RegistryVarsEntry.title", + "type": "string", + "label": "title", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 81, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L81" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 240 + }, + "signature": [ + "string | undefined" + ] }, { "tags": [], - "id": "def-common.IBulkInstallPackageHTTPError.error", + "id": "def-common.RegistryVarsEntry.description", + "type": "string", + "label": "description", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 241 + }, + "signature": [ + "string | undefined" + ] + }, + { + "tags": [], + "id": "def-common.RegistryVarsEntry.type", "type": "CompoundType", - "label": "error", + "label": "type", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 82, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L82" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 242 }, "signature": [ - "string | Error" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.RegistryVarType", + "text": "RegistryVarType" + } ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 79, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L79" - }, - "initialIsOpen": false - }, - { - "id": "def-common.BulkInstallPackageInfo", - "type": "Interface", - "label": "BulkInstallPackageInfo", - "description": [], - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.BulkInstallPackageInfo.name", - "type": "string", - "label": "name", + "id": "def-common.RegistryVarsEntry.required", + "type": "CompoundType", + "label": "required", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 86, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L86" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 243 + }, + "signature": [ + "boolean | undefined" + ] }, { "tags": [], - "id": "def-common.BulkInstallPackageInfo.newVersion", - "type": "string", - "label": "newVersion", + "id": "def-common.RegistryVarsEntry.show_user", + "type": "CompoundType", + "label": "show_user", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L87" - } + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 244 + }, + "signature": [ + "boolean | undefined" + ] }, { "tags": [], - "id": "def-common.BulkInstallPackageInfo.oldVersion", + "id": "def-common.RegistryVarsEntry.multi", "type": "CompoundType", - "label": "oldVersion", + "label": "multi", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L89" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 245 }, "signature": [ - "string | null" + "boolean | undefined" ] }, { "tags": [], - "id": "def-common.BulkInstallPackageInfo.assets", - "type": "Array", - "label": "assets", + "id": "def-common.RegistryVarsEntry.default", + "type": "CompoundType", + "label": "default", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L90" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 246 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AssetReference", - "text": "AssetReference" - }, - "[]" + "string | string[] | undefined" + ] + }, + { + "tags": [], + "id": "def-common.RegistryVarsEntry.os", + "type": "Object", + "label": "os", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 247 + }, + "signature": [ + "{ [key: string]: { default: string | string[]; }; } | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 85, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L85" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 238 }, "initialIsOpen": false }, { - "id": "def-common.BulkInstallPackagesResponse", + "id": "def-common.ServiceRequirements", "type": "Interface", - "label": "BulkInstallPackagesResponse", + "label": "ServiceRequirements", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.BulkInstallPackagesResponse.response", - "type": "Array", - "label": "response", + "id": "def-common.ServiceRequirements.versions", + "type": "string", + "label": "versions", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L94" - }, - "signature": [ - "(", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.IBulkInstallPackageHTTPError", - "text": "IBulkInstallPackageHTTPError" - }, - " | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.BulkInstallPackageInfo", - "text": "BulkInstallPackageInfo" - }, - ")[]" - ] + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 147 + } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L93" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 146 }, "initialIsOpen": false }, { - "id": "def-common.BulkInstallPackagesRequest", + "id": "def-common.Settings", "type": "Interface", - "label": "BulkInstallPackagesRequest", - "description": [], - "tags": [], - "children": [ + "label": "Settings", + "signature": [ { - "tags": [], - "id": "def-common.BulkInstallPackagesRequest.body", - "type": "Object", - "label": "body", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 98, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L98" - }, - "signature": [ - "{ packages: string[]; }" - ] + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Settings", + "text": "Settings" + }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.BaseSettings", + "text": "BaseSettings" } ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 97, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L97" - }, - "initialIsOpen": false - }, - { - "id": "def-common.MessageResponse", - "type": "Interface", - "label": "MessageResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.MessageResponse.response", + "id": "def-common.Settings.id", "type": "string", - "label": "response", + "label": "id", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 104, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L104" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 19 } } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 103, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L103" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 18 }, "initialIsOpen": false }, { - "id": "def-common.DeletePackageRequest", + "id": "def-common.SettingsSOAttributes", "type": "Interface", - "label": "DeletePackageRequest", - "description": [], - "tags": [], - "children": [ + "label": "SettingsSOAttributes", + "signature": [ { - "tags": [], - "id": "def-common.DeletePackageRequest.params", - "type": "Object", - "label": "params", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 108, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L108" - }, - "signature": [ - "{ pkgkey: string; }" - ] - } + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.SettingsSOAttributes", + "text": "SettingsSOAttributes" + }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.BaseSettings", + "text": "BaseSettings" + }, + ",", + "SavedObjectAttributes" ], + "description": [], + "tags": [], + "children": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L107" + "path": "x-pack/plugins/fleet/common/types/models/settings.ts", + "lineNumber": 22 }, "initialIsOpen": false }, { - "id": "def-common.DeletePackageResponse", + "id": "def-common.TemplateRef", "type": "Interface", - "label": "DeletePackageResponse", + "label": "TemplateRef", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.DeletePackageResponse.response", - "type": "Array", - "label": "response", + "id": "def-common.TemplateRef.templateName", + "type": "string", + "label": "templateName", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 114, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L114" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 340 + } + }, + { + "tags": [], + "id": "def-common.TemplateRef.indexTemplate", + "type": "Object", + "label": "indexTemplate", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 341 }, "signature": [ { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.AssetReference", - "text": "AssetReference" - }, - "[]" + "section": "def-common.IndexTemplate", + "text": "IndexTemplate" + } ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/epm.ts", - "lineNumber": 113, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/epm.ts#L113" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 339 }, "initialIsOpen": false }, { - "id": "def-common.GetEnrollmentAPIKeysRequest", + "id": "def-common.UpdateAgentPolicyResponse", "type": "Interface", - "label": "GetEnrollmentAPIKeysRequest", + "label": "UpdateAgentPolicyResponse", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetEnrollmentAPIKeysRequest.query", + "id": "def-common.UpdateAgentPolicyResponse.item", "type": "Object", - "label": "query", + "label": "item", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L11" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 50 }, "signature": [ - "{ page: number; perPage: number; kuery?: string | undefined; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicy", + "text": "AgentPolicy" + } ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L10" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 49 }, "initialIsOpen": false }, { - "id": "def-common.GetEnrollmentAPIKeysResponse", + "id": "def-common.UpdateAgentRequest", "type": "Interface", - "label": "GetEnrollmentAPIKeysResponse", + "label": "UpdateAgentRequest", "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetEnrollmentAPIKeysResponse.list", - "type": "Array", - "label": "list", + "id": "def-common.UpdateAgentRequest.params", + "type": "Object", + "label": "params", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L19" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 199 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.EnrollmentAPIKey", - "text": "EnrollmentAPIKey" - }, - "[]" + "{ agentId: string; }" ] }, { "tags": [], - "id": "def-common.GetEnrollmentAPIKeysResponse.total", - "type": "number", - "label": "total", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L20" - } - }, - { - "tags": [], - "id": "def-common.GetEnrollmentAPIKeysResponse.page", - "type": "number", - "label": "page", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L21" - } - }, - { - "tags": [], - "id": "def-common.GetEnrollmentAPIKeysResponse.perPage", - "type": "number", - "label": "perPage", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L22" - } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L18" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetOneEnrollmentAPIKeyRequest", - "type": "Interface", - "label": "GetOneEnrollmentAPIKeyRequest", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetOneEnrollmentAPIKeyRequest.params", + "id": "def-common.UpdateAgentRequest.body", "type": "Object", - "label": "params", + "label": "body", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L26" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 202 }, "signature": [ - "{ keyId: string; }" + "{ user_provided_metadata: Record; }" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L25" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent.ts", + "lineNumber": 198 }, "initialIsOpen": false }, { - "id": "def-common.GetOneEnrollmentAPIKeyResponse", + "id": "def-common.UpdatePackagePolicy", "type": "Interface", - "label": "GetOneEnrollmentAPIKeyResponse", + "label": "UpdatePackagePolicy", + "signature": [ + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.UpdatePackagePolicy", + "text": "UpdatePackagePolicy" + }, + " extends ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NewPackagePolicy", + "text": "NewPackagePolicy" + } + ], "description": [], "tags": [], "children": [ { "tags": [], - "id": "def-common.GetOneEnrollmentAPIKeyResponse.item", - "type": "Object", - "label": "item", + "id": "def-common.UpdatePackagePolicy.version", + "type": "string", + "label": "version", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L32" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 61 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.EnrollmentAPIKey", - "text": "EnrollmentAPIKey" - } + "string | undefined" ] } ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L31" + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 60 }, "initialIsOpen": false - }, + } + ], + "enums": [ { - "id": "def-common.DeleteEnrollmentAPIKeyRequest", - "type": "Interface", - "label": "DeleteEnrollmentAPIKeyRequest", - "description": [], + "id": "def-common.ElasticsearchAssetType", + "type": "Enum", + "label": "ElasticsearchAssetType", "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.DeleteEnrollmentAPIKeyRequest.params", - "type": "Object", - "label": "params", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L36" - }, - "signature": [ - "{ keyId: string; }" - ] - } - ], + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 35, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L35" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 67 }, "initialIsOpen": false }, { - "id": "def-common.DeleteEnrollmentAPIKeyResponse", - "type": "Interface", - "label": "DeleteEnrollmentAPIKeyResponse", - "description": [], + "id": "def-common.InstallStatus", + "type": "Enum", + "label": "InstallStatus", "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.DeleteEnrollmentAPIKeyResponse.action", - "type": "string", - "label": "action", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L42" - } - } - ], + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L41" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 26 }, "initialIsOpen": false }, { - "id": "def-common.PostEnrollmentAPIKeyRequest", - "type": "Interface", - "label": "PostEnrollmentAPIKeyRequest", - "description": [], + "id": "def-common.KibanaAssetType", + "type": "Enum", + "label": "KibanaAssetType", "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PostEnrollmentAPIKeyRequest.body", - "type": "Object", - "label": "body", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L46" - }, - "signature": [ - "{ name?: string | undefined; policy_id: string; expiration?: string | undefined; }" - ] - } - ], + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L45" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 46 }, "initialIsOpen": false }, { - "id": "def-common.PostEnrollmentAPIKeyResponse", - "type": "Interface", - "label": "PostEnrollmentAPIKeyResponse", + "id": "def-common.KibanaSavedObjectType", + "type": "Enum", + "label": "KibanaSavedObjectType", + "tags": [], "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 58 + }, + "initialIsOpen": false + } + ], + "misc": [ + { "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PostEnrollmentAPIKeyResponse.action", - "type": "string", - "label": "action", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L54" - } - }, - { - "tags": [], - "id": "def-common.PostEnrollmentAPIKeyResponse.item", - "type": "Object", - "label": "item", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L55" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.EnrollmentAPIKey", - "text": "EnrollmentAPIKey" - } - ] - } - ], + "id": "def-common.AGENT_ACTION_SAVED_OBJECT_TYPE", + "type": "string", + "label": "AGENT_ACTION_SAVED_OBJECT_TYPE", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/enrollment_api_key.ts#L53" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 12 }, + "signature": [ + "\"fleet-agent-actions\"" + ], "initialIsOpen": false }, { - "id": "def-common.InstallScriptRequest", - "type": "Interface", - "label": "InstallScriptRequest", - "description": [], "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.InstallScriptRequest.params", - "type": "Object", - "label": "params", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/install_script.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/install_script.ts#L9" - }, - "signature": [ - "{ osType: \"macos\"; }" - ] - } - ], + "id": "def-common.AGENT_ACTIONS_INDEX", + "type": "string", + "label": "AGENT_ACTIONS_INDEX", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/install_script.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/install_script.ts#L8" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 30 }, + "signature": [ + "\".fleet-actions\"" + ], "initialIsOpen": false }, { - "id": "def-common.PostIngestSetupResponse", - "type": "Interface", - "label": "PostIngestSetupResponse", - "description": [], "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PostIngestSetupResponse.isInitialized", - "type": "boolean", - "label": "isInitialized", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts#L9" - } - } - ], + "id": "def-common.AGENT_EVENT_SAVED_OBJECT_TYPE", + "type": "string", + "label": "AGENT_EVENT_SAVED_OBJECT_TYPE", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/ingest_setup.ts#L8" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 11 }, + "signature": [ + "\"fleet-agent-events\"" + ], "initialIsOpen": false }, { - "id": "def-common.GetOneOutputResponse", - "type": "Interface", - "label": "GetOneOutputResponse", - "description": [], "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetOneOutputResponse.item", - "type": "CompoundType", - "label": "item", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L11" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Output", - "text": "Output" - } - ] - } - ], + "id": "def-common.AGENT_POLICY_API_ROOT", + "type": "string", + "label": "AGENT_POLICY_API_ROOT", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L10" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 14 }, "initialIsOpen": false }, { - "id": "def-common.GetOneOutputRequest", - "type": "Interface", - "label": "GetOneOutputRequest", - "description": [], "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetOneOutputRequest.params", - "type": "Object", - "label": "params", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L15" - }, - "signature": [ - "{ outputId: string; }" - ] - } - ], + "id": "def-common.AGENT_POLICY_INDEX", + "type": "string", + "label": "AGENT_POLICY_INDEX", + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L14" + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 13 }, + "signature": [ + "\".fleet-policies\"" + ], "initialIsOpen": false }, { - "id": "def-common.PutOutputRequest", - "type": "Interface", - "label": "PutOutputRequest", + "tags": [], + "id": "def-common.AGENT_POLICY_ROLLOUT_RATE_LIMIT_INTERVAL_MS", + "type": "number", + "label": "AGENT_POLICY_ROLLOUT_RATE_LIMIT_INTERVAL_MS", "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 26 + }, + "signature": [ + "1000" + ], + "initialIsOpen": false + }, + { "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PutOutputRequest.params", - "type": "Object", - "label": "params", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L21" - }, - "signature": [ - "{ outputId: string; }" - ] - }, - { - "tags": [], - "id": "def-common.PutOutputRequest.body", - "type": "Object", - "label": "body", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L24" - }, - "signature": [ - "{ hosts?: string[] | undefined; ca_sha256?: string | undefined; config?: Record | undefined; config_yaml?: string | undefined; }" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L20" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PutOutputResponse", - "type": "Interface", - "label": "PutOutputResponse", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PutOutputResponse.item", - "type": "CompoundType", - "label": "item", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L33" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Output", - "text": "Output" - } - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L32" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetOutputsResponse", - "type": "Interface", - "label": "GetOutputsResponse", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetOutputsResponse.items", - "type": "Array", - "label": "items", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L37" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Output", - "text": "Output" - }, - "[]" - ] - }, - { - "tags": [], - "id": "def-common.GetOutputsResponse.total", - "type": "number", - "label": "total", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L38" - } - }, - { - "tags": [], - "id": "def-common.GetOutputsResponse.page", - "type": "number", - "label": "page", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L39" - } - }, - { - "tags": [], - "id": "def-common.GetOutputsResponse.perPage", - "type": "number", - "label": "perPage", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L40" - } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/output.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/output.ts#L36" - }, - "initialIsOpen": false - }, - { - "id": "def-common.GetSettingsResponse", - "type": "Interface", - "label": "GetSettingsResponse", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.GetSettingsResponse.item", - "type": "Object", - "label": "item", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L11" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Settings", - "text": "Settings" - } - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L10" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PutSettingsRequest", - "type": "Interface", - "label": "PutSettingsRequest", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PutSettingsRequest.body", - "type": "Object", - "label": "body", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L15" - }, - "signature": [ - "Partial>" - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L14" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PutSettingsResponse", - "type": "Interface", - "label": "PutSettingsResponse", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.PutSettingsResponse.item", - "type": "Object", - "label": "item", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L19" - }, - "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Settings", - "text": "Settings" - } - ] - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/settings.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/settings.ts#L18" - }, - "initialIsOpen": false - }, - { - "id": "def-common.CheckPermissionsResponse", - "type": "Interface", - "label": "CheckPermissionsResponse", - "description": [], - "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.CheckPermissionsResponse.error", - "type": "CompoundType", - "label": "error", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/app.ts#L9" - }, - "signature": [ - "\"MISSING_SECURITY\" | \"MISSING_SUPERUSER_ROLE\" | undefined" - ] - }, - { - "tags": [], - "id": "def-common.CheckPermissionsResponse.success", - "type": "boolean", - "label": "success", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/app.ts#L10" - } - } - ], - "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/app.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/app.ts#L8" - }, - "initialIsOpen": false - } - ], - "enums": [ - { - "id": "def-common.InstallStatus", - "type": "Enum", - "label": "InstallStatus", - "tags": [], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L26" - }, - "initialIsOpen": false - }, - { - "id": "def-common.KibanaAssetType", - "type": "Enum", - "label": "KibanaAssetType", - "tags": [], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L46" - }, - "initialIsOpen": false - }, - { - "id": "def-common.KibanaSavedObjectType", - "type": "Enum", - "label": "KibanaSavedObjectType", - "tags": [], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L58" - }, - "initialIsOpen": false - }, - { - "id": "def-common.ElasticsearchAssetType", - "type": "Enum", - "label": "ElasticsearchAssetType", - "tags": [], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L67" - }, - "initialIsOpen": false - } - ], - "misc": [ - { - "tags": [], - "id": "def-common.SO_SEARCH_LIMIT", - "type": "number", - "label": "SO_SEARCH_LIMIT", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/index.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/index.ts#L23" - }, - "signature": [ - "10000" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.FLEET_SERVER_INDICES_VERSION", + "id": "def-common.AGENT_POLICY_ROLLOUT_RATE_LIMIT_REQUEST_PER_INTERVAL", "type": "number", - "label": "FLEET_SERVER_INDICES_VERSION", + "label": "AGENT_POLICY_ROLLOUT_RATE_LIMIT_REQUEST_PER_INTERVAL", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/index.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/index.ts#L25" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 27 }, "signature": [ - "1" + "5" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.FLEET_SERVER_INDICES", - "type": "Array", - "label": "FLEET_SERVER_INDICES", + "id": "def-common.AGENT_POLICY_SAVED_OBJECT_TYPE", + "type": "string", + "label": "AGENT_POLICY_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/index.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/index.ts#L27" + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 12 }, "signature": [ - "string[]" + "\"ingest-agent-policies\"" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.PLUGIN_ID", - "type": "string", - "label": "PLUGIN_ID", + "id": "def-common.AGENT_POLLING_INTERVAL", + "type": "number", + "label": "AGENT_POLLING_INTERVAL", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/plugin.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/plugin.ts#L8" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 22 }, "signature": [ - "\"fleet\"" + "1000" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.API_ROOT", - "type": "string", - "label": "API_ROOT", + "id": "def-common.AGENT_POLLING_REQUEST_TIMEOUT_MARGIN_MS", + "type": "number", + "label": "AGENT_POLLING_REQUEST_TIMEOUT_MARGIN_MS", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L10" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 19 }, "signature": [ - "\"/api/fleet\"" + "20000" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.EPM_API_ROOT", - "type": "string", - "label": "EPM_API_ROOT", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L11" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.DATA_STREAM_API_ROOT", - "type": "string", - "label": "DATA_STREAM_API_ROOT", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L12" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROOT", - "type": "string", - "label": "PACKAGE_POLICY_API_ROOT", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L13" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.AGENT_POLICY_API_ROOT", - "type": "string", - "label": "AGENT_POLICY_API_ROOT", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L14" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.FLEET_API_ROOT_7_9", - "type": "string", - "label": "FLEET_API_ROOT_7_9", + "id": "def-common.AGENT_POLLING_REQUEST_TIMEOUT_MS", + "type": "number", + "label": "AGENT_POLLING_REQUEST_TIMEOUT_MS", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L15" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 18 }, "signature": [ - "\"/api/ingest_manager/fleet\"" + "300000" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.LIMITED_CONCURRENCY_ROUTE_TAG", - "type": "string", - "label": "LIMITED_CONCURRENCY_ROUTE_TAG", + "id": "def-common.AGENT_POLLING_THRESHOLD_MS", + "type": "number", + "label": "AGENT_POLLING_THRESHOLD_MS", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L17" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 21 }, "signature": [ - "\"ingest:limited-concurrency\"" + "30000" ], "initialIsOpen": false }, - { - "tags": [], - "id": "def-common.SETUP_API_ROUTE", - "type": "string", - "label": "SETUP_API_ROUTE", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 119, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L119" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.INSTALL_SCRIPT_API_ROUTES", - "type": "string", - "label": "INSTALL_SCRIPT_API_ROUTES", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 121, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L121" - }, - "initialIsOpen": false - }, { "tags": [], "id": "def-common.AGENT_SAVED_OBJECT_TYPE", @@ -12851,8 +12061,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L8" + "lineNumber": 8 }, "signature": [ "\"fleet-agents\"" @@ -12861,33 +12070,16 @@ }, { "tags": [], - "id": "def-common.AGENT_EVENT_SAVED_OBJECT_TYPE", - "type": "string", - "label": "AGENT_EVENT_SAVED_OBJECT_TYPE", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L11" - }, - "signature": [ - "\"fleet-agent-events\"" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.AGENT_ACTION_SAVED_OBJECT_TYPE", + "id": "def-common.AGENT_TYPE_EPHEMERAL", "type": "string", - "label": "AGENT_ACTION_SAVED_OBJECT_TYPE", + "label": "AGENT_TYPE_EPHEMERAL", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L12" + "lineNumber": 15 }, "signature": [ - "\"fleet-agent-actions\"" + "\"EPHEMERAL\"" ], "initialIsOpen": false }, @@ -12899,30 +12091,13 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L14" + "lineNumber": 14 }, "signature": [ "\"PERMANENT\"" ], "initialIsOpen": false }, - { - "tags": [], - "id": "def-common.AGENT_TYPE_EPHEMERAL", - "type": "string", - "label": "AGENT_TYPE_EPHEMERAL", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L15" - }, - "signature": [ - "\"EPHEMERAL\"" - ], - "initialIsOpen": false - }, { "tags": [], "id": "def-common.AGENT_TYPE_TEMPORARY", @@ -12931,8 +12106,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L16" + "lineNumber": 16 }, "signature": [ "\"TEMPORARY\"" @@ -12941,65 +12115,16 @@ }, { "tags": [], - "id": "def-common.AGENT_POLLING_REQUEST_TIMEOUT_MS", - "type": "number", - "label": "AGENT_POLLING_REQUEST_TIMEOUT_MS", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L18" - }, - "signature": [ - "300000" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.AGENT_POLLING_REQUEST_TIMEOUT_MARGIN_MS", - "type": "number", - "label": "AGENT_POLLING_REQUEST_TIMEOUT_MARGIN_MS", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L19" - }, - "signature": [ - "20000" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.AGENT_POLLING_THRESHOLD_MS", - "type": "number", - "label": "AGENT_POLLING_THRESHOLD_MS", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 21, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L21" - }, - "signature": [ - "30000" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.AGENT_POLLING_INTERVAL", + "id": "def-common.AGENT_UPDATE_ACTIONS_INTERVAL_MS", "type": "number", - "label": "AGENT_POLLING_INTERVAL", + "label": "AGENT_UPDATE_ACTIONS_INTERVAL_MS", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L22" + "lineNumber": 24 }, "signature": [ - "1000" + "5000" ], "initialIsOpen": false }, @@ -13011,8 +12136,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L23" + "lineNumber": 23 }, "signature": [ "30000" @@ -13020,761 +12144,735 @@ "initialIsOpen": false }, { + "id": "def-common.AgentActionSOAttributes", + "type": "Type", + "label": "AgentActionSOAttributes", "tags": [], - "id": "def-common.AGENT_UPDATE_ACTIONS_INTERVAL_MS", - "type": "number", - "label": "AGENT_UPDATE_ACTIONS_INTERVAL_MS", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L24" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 84 }, "signature": [ - "5000" + "CommonAgentActionSOAttributes & { agent_id: string; }" ], "initialIsOpen": false }, { + "id": "def-common.AgentActionType", + "type": "Type", + "label": "AgentActionType", "tags": [], - "id": "def-common.AGENT_POLICY_ROLLOUT_RATE_LIMIT_INTERVAL_MS", - "type": "number", - "label": "AGENT_POLICY_ROLLOUT_RATE_LIMIT_INTERVAL_MS", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L26" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 30 }, "signature": [ - "1000" + "\"POLICY_CHANGE\" | \"UNENROLL\" | \"UPGRADE\" | \"SETTINGS\" | \"INTERNAL_POLICY_REASSIGN\"" ], "initialIsOpen": false }, { + "id": "def-common.AgentAssetType", + "type": "Type", + "label": "AgentAssetType", "tags": [], - "id": "def-common.AGENT_POLICY_ROLLOUT_RATE_LIMIT_REQUEST_PER_INTERVAL", - "type": "number", - "label": "AGENT_POLICY_ROLLOUT_RATE_LIMIT_REQUEST_PER_INTERVAL", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L27" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 40 }, "signature": [ - "5" + "{ readonly Input: \"input\"; }" ], "initialIsOpen": false }, { + "id": "def-common.AgentEventSOAttributes", + "type": "Type", + "label": "AgentEventSOAttributes", "tags": [], - "id": "def-common.AGENTS_INDEX", - "type": "string", - "label": "AGENTS_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L29" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 123 }, "signature": [ - "\".fleet-agents\"" + "NewAgentEvent" ], "initialIsOpen": false }, { + "id": "def-common.AgentPolicyActionSOAttributes", + "type": "Type", + "label": "AgentPolicyActionSOAttributes", "tags": [], - "id": "def-common.AGENT_ACTIONS_INDEX", - "type": "string", - "label": "AGENT_ACTIONS_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent.ts#L30" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 87 }, "signature": [ - "\".fleet-actions\"" + "CommonAgentActionSOAttributes & { policy_id: string; policy_revision: number; }" ], "initialIsOpen": false }, { + "id": "def-common.AgentPolicyActionV7_9", + "type": "Type", + "label": "AgentPolicyActionV7_9", "tags": [], - "id": "def-common.AGENT_POLICY_SAVED_OBJECT_TYPE", - "type": "string", - "label": "AGENT_POLICY_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L12" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 68 }, "signature": [ - "\"ingest-agent-policies\"" + "Pick & { type: 'CONFIG_CHANGE'; data: { config: FullAgentPolicy;}; }" ], "initialIsOpen": false }, { + "id": "def-common.AgentPolicySOAttributes", + "type": "Type", + "label": "AgentPolicySOAttributes", "tags": [], - "id": "def-common.AGENT_POLICY_INDEX", - "type": "string", - "label": "AGENT_POLICY_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 36 }, "signature": [ - "\".fleet-policies\"" + "{ status: ValueOf<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; namespace: string; is_default?: boolean | undefined; updated_by: string; revision: number; package_policies: string[] | PackagePolicy[]; is_managed: boolean; is_default_fleet_server?: boolean | undefined; monitoring_enabled?: (\"metrics\" | \"logs\")[] | undefined; }" ], "initialIsOpen": false }, { + "id": "def-common.AgentPolicyStatus", + "type": "Type", + "label": "AgentPolicyStatus", "tags": [], - "id": "def-common.DEFAULT_AGENT_POLICIES_PACKAGES", - "type": "Array", - "label": "DEFAULT_AGENT_POLICIES_PACKAGES", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L48" + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "lineNumber": 14 }, "signature": [ - "\"system\"[]" + "{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_SAVED_OBJECT_TYPE", + "id": "def-common.AGENTS_INDEX", "type": "string", - "label": "PACKAGE_POLICY_SAVED_OBJECT_TYPE", + "label": "AGENTS_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/package_policy.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/package_policy.ts#L8" + "path": "x-pack/plugins/fleet/common/constants/agent.ts", + "lineNumber": 29 }, "signature": [ - "\"ingest-package-policies\"" + "\".fleet-agents\"" ], "initialIsOpen": false }, { + "id": "def-common.AgentStatus", + "type": "Type", + "label": "AgentStatus", "tags": [], - "id": "def-common.PACKAGES_SAVED_OBJECT_TYPE", - "type": "string", - "label": "PACKAGES_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L8" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 17 }, "signature": [ - "\"epm-packages\"" + "\"warning\" | \"offline\" | \"online\" | \"error\" | \"inactive\" | \"enrolling\" | \"unenrolling\" | \"updating\" | \"degraded\"" ], "initialIsOpen": false }, { + "id": "def-common.AgentType", + "type": "Type", + "label": "AgentType", "tags": [], - "id": "def-common.ASSETS_SAVED_OBJECT_TYPE", - "type": "string", - "label": "ASSETS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L9" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 12 }, "signature": [ - "\"epm-packages-assets\"" + "\"PERMANENT\" | \"EPHEMERAL\" | \"TEMPORARY\"" ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.INDEX_PATTERN_SAVED_OBJECT_TYPE", + "id": "def-common.API_ROOT", "type": "string", - "label": "INDEX_PATTERN_SAVED_OBJECT_TYPE", + "label": "API_ROOT", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L10" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 10 }, "signature": [ - "\"index-pattern\"" + "\"/api/fleet\"" ], "initialIsOpen": false }, { + "id": "def-common.ArchivePackage", + "type": "Type", + "label": "ArchivePackage", "tags": [], - "id": "def-common.MAX_TIME_COMPLETE_INSTALL", - "type": "number", - "label": "MAX_TIME_COMPLETE_INSTALL", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L11" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 80 }, "signature": [ - "60000" + "PackageSpecManifest & Pick" ], "initialIsOpen": false }, { + "id": "def-common.AssetReference", + "type": "Type", + "label": "AssetReference", "tags": [], - "id": "def-common.FLEET_SERVER_PACKAGE", - "type": "string", - "label": "FLEET_SERVER_PACKAGE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 13, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L13" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 303 }, "signature": [ - "\"fleet_server\"" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EsAssetReference", + "text": "EsAssetReference" + }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetReference", + "text": "KibanaAssetReference" + } ], "initialIsOpen": false }, { "tags": [], - "id": "def-common.OUTPUT_SAVED_OBJECT_TYPE", + "id": "def-common.ASSETS_SAVED_OBJECT_TYPE", "type": "string", - "label": "OUTPUT_SAVED_OBJECT_TYPE", + "label": "ASSETS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L10" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 9 }, "signature": [ - "\"ingest-outputs\"" + "\"epm-packages-assets\"" ], "initialIsOpen": false }, { + "id": "def-common.AssetsGroupedByServiceByType", + "type": "Type", + "label": "AssetsGroupedByServiceByType", "tags": [], - "id": "def-common.ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE", - "type": "string", - "label": "ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/enrollment_api_key.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/enrollment_api_key.ts#L8" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 192 }, "signature": [ - "\"fleet-enrollment-api-keys\"" + "Record<\"kibana\", Record> & Record<\"elasticsearch\", Record>" ], "initialIsOpen": false }, { + "id": "def-common.AssetType", + "type": "Type", + "label": "AssetType", "tags": [], - "id": "def-common.ENROLLMENT_API_KEYS_INDEX", - "type": "string", - "label": "ENROLLMENT_API_KEYS_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/enrollment_api_key.ts", - "lineNumber": 10, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/enrollment_api_key.ts#L10" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 41 }, "signature": [ - "\".fleet-enrollment-api-keys\"" + "\"input\" | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetType", + "text": "KibanaAssetType" + }, + ".dashboard | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetType", + "text": "KibanaAssetType" + }, + ".visualization | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetType", + "text": "KibanaAssetType" + }, + ".search | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetType", + "text": "KibanaAssetType" + }, + ".indexPattern | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.KibanaAssetType", + "text": "KibanaAssetType" + } ], "initialIsOpen": false }, { + "id": "def-common.AssetTypeToParts", + "type": "Type", + "label": "AssetTypeToParts", "tags": [], - "id": "def-common.GLOBAL_SETTINGS_SAVED_OBJECT_TYPE", - "type": "string", - "label": "GLOBAL_SETTINGS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/settings.ts", - "lineNumber": 8, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/settings.ts#L8" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 191 }, "signature": [ - "\"ingest_manager_settings\"" + "Record & Record" ], "initialIsOpen": false }, { - "id": "def-common.ValueOf", + "id": "def-common.BaseAgentActionSOAttributes", "type": "Type", - "label": "ValueOf", + "label": "BaseAgentActionSOAttributes", "tags": [], - "description": [ - "\nCreates a Union Type for all the values of an object" - ], + "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/index.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/index.ts#L44" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 91 }, "signature": [ - "T[keyof T]" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentActionSOAttributes", + "text": "AgentActionSOAttributes" + }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.AgentPolicyActionSOAttributes", + "text": "AgentPolicyActionSOAttributes" + } ], "initialIsOpen": false }, { - "id": "def-common.AgentType", + "id": "def-common.CategoryId", "type": "Type", - "label": "AgentType", + "label": "CategoryId", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L12" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 176 }, "signature": [ - "\"PERMANENT\" | \"EPHEMERAL\" | \"TEMPORARY\"" + "string" ], "initialIsOpen": false }, { - "id": "def-common.AgentStatus", + "id": "def-common.CategorySummaryList", "type": "Type", - "label": "AgentStatus", + "label": "CategorySummaryList", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L17" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 175 }, "signature": [ - "\"warning\" | \"offline\" | \"online\" | \"error\" | \"inactive\" | \"enrolling\" | \"unenrolling\" | \"updating\" | \"degraded\"" + "CategorySummaryItem[]" ], "initialIsOpen": false }, { - "id": "def-common.SimplifiedAgentStatus", - "type": "Type", - "label": "SimplifiedAgentStatus", "tags": [], + "id": "def-common.DATA_STREAM_API_ROOT", + "type": "string", + "label": "DATA_STREAM_API_ROOT", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L28" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 12 }, - "signature": [ - "\"offline\" | \"inactive\" | \"updating\" | \"healthy\" | \"unhealthy\"" - ], "initialIsOpen": false }, { - "id": "def-common.AgentActionType", + "id": "def-common.DataType", "type": "Type", - "label": "AgentActionType", + "label": "DataType", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L30" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 76 }, "signature": [ - "\"POLICY_CHANGE\" | \"UNENROLL\" | \"UPGRADE\" | \"SETTINGS\" | \"INTERNAL_POLICY_REASSIGN\"" + "{ readonly Logs: \"logs\"; readonly Metrics: \"metrics\"; }" ], "initialIsOpen": false }, { - "id": "def-common.AgentPolicyActionV7_9", - "type": "Type", - "label": "AgentPolicyActionV7_9", "tags": [], + "id": "def-common.DEFAULT_AGENT_POLICIES_PACKAGES", + "type": "Array", + "label": "DEFAULT_AGENT_POLICIES_PACKAGES", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 68, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L68" + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 48 }, "signature": [ - "Pick & { type: 'CONFIG_CHANGE'; data: { config: FullAgentPolicy;}; }" + "\"system\"[]" ], "initialIsOpen": false }, { - "id": "def-common.AgentActionSOAttributes", + "id": "def-common.DefaultPackages", "type": "Type", - "label": "AgentActionSOAttributes", + "label": "DefaultPackages", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L84" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 318 }, "signature": [ - "CommonAgentActionSOAttributes & { agent_id: string; }" + "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" ], "initialIsOpen": false }, { - "id": "def-common.AgentPolicyActionSOAttributes", + "id": "def-common.DeletePackagePoliciesResponse", "type": "Type", - "label": "AgentPolicyActionSOAttributes", + "label": "DeletePackagePoliciesResponse", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L87" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 55 }, "signature": [ - "CommonAgentActionSOAttributes & { policy_id: string; policy_revision: number; }" + "{ id: string; name?: string | undefined; success: boolean; }[]" ], "initialIsOpen": false }, { - "id": "def-common.BaseAgentActionSOAttributes", + "id": "def-common.DetailViewPanelName", "type": "Type", - "label": "BaseAgentActionSOAttributes", + "label": "DetailViewPanelName", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L91" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 38 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentActionSOAttributes", - "text": "AgentActionSOAttributes" - }, - " | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.AgentPolicyActionSOAttributes", - "text": "AgentPolicyActionSOAttributes" - } + "\"custom\" | \"overview\" | \"policies\" | \"settings\"" ], "initialIsOpen": false }, { - "id": "def-common.AgentEventSOAttributes", + "id": "def-common.ElasticsearchAssetParts", "type": "Type", - "label": "AgentEventSOAttributes", + "label": "ElasticsearchAssetParts", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent.ts", - "lineNumber": 123, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent.ts#L123" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 203 }, "signature": [ - "NewAgentEvent" + "AssetParts & { service: Extract; type: ElasticsearchAssetType; }" ], "initialIsOpen": false }, { - "id": "def-common.AgentPolicyStatus", + "id": "def-common.ElasticsearchAssetTypeToParts", "type": "Type", - "label": "AgentPolicyStatus", + "label": "ElasticsearchAssetTypeToParts", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L14" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 209 }, "signature": [ - "{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }" + "{ component_template: ElasticsearchAssetParts[]; ingest_pipeline: ElasticsearchAssetParts[]; index_template: ElasticsearchAssetParts[]; ilm_policy: ElasticsearchAssetParts[]; transform: ElasticsearchAssetParts[]; data_stream_ilm_policy: ElasticsearchAssetParts[]; }" ], "initialIsOpen": false }, { - "id": "def-common.AgentPolicySOAttributes", - "type": "Type", - "label": "AgentPolicySOAttributes", "tags": [], + "id": "def-common.ENROLLMENT_API_KEYS_INDEX", + "type": "string", + "label": "ENROLLMENT_API_KEYS_INDEX", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/agent_policy.ts#L36" + "path": "x-pack/plugins/fleet/common/constants/enrollment_api_key.ts", + "lineNumber": 10 }, "signature": [ - "{ status: ValueOf<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; namespace: string; is_default?: boolean | undefined; updated_by: string; revision: number; package_policies: string[] | PackagePolicy[]; is_managed: boolean; is_default_fleet_server?: boolean | undefined; monitoring_enabled?: (\"metrics\" | \"logs\")[] | undefined; }" + "\".fleet-enrollment-api-keys\"" ], "initialIsOpen": false }, { - "id": "def-common.PackagePolicyConfigRecord", - "type": "Type", - "label": "PackagePolicyConfigRecord", "tags": [], + "id": "def-common.ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE", + "type": "string", + "label": "ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L19" + "path": "x-pack/plugins/fleet/common/constants/enrollment_api_key.ts", + "lineNumber": 8 }, "signature": [ - "{ [x: string]: PackagePolicyConfigRecordEntry; }" + "\"fleet-enrollment-api-keys\"" ], "initialIsOpen": false }, { - "id": "def-common.PackagePolicySOAttributes", + "id": "def-common.EnrollmentAPIKeySOAttributes", "type": "Type", - "label": "PackagePolicySOAttributes", + "label": "EnrollmentAPIKeySOAttributes", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", - "lineNumber": 75, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_policy.ts#L75" + "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", + "lineNumber": 18 }, "signature": [ - "{ enabled: boolean; description?: string | undefined; name: string; package?: PackagePolicyPackage | undefined; updated_at: string; namespace: string; inputs: PackagePolicyInput[]; policy_id: string; output_id: string; updated_by: string; revision: number; created_at: string; created_by: string; }" + "{ name?: string | undefined; active: boolean; policy_id?: string | undefined; created_at: string; api_key: string; api_key_id: string; }" ], "initialIsOpen": false }, { - "id": "def-common.OutputType", - "type": "Type", - "label": "OutputType", "tags": [], + "id": "def-common.EPM_API_ROOT", + "type": "string", + "label": "EPM_API_ROOT", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 11, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L11" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 11 }, - "signature": [ - "{ readonly Elasticsearch: \"elasticsearch\"; }" - ], "initialIsOpen": false }, { - "id": "def-common.OutputSOAttributes", + "id": "def-common.EpmPackageInstallStatus", "type": "Type", - "label": "OutputSOAttributes", + "label": "EpmPackageInstallStatus", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L26" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 36 }, "signature": [ - "NewOutput" + "\"installed\" | \"installing\"" ], "initialIsOpen": false }, { - "id": "def-common.Output", + "id": "def-common.EsAssetReference", "type": "Type", - "label": "Output", + "label": "EsAssetReference", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/output.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/output.ts#L28" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 308 }, "signature": [ - "NewOutput & { id: string; }" + "Pick & { type: ElasticsearchAssetType; }" ], "initialIsOpen": false }, { - "id": "def-common.InstallationStatus", - "type": "Type", - "label": "InstallationStatus", "tags": [], + "id": "def-common.FLEET_API_ROOT_7_9", + "type": "string", + "label": "FLEET_API_ROOT_7_9", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L24" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 15 }, "signature": [ - "{ readonly Installed: \"installed\"; readonly NotInstalled: \"not_installed\"; }" + "\"/api/ingest_manager/fleet\"" ], "initialIsOpen": false }, { - "id": "def-common.InstallType", - "type": "Type", - "label": "InstallType", "tags": [], + "id": "def-common.FLEET_SERVER_INDICES", + "type": "Array", + "label": "FLEET_SERVER_INDICES", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L33" + "path": "x-pack/plugins/fleet/common/constants/index.ts", + "lineNumber": 27 }, "signature": [ - "\"update\" | \"reinstall\" | \"reupdate\" | \"rollback\" | \"install\"" + "string[]" ], "initialIsOpen": false }, { - "id": "def-common.InstallSource", - "type": "Type", - "label": "InstallSource", "tags": [], + "id": "def-common.FLEET_SERVER_INDICES_VERSION", + "type": "number", + "label": "FLEET_SERVER_INDICES_VERSION", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 34, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L34" + "path": "x-pack/plugins/fleet/common/constants/index.ts", + "lineNumber": 25 }, "signature": [ - "\"registry\" | \"upload\"" + "1" ], "initialIsOpen": false }, { - "id": "def-common.EpmPackageInstallStatus", - "type": "Type", - "label": "EpmPackageInstallStatus", "tags": [], + "id": "def-common.FLEET_SERVER_PACKAGE", + "type": "string", + "label": "FLEET_SERVER_PACKAGE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L36" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 13 }, "signature": [ - "\"installed\" | \"installing\"" + "\"fleet_server\"" ], "initialIsOpen": false }, { - "id": "def-common.DetailViewPanelName", + "id": "def-common.GetAgentPoliciesResponseItem", "type": "Type", - "label": "DetailViewPanelName", + "label": "GetAgentPoliciesResponseItem", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L38" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 18 }, "signature": [ - "\"custom\" | \"overview\" | \"policies\" | \"settings\"" + "AgentPolicy & { agents?: number | undefined; }" ], "initialIsOpen": false }, { - "id": "def-common.ServiceName", - "type": "Type", - "label": "ServiceName", "tags": [], + "id": "def-common.GLOBAL_SETTINGS_SAVED_OBJECT_TYPE", + "type": "string", + "label": "GLOBAL_SETTINGS_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L39" + "path": "x-pack/plugins/fleet/common/constants/settings.ts", + "lineNumber": 8 }, "signature": [ - "\"kibana\" | \"elasticsearch\"" + "\"ingest_manager_settings\"" ], "initialIsOpen": false }, { - "id": "def-common.AgentAssetType", - "type": "Type", - "label": "AgentAssetType", "tags": [], + "id": "def-common.INDEX_PATTERN_SAVED_OBJECT_TYPE", + "type": "string", + "label": "INDEX_PATTERN_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L40" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 10 }, "signature": [ - "{ readonly Input: \"input\"; }" + "\"index-pattern\"" ], "initialIsOpen": false }, { - "id": "def-common.AssetType", - "type": "Type", - "label": "AssetType", "tags": [], + "id": "def-common.INSTALL_SCRIPT_API_ROUTES", + "type": "string", + "label": "INSTALL_SCRIPT_API_ROUTES", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L41" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 121 }, - "signature": [ - "\"input\" | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetType", - "text": "KibanaAssetType" - }, - ".dashboard | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetType", - "text": "KibanaAssetType" - }, - ".visualization | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetType", - "text": "KibanaAssetType" - }, - ".search | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetType", - "text": "KibanaAssetType" - }, - ".indexPattern | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetType", - "text": "KibanaAssetType" - } - ], "initialIsOpen": false }, { - "id": "def-common.DataType", + "id": "def-common.Installable", "type": "Type", - "label": "DataType", + "label": "Installable", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 76, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L76" + "lineNumber": 292 }, "signature": [ - "{ readonly Logs: \"logs\"; readonly Metrics: \"metrics\"; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Installed", + "text": "Installed" + }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NotInstalled", + "text": "NotInstalled" + }, + "" ], "initialIsOpen": false }, @@ -13786,8 +12884,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 78, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L78" + "lineNumber": 78 }, "signature": [ { @@ -13809,312 +12906,307 @@ "initialIsOpen": false }, { - "id": "def-common.ArchivePackage", + "id": "def-common.InstallationStatus", "type": "Type", - "label": "ArchivePackage", + "label": "InstallationStatus", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 80, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L80" + "lineNumber": 24 }, "signature": [ - "PackageSpecManifest & Pick" + "{ readonly Installed: \"installed\"; readonly NotInstalled: \"not_installed\"; }" ], "initialIsOpen": false }, { - "id": "def-common.RegistryPackage", + "id": "def-common.Installed", "type": "Type", - "label": "RegistryPackage", + "label": "Installed", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L84" + "lineNumber": 294 }, "signature": [ - "PackageSpecManifest & Partial> & RegistryAdditionalProperties & RegistryOverridePropertyValue" + "T & { status: InstallationStatus['Installed']; savedObject: SavedObject; }" ], "initialIsOpen": false }, { - "id": "def-common.RegistryRelease", + "id": "def-common.InstallSource", "type": "Type", - "label": "RegistryRelease", + "label": "InstallSource", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 111, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L111" + "lineNumber": 34 }, "signature": [ - "\"experimental\" | \"beta\" | \"ga\"" + "\"registry\" | \"upload\"" ], "initialIsOpen": false }, { - "id": "def-common.RequirementVersion", + "id": "def-common.InstallType", "type": "Type", - "label": "RequirementVersion", + "label": "InstallType", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 144, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L144" + "lineNumber": 33 }, "signature": [ - "string" + "\"update\" | \"reinstall\" | \"reupdate\" | \"rollback\" | \"install\"" ], "initialIsOpen": false }, { - "id": "def-common.RequirementVersionRange", + "id": "def-common.KibanaAssetParts", "type": "Type", - "label": "RequirementVersionRange", + "label": "KibanaAssetParts", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 145, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L145" + "lineNumber": 198 }, "signature": [ - "string" + "AssetParts & { service: Extract; type: KibanaAssetType; }" ], "initialIsOpen": false }, { - "id": "def-common.RegistrySearchResults", + "id": "def-common.KibanaAssetReference", "type": "Type", - "label": "RegistrySearchResults", + "label": "KibanaAssetReference", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 153, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L153" + "lineNumber": 305 }, "signature": [ - "Pick[]" + "Pick & { type: KibanaSavedObjectType; }" ], "initialIsOpen": false }, { - "id": "def-common.RegistrySearchResult", + "id": "def-common.KibanaAssetTypeToParts", "type": "Type", - "label": "RegistrySearchResult", + "label": "KibanaAssetTypeToParts", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L155" + "lineNumber": 208 }, "signature": [ - "{ type?: \"integration\" | undefined; description: string; title: string; name: string; version: string; path: string; download: string; data_streams?: RegistryDataStream[] | undefined; release: \"experimental\" | \"beta\" | \"ga\"; icons?: (", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageSpecIcon", - "text": "PackageSpecIcon" - }, - "[] & RegistryImage[]) | undefined; policy_templates?: RegistryPolicyTemplate[] | undefined; internal?: boolean | undefined; }" + "{ dashboard: KibanaAssetParts[]; visualization: KibanaAssetParts[]; search: KibanaAssetParts[]; index_pattern: KibanaAssetParts[]; map: KibanaAssetParts[]; lens: KibanaAssetParts[]; }" ], "initialIsOpen": false }, { - "id": "def-common.ScreenshotItem", - "type": "Type", - "label": "ScreenshotItem", "tags": [], + "id": "def-common.LIMITED_CONCURRENCY_ROUTE_TAG", + "type": "string", + "label": "LIMITED_CONCURRENCY_ROUTE_TAG", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 171, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L171" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 17 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.RegistryImage", - "text": "RegistryImage" - }, - " | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackageSpecScreenshot", - "text": "PackageSpecScreenshot" - } + "\"ingest:limited-concurrency\"" ], "initialIsOpen": false }, { - "id": "def-common.CategorySummaryList", - "type": "Type", - "label": "CategorySummaryList", "tags": [], + "id": "def-common.MAX_TIME_COMPLETE_INSTALL", + "type": "number", + "label": "MAX_TIME_COMPLETE_INSTALL", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 175, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L175" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 11 }, "signature": [ - "CategorySummaryItem[]" + "60000" ], "initialIsOpen": false }, { - "id": "def-common.CategoryId", + "id": "def-common.NotInstalled", "type": "Type", - "label": "CategoryId", + "label": "NotInstalled", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 176, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L176" + "lineNumber": 299 }, "signature": [ - "string" + "T & { status: InstallationStatus['NotInstalled']; }" ], "initialIsOpen": false }, { - "id": "def-common.RequirementsByServiceName", + "id": "def-common.Output", "type": "Type", - "label": "RequirementsByServiceName", + "label": "Output", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 183, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L183" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 28 }, "signature": [ - "undefined | Record<\"kibana\", { version: string; }>" + "NewOutput & { id: string; }" ], "initialIsOpen": false }, { - "id": "def-common.AssetTypeToParts", - "type": "Type", - "label": "AssetTypeToParts", "tags": [], + "id": "def-common.OUTPUT_SAVED_OBJECT_TYPE", + "type": "string", + "label": "OUTPUT_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 191, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L191" + "path": "x-pack/plugins/fleet/common/constants/output.ts", + "lineNumber": 10 }, "signature": [ - "Record & Record" + "\"ingest-outputs\"" ], "initialIsOpen": false }, { - "id": "def-common.AssetsGroupedByServiceByType", + "id": "def-common.OutputSOAttributes", "type": "Type", - "label": "AssetsGroupedByServiceByType", + "label": "OutputSOAttributes", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 192, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L192" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 26 }, "signature": [ - "Record<\"kibana\", Record> & Record<\"elasticsearch\", Record>" + "NewOutput" ], "initialIsOpen": false }, { - "id": "def-common.KibanaAssetParts", + "id": "def-common.OutputType", "type": "Type", - "label": "KibanaAssetParts", + "label": "OutputType", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 198, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L198" + "path": "x-pack/plugins/fleet/common/types/models/output.ts", + "lineNumber": 11 }, "signature": [ - "AssetParts & { service: Extract; type: KibanaAssetType; }" + "{ readonly Elasticsearch: \"elasticsearch\"; }" ], "initialIsOpen": false }, { - "id": "def-common.ElasticsearchAssetParts", - "type": "Type", - "label": "ElasticsearchAssetParts", "tags": [], + "id": "def-common.PACKAGE_POLICY_API_ROOT", + "type": "string", + "label": "PACKAGE_POLICY_API_ROOT", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 203, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L203" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 13 }, - "signature": [ - "AssetParts & { service: Extract; type: ElasticsearchAssetType; }" - ], "initialIsOpen": false }, { - "id": "def-common.KibanaAssetTypeToParts", - "type": "Type", - "label": "KibanaAssetTypeToParts", "tags": [], + "id": "def-common.PACKAGE_POLICY_SAVED_OBJECT_TYPE", + "type": "string", + "label": "PACKAGE_POLICY_SAVED_OBJECT_TYPE", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 208, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L208" + "path": "x-pack/plugins/fleet/common/constants/package_policy.ts", + "lineNumber": 8 }, "signature": [ - "{ dashboard: KibanaAssetParts[]; visualization: KibanaAssetParts[]; search: KibanaAssetParts[]; index_pattern: KibanaAssetParts[]; map: KibanaAssetParts[]; lens: KibanaAssetParts[]; }" + "\"ingest-package-policies\"" ], "initialIsOpen": false }, { - "id": "def-common.ElasticsearchAssetTypeToParts", + "id": "def-common.PackageAssetReference", "type": "Type", - "label": "ElasticsearchAssetTypeToParts", + "label": "PackageAssetReference", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 209, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L209" + "lineNumber": 312 }, "signature": [ - "{ component_template: ElasticsearchAssetParts[]; ingest_pipeline: ElasticsearchAssetParts[]; index_template: ElasticsearchAssetParts[]; ilm_policy: ElasticsearchAssetParts[]; transform: ElasticsearchAssetParts[]; data_stream_ilm_policy: ElasticsearchAssetParts[]; }" + "Pick & { type: typeof ASSETS_SAVED_OBJECT_TYPE; }" ], "initialIsOpen": false }, { - "id": "def-common.RegistryVarType", + "id": "def-common.PackageInfo", "type": "Type", - "label": "RegistryVarType", + "label": "PackageInfo", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 234, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L234" + "lineNumber": 271 }, "signature": [ - "\"string\" | \"text\" | \"password\" | \"integer\" | \"bool\" | \"yaml\"" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Installed", + "text": "Installed" + }, + "> | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.NotInstalled", + "text": "NotInstalled" + }, + ">[]" @@ -14142,8 +13233,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 269, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L269" + "lineNumber": 269 }, "signature": [ { @@ -14181,6 +13271,51 @@ ], "initialIsOpen": false }, + { + "id": "def-common.PackagePolicyConfigRecord", + "type": "Type", + "label": "PackagePolicyConfigRecord", + "tags": [], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 19 + }, + "signature": [ + "{ [x: string]: PackagePolicyConfigRecordEntry; }" + ], + "initialIsOpen": false + }, + { + "id": "def-common.PackagePolicySOAttributes", + "type": "Type", + "label": "PackagePolicySOAttributes", + "tags": [], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", + "lineNumber": 75 + }, + "signature": [ + "{ enabled: boolean; description?: string | undefined; name: string; package?: PackagePolicyPackage | undefined; updated_at: string; namespace: string; inputs: PackagePolicyInput[]; policy_id: string; output_id: string; updated_by: string; revision: number; created_at: string; created_by: string; }" + ], + "initialIsOpen": false + }, + { + "tags": [], + "id": "def-common.PACKAGES_SAVED_OBJECT_TYPE", + "type": "string", + "label": "PACKAGES_SAVED_OBJECT_TYPE", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 8 + }, + "signature": [ + "\"epm-packages\"" + ], + "initialIsOpen": false + }, { "id": "def-common.PackagesGroupedByStatus", "type": "Type", @@ -14189,8 +13324,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 270, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L270" + "lineNumber": 270 }, "signature": [ "{ installed: PackageList; not_installed: PackageList; }" @@ -14198,596 +13332,577 @@ "initialIsOpen": false }, { - "id": "def-common.PackageInfo", + "id": "def-common.PackageSpecCategory", "type": "Type", - "label": "PackageInfo", + "label": "PackageSpecCategory", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 271, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L271" + "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", + "lineNumber": 28 }, "signature": [ - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.Installed", - "text": "Installed" - }, - "> | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NotInstalled", - "text": "NotInstalled" - }, - " | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.NotInstalled", - "text": "NotInstalled" - }, - "" + "{ kibana: { version: string; }; }" ], "initialIsOpen": false }, { - "id": "def-common.Installed", + "tags": [], + "id": "def-common.PLUGIN_ID", + "type": "string", + "label": "PLUGIN_ID", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/plugin.ts", + "lineNumber": 8 + }, + "signature": [ + "\"fleet\"" + ], + "initialIsOpen": false + }, + { + "id": "def-common.RegistryPackage", "type": "Type", - "label": "Installed", + "label": "RegistryPackage", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 294, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L294" + "lineNumber": 84 }, "signature": [ - "T & { status: InstallationStatus['Installed']; savedObject: SavedObject; }" + "PackageSpecManifest & Partial> & RegistryAdditionalProperties & RegistryOverridePropertyValue" ], "initialIsOpen": false }, { - "id": "def-common.NotInstalled", + "id": "def-common.RegistryRelease", "type": "Type", - "label": "NotInstalled", + "label": "RegistryRelease", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 299, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L299" + "lineNumber": 111 }, "signature": [ - "T & { status: InstallationStatus['NotInstalled']; }" + "\"experimental\" | \"beta\" | \"ga\"" ], "initialIsOpen": false }, { - "id": "def-common.AssetReference", + "id": "def-common.RegistrySearchResult", "type": "Type", - "label": "AssetReference", + "label": "RegistrySearchResult", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 303, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L303" + "lineNumber": 155 }, "signature": [ + "{ type?: \"integration\" | undefined; description: string; title: string; name: string; version: string; path: string; download: string; data_streams?: RegistryDataStream[] | undefined; release: \"experimental\" | \"beta\" | \"ga\"; icons?: (", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.EsAssetReference", - "text": "EsAssetReference" + "section": "def-common.PackageSpecIcon", + "text": "PackageSpecIcon" }, - " | ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetReference", - "text": "KibanaAssetReference" - } + "[] & RegistryImage[]) | undefined; policy_templates?: RegistryPolicyTemplate[] | undefined; internal?: boolean | undefined; }" ], "initialIsOpen": false }, { - "id": "def-common.KibanaAssetReference", + "id": "def-common.RegistrySearchResults", "type": "Type", - "label": "KibanaAssetReference", + "label": "RegistrySearchResults", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 305, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L305" + "lineNumber": 153 }, "signature": [ - "Pick & { type: KibanaSavedObjectType; }" + "Pick[]" ], "initialIsOpen": false }, { - "id": "def-common.EsAssetReference", + "id": "def-common.RegistryVarType", "type": "Type", - "label": "EsAssetReference", + "label": "RegistryVarType", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 308, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L308" + "lineNumber": 234 }, "signature": [ - "Pick & { type: ElasticsearchAssetType; }" + "\"string\" | \"text\" | \"password\" | \"integer\" | \"bool\" | \"yaml\"" ], "initialIsOpen": false }, { - "id": "def-common.PackageAssetReference", + "id": "def-common.RequiredPackage", "type": "Type", - "label": "PackageAssetReference", + "label": "RequiredPackage", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 312, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L312" + "lineNumber": 316 }, "signature": [ - "Pick & { type: typeof ASSETS_SAVED_OBJECT_TYPE; }" + "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" ], "initialIsOpen": false }, { - "id": "def-common.RequiredPackage", + "id": "def-common.RequirementsByServiceName", "type": "Type", - "label": "RequiredPackage", + "label": "RequirementsByServiceName", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 316, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L316" + "lineNumber": 183 }, "signature": [ - "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" + "undefined | Record<\"kibana\", { version: string; }>" ], "initialIsOpen": false }, { - "id": "def-common.DefaultPackages", + "id": "def-common.RequirementVersion", "type": "Type", - "label": "DefaultPackages", + "label": "RequirementVersion", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/models/epm.ts", - "lineNumber": 318, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/epm.ts#L318" + "lineNumber": 144 }, "signature": [ - "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" + "string" ], "initialIsOpen": false }, { - "id": "def-common.PackageSpecCategory", + "id": "def-common.RequirementVersionRange", "type": "Type", - "label": "PackageSpecCategory", + "label": "RequirementVersionRange", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L28" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 145 }, "signature": [ - "\"custom\" | \"security\" | \"monitoring\" | \"aws\" | \"azure\" | \"cloud\" | \"config_management\" | \"containers\" | \"crm\" | \"datastore\" | \"elastic_stack\" | \"google_cloud\" | \"kubernetes\" | \"languages\" | \"message_queue\" | \"network\" | \"notification\" | \"os_system\" | \"productivity\" | \"support\" | \"ticketing\" | \"version_control\" | \"web\"" + "string" ], "initialIsOpen": false }, { - "id": "def-common.PackageSpecConditions", + "id": "def-common.ScreenshotItem", "type": "Type", - "label": "PackageSpecConditions", + "label": "ScreenshotItem", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/package_spec.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/package_spec.ts#L53" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 171 }, "signature": [ - "{ kibana: { version: string; }; }" + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.RegistryImage", + "text": "RegistryImage" + }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageSpecScreenshot", + "text": "PackageSpecScreenshot" + } ], "initialIsOpen": false }, { - "id": "def-common.EnrollmentAPIKeySOAttributes", + "id": "def-common.ServiceName", "type": "Type", - "label": "EnrollmentAPIKeySOAttributes", + "label": "ServiceName", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/models/enrollment_api_key.ts#L18" + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "lineNumber": 39 }, "signature": [ - "{ name?: string | undefined; active: boolean; policy_id?: string | undefined; created_at: string; api_key: string; api_key_id: string; }" + "\"kibana\" | \"elasticsearch\"" ], "initialIsOpen": false }, { - "id": "def-common.UpdatePackagePolicyRequest", + "tags": [], + "id": "def-common.SETUP_API_ROUTE", + "type": "string", + "label": "SETUP_API_ROUTE", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 119 + }, + "initialIsOpen": false + }, + { + "id": "def-common.SimplifiedAgentStatus", "type": "Type", - "label": "UpdatePackagePolicyRequest", + "label": "SimplifiedAgentStatus", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L43" + "path": "x-pack/plugins/fleet/common/types/models/agent.ts", + "lineNumber": 28 }, "signature": [ - "GetOnePackagePolicyRequest & { body: UpdatePackagePolicy; }" + "\"offline\" | \"inactive\" | \"updating\" | \"healthy\" | \"unhealthy\"" ], "initialIsOpen": false }, { - "id": "def-common.UpdatePackagePolicyResponse", + "tags": [], + "id": "def-common.SO_SEARCH_LIMIT", + "type": "number", + "label": "SO_SEARCH_LIMIT", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/index.ts", + "lineNumber": 23 + }, + "signature": [ + "10000" + ], + "initialIsOpen": false + }, + { + "id": "def-common.UpdateAgentPolicyRequest", "type": "Type", - "label": "UpdatePackagePolicyResponse", + "label": "UpdateAgentPolicyRequest", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L47" + "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", + "lineNumber": 45 }, "signature": [ - "CreatePackagePolicyResponse" + "GetOneAgentPolicyRequest & { body: NewAgentPolicy; }" ], "initialIsOpen": false }, { - "id": "def-common.DeletePackagePoliciesResponse", + "id": "def-common.UpdatePackagePolicyRequest", "type": "Type", - "label": "DeletePackagePoliciesResponse", + "label": "UpdatePackagePolicyRequest", "tags": [], "description": [], "source": { "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L55" + "lineNumber": 43 }, "signature": [ - "{ id: string; name?: string | undefined; success: boolean; }[]" + "GetOnePackagePolicyRequest & { body: UpdatePackagePolicy; }" ], "initialIsOpen": false }, { - "id": "def-common.GetAgentPoliciesResponseItem", + "id": "def-common.UpdatePackagePolicyResponse", "type": "Type", - "label": "GetAgentPoliciesResponseItem", + "label": "UpdatePackagePolicyResponse", "tags": [], "description": [], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L18" + "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", + "lineNumber": 47 }, "signature": [ - "AgentPolicy & { agents?: number | undefined; }" + "CreatePackagePolicyResponse" ], "initialIsOpen": false }, { - "id": "def-common.UpdateAgentPolicyRequest", + "id": "def-common.ValueOf", "type": "Type", - "label": "UpdateAgentPolicyRequest", + "label": "ValueOf", "tags": [], - "description": [], + "description": [ + "\nCreates a Union Type for all the values of an object" + ], "source": { - "path": "x-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/types/rest_spec/agent_policy.ts#L45" + "path": "x-pack/plugins/fleet/common/types/index.ts", + "lineNumber": 43 }, "signature": [ - "GetOneAgentPolicyRequest & { body: NewAgentPolicy; }" + "T[keyof T]" ], "initialIsOpen": false } ], "objects": [ { - "id": "def-common.EPM_API_ROUTES", + "id": "def-common.AGENT_API_ROUTES", "type": "Object", "tags": [], "children": [ { "tags": [], - "id": "def-common.EPM_API_ROUTES.BULK_INSTALL_PATTERN", + "id": "def-common.AGENT_API_ROUTES.LIST_PATTERN", + "type": "string", + "label": "LIST_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 83 + } + }, + { + "tags": [], + "id": "def-common.AGENT_API_ROUTES.INFO_PATTERN", "type": "string", - "label": "BULK_INSTALL_PATTERN", + "label": "INFO_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L25" + "lineNumber": 84 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.LIST_PATTERN", + "id": "def-common.AGENT_API_ROUTES.UPDATE_PATTERN", "type": "string", - "label": "LIST_PATTERN", + "label": "UPDATE_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L26" + "lineNumber": 85 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.LIMITED_LIST_PATTERN", + "id": "def-common.AGENT_API_ROUTES.DELETE_PATTERN", "type": "string", - "label": "LIMITED_LIST_PATTERN", + "label": "DELETE_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L27" + "lineNumber": 86 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.INFO_PATTERN", + "id": "def-common.AGENT_API_ROUTES.EVENTS_PATTERN", "type": "string", - "label": "INFO_PATTERN", + "label": "EVENTS_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L28" + "lineNumber": 87 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.INSTALL_FROM_REGISTRY_PATTERN", + "id": "def-common.AGENT_API_ROUTES.CHECKIN_PATTERN", "type": "string", - "label": "INSTALL_FROM_REGISTRY_PATTERN", + "label": "CHECKIN_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L29" + "lineNumber": 88 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.INSTALL_BY_UPLOAD_PATTERN", + "id": "def-common.AGENT_API_ROUTES.ACKS_PATTERN", "type": "string", - "label": "INSTALL_BY_UPLOAD_PATTERN", + "label": "ACKS_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L30" + "lineNumber": 89 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.DELETE_PATTERN", + "id": "def-common.AGENT_API_ROUTES.ACTIONS_PATTERN", "type": "string", - "label": "DELETE_PATTERN", + "label": "ACTIONS_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 31, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L31" + "lineNumber": 90 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.FILEPATH_PATTERN", + "id": "def-common.AGENT_API_ROUTES.ENROLL_PATTERN", "type": "string", - "label": "FILEPATH_PATTERN", + "label": "ENROLL_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L32" + "lineNumber": 91 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.CATEGORIES_PATTERN", + "id": "def-common.AGENT_API_ROUTES.UNENROLL_PATTERN", "type": "string", - "label": "CATEGORIES_PATTERN", + "label": "UNENROLL_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L33" + "lineNumber": 92 } }, { "tags": [], - "id": "def-common.EPM_API_ROUTES.STATS_PATTERN", + "id": "def-common.AGENT_API_ROUTES.BULK_UNENROLL_PATTERN", "type": "string", - "label": "STATS_PATTERN", + "label": "BULK_UNENROLL_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 34, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L34" + "lineNumber": 93 } - } - ], - "description": [], - "label": "EPM_API_ROUTES", - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L24" - }, - "initialIsOpen": false - }, - { - "id": "def-common.DATA_STREAM_API_ROUTES", - "type": "Object", - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.DATA_STREAM_API_ROUTES.LIST_PATTERN", + "id": "def-common.AGENT_API_ROUTES.REASSIGN_PATTERN", "type": "string", - "label": "LIST_PATTERN", + "label": "REASSIGN_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L39" + "lineNumber": 94 } - } - ], - "description": [], - "label": "DATA_STREAM_API_ROUTES", - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L38" - }, - "initialIsOpen": false - }, - { - "id": "def-common.PACKAGE_POLICY_API_ROUTES", - "type": "Object", - "tags": [], - "children": [ + }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROUTES.LIST_PATTERN", + "id": "def-common.AGENT_API_ROUTES.BULK_REASSIGN_PATTERN", "type": "string", - "label": "LIST_PATTERN", + "label": "BULK_REASSIGN_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L44" + "lineNumber": 95 } }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROUTES.INFO_PATTERN", + "id": "def-common.AGENT_API_ROUTES.STATUS_PATTERN", "type": "string", - "label": "INFO_PATTERN", + "label": "STATUS_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L45" + "lineNumber": 96 } }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROUTES.CREATE_PATTERN", + "id": "def-common.AGENT_API_ROUTES.UPGRADE_PATTERN", "type": "string", - "label": "CREATE_PATTERN", + "label": "UPGRADE_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 46, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L46" + "lineNumber": 97 } }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROUTES.UPDATE_PATTERN", + "id": "def-common.AGENT_API_ROUTES.BULK_UPGRADE_PATTERN", "type": "string", - "label": "UPDATE_PATTERN", + "label": "BULK_UPGRADE_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 47, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L47" + "lineNumber": 98 + } + } + ], + "description": [], + "label": "AGENT_API_ROUTES", + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 82 + }, + "initialIsOpen": false + }, + { + "id": "def-common.AGENT_API_ROUTES_7_9", + "type": "Object", + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.AGENT_API_ROUTES_7_9.CHECKIN_PATTERN", + "type": "string", + "label": "CHECKIN_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 101 } }, { "tags": [], - "id": "def-common.PACKAGE_POLICY_API_ROUTES.DELETE_PATTERN", + "id": "def-common.AGENT_API_ROUTES_7_9.ACKS_PATTERN", "type": "string", - "label": "DELETE_PATTERN", + "label": "ACKS_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 102 + } + }, + { + "tags": [], + "id": "def-common.AGENT_API_ROUTES_7_9.ENROLL_PATTERN", + "type": "string", + "label": "ENROLL_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L48" + "lineNumber": 103 } } ], "description": [], - "label": "PACKAGE_POLICY_API_ROUTES", + "label": "AGENT_API_ROUTES_7_9", "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L43" + "lineNumber": 100 }, "initialIsOpen": false }, @@ -14804,8 +13919,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 53, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L53" + "lineNumber": 53 } }, { @@ -14816,8 +13930,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 54, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L54" + "lineNumber": 54 } }, { @@ -14828,8 +13941,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L55" + "lineNumber": 55 } }, { @@ -14840,8 +13952,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 56, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L56" + "lineNumber": 56 } }, { @@ -14852,8 +13963,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 57, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L57" + "lineNumber": 57 } }, { @@ -14864,8 +13974,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 58, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L58" + "lineNumber": 58 } }, { @@ -14875,523 +13984,750 @@ "label": "FULL_INFO_PATTERN", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 59, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L59" - } + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 59 + } + }, + { + "tags": [], + "id": "def-common.AGENT_POLICY_API_ROUTES.FULL_INFO_DOWNLOAD_PATTERN", + "type": "string", + "label": "FULL_INFO_DOWNLOAD_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 60 + } + } + ], + "description": [], + "label": "AGENT_POLICY_API_ROUTES", + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 52 + }, + "initialIsOpen": false + }, + { + "tags": [], + "id": "def-common.agentAssetTypes", + "type": "Object", + "label": "agentAssetTypes", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 24 + }, + "signature": [ + "{ readonly Input: \"input\"; }" + ], + "initialIsOpen": false + }, + { + "id": "def-common.agentPolicyRouteService", + "type": "Object", + "tags": [], + "children": [ + { + "id": "def-common.agentPolicyRouteService.getListPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], + "description": [], + "label": "getListPath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 87 + }, + "tags": [], + "returnComment": [] + }, + { + "id": "def-common.agentPolicyRouteService.getInfoPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentPolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 91 + } + } + ], + "signature": [ + "(agentPolicyId: string) => string" + ], + "description": [], + "label": "getInfoPath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 91 + }, + "tags": [], + "returnComment": [] + }, + { + "id": "def-common.agentPolicyRouteService.getCreatePath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], + "description": [], + "label": "getCreatePath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 95 + }, + "tags": [], + "returnComment": [] + }, + { + "id": "def-common.agentPolicyRouteService.getUpdatePath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentPolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 99 + } + } + ], + "signature": [ + "(agentPolicyId: string) => string" + ], + "description": [], + "label": "getUpdatePath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 99 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_POLICY_API_ROUTES.FULL_INFO_DOWNLOAD_PATTERN", - "type": "string", - "label": "FULL_INFO_DOWNLOAD_PATTERN", + "id": "def-common.agentPolicyRouteService.getCopyPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentPolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 103 + } + } + ], + "signature": [ + "(agentPolicyId: string) => string" + ], "description": [], + "label": "getCopyPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 60, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L60" - } - } - ], - "description": [], - "label": "AGENT_POLICY_API_ROUTES", - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 52, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L52" - }, - "initialIsOpen": false - }, - { - "id": "def-common.OUTPUT_API_ROUTES", - "type": "Object", - "tags": [], - "children": [ - { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 103 + }, "tags": [], - "id": "def-common.OUTPUT_API_ROUTES.LIST_PATTERN", - "type": "string", - "label": "LIST_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 65, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L65" - } + "returnComment": [] }, { - "tags": [], - "id": "def-common.OUTPUT_API_ROUTES.INFO_PATTERN", - "type": "string", - "label": "INFO_PATTERN", + "id": "def-common.agentPolicyRouteService.getDeletePath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getDeletePath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 66, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L66" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 107 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.OUTPUT_API_ROUTES.UPDATE_PATTERN", - "type": "string", - "label": "UPDATE_PATTERN", + "id": "def-common.agentPolicyRouteService.getInfoFullPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentPolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 111 + } + } + ], + "signature": [ + "(agentPolicyId: string) => string" + ], "description": [], + "label": "getInfoFullPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 67, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L67" - } - } - ], - "description": [], - "label": "OUTPUT_API_ROUTES", - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L64" - }, - "initialIsOpen": false - }, - { - "id": "def-common.SETTINGS_API_ROUTES", - "type": "Object", - "tags": [], - "children": [ - { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 111 + }, "tags": [], - "id": "def-common.SETTINGS_API_ROUTES.INFO_PATTERN", - "type": "string", - "label": "INFO_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 72, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L72" - } + "returnComment": [] }, { - "tags": [], - "id": "def-common.SETTINGS_API_ROUTES.UPDATE_PATTERN", - "type": "string", - "label": "UPDATE_PATTERN", + "id": "def-common.agentPolicyRouteService.getInfoFullDownloadPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentPolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 115 + } + } + ], + "signature": [ + "(agentPolicyId: string) => string" + ], "description": [], + "label": "getInfoFullDownloadPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L73" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 115 + }, + "tags": [], + "returnComment": [] } ], "description": [], - "label": "SETTINGS_API_ROUTES", + "label": "agentPolicyRouteService", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 71, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L71" + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 86 }, "initialIsOpen": false }, { - "id": "def-common.APP_API_ROUTES", - "type": "Object", "tags": [], - "children": [ - { - "tags": [], - "id": "def-common.APP_API_ROUTES.CHECK_PERMISSIONS_PATTERN", - "type": "string", - "label": "CHECK_PERMISSIONS_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 78, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L78" - } - } - ], + "id": "def-common.agentPolicyStatuses", + "type": "Object", + "label": "agentPolicyStatuses", "description": [], - "label": "APP_API_ROUTES", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 77, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L77" + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 14 }, + "signature": [ + "{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }" + ], "initialIsOpen": false }, { - "id": "def-common.AGENT_API_ROUTES", + "id": "def-common.agentRouteService", "type": "Object", "tags": [], "children": [ { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.LIST_PATTERN", - "type": "string", - "label": "LIST_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 83, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L83" - } - }, - { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.INFO_PATTERN", - "type": "string", - "label": "INFO_PATTERN", + "id": "def-common.agentRouteService.getInfoPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 135 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getInfoPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 84, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L84" - } - }, - { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 135 + }, "tags": [], - "id": "def-common.AGENT_API_ROUTES.UPDATE_PATTERN", - "type": "string", - "label": "UPDATE_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 85, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L85" - } + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.DELETE_PATTERN", - "type": "string", - "label": "DELETE_PATTERN", + "id": "def-common.agentRouteService.getUpdatePath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 136 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getUpdatePath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 86, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L86" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 136 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.EVENTS_PATTERN", - "type": "string", - "label": "EVENTS_PATTERN", + "id": "def-common.agentRouteService.getEventsPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 137 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getEventsPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L87" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 137 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.CHECKIN_PATTERN", - "type": "string", - "label": "CHECKIN_PATTERN", + "id": "def-common.agentRouteService.getUnenrollPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 138 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getUnenrollPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 88, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L88" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 138 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.ACKS_PATTERN", - "type": "string", - "label": "ACKS_PATTERN", + "id": "def-common.agentRouteService.getBulkUnenrollPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getBulkUnenrollPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 89, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L89" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 140 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.ACTIONS_PATTERN", - "type": "string", - "label": "ACTIONS_PATTERN", + "id": "def-common.agentRouteService.getReassignPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 141 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getReassignPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 90, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L90" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 141 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.ENROLL_PATTERN", - "type": "string", - "label": "ENROLL_PATTERN", + "id": "def-common.agentRouteService.getBulkReassignPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getBulkReassignPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L91" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 143 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.UNENROLL_PATTERN", - "type": "string", - "label": "UNENROLL_PATTERN", + "id": "def-common.agentRouteService.getUpgradePath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 144 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getUpgradePath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 92, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L92" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 144 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.BULK_UNENROLL_PATTERN", - "type": "string", - "label": "BULK_UNENROLL_PATTERN", + "id": "def-common.agentRouteService.getBulkUpgradePath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getBulkUpgradePath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 93, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L93" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 146 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.REASSIGN_PATTERN", - "type": "string", - "label": "REASSIGN_PATTERN", + "id": "def-common.agentRouteService.getListPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getListPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 94, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L94" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 147 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.BULK_REASSIGN_PATTERN", - "type": "string", - "label": "BULK_REASSIGN_PATTERN", + "id": "def-common.agentRouteService.getStatusPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getStatusPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L95" - } + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 148 + }, + "tags": [], + "returnComment": [] }, { - "tags": [], - "id": "def-common.AGENT_API_ROUTES.STATUS_PATTERN", - "type": "string", - "label": "STATUS_PATTERN", + "id": "def-common.agentRouteService.getCreateActionPath", + "type": "Function", + "children": [ + { + "type": "string", + "label": "agentId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 149 + } + } + ], + "signature": [ + "(agentId: string) => string" + ], "description": [], + "label": "getCreateActionPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 96, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L96" - } - }, + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 149 + }, + "tags": [], + "returnComment": [] + } + ], + "description": [], + "label": "agentRouteService", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 134 + }, + "initialIsOpen": false + }, + { + "id": "def-common.AGENTS_SETUP_API_ROUTES", + "type": "Object", + "tags": [], + "children": [ { "tags": [], - "id": "def-common.AGENT_API_ROUTES.UPGRADE_PATTERN", + "id": "def-common.AGENTS_SETUP_API_ROUTES.INFO_PATTERN", "type": "string", - "label": "UPGRADE_PATTERN", + "label": "INFO_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 97, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L97" + "lineNumber": 115 } }, { "tags": [], - "id": "def-common.AGENT_API_ROUTES.BULK_UPGRADE_PATTERN", + "id": "def-common.AGENTS_SETUP_API_ROUTES.CREATE_PATTERN", "type": "string", - "label": "BULK_UPGRADE_PATTERN", + "label": "CREATE_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 98, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L98" + "lineNumber": 116 } } ], "description": [], - "label": "AGENT_API_ROUTES", + "label": "AGENTS_SETUP_API_ROUTES", "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 82, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L82" + "lineNumber": 114 }, "initialIsOpen": false }, { - "id": "def-common.AGENT_API_ROUTES_7_9", + "id": "def-common.AgentStatusKueryHelper", + "type": "Object", + "label": "AgentStatusKueryHelper", + "tags": [], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/index.ts", + "lineNumber": 9 + }, + "signature": [ + "typeof ", + "x-pack/plugins/fleet/common/services/agent_status" + ], + "initialIsOpen": false + }, + { + "id": "def-common.APP_API_ROUTES", "type": "Object", "tags": [], "children": [ { "tags": [], - "id": "def-common.AGENT_API_ROUTES_7_9.CHECKIN_PATTERN", - "type": "string", - "label": "CHECKIN_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 101, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L101" - } - }, - { - "tags": [], - "id": "def-common.AGENT_API_ROUTES_7_9.ACKS_PATTERN", - "type": "string", - "label": "ACKS_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 102, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L102" - } - }, - { - "tags": [], - "id": "def-common.AGENT_API_ROUTES_7_9.ENROLL_PATTERN", + "id": "def-common.APP_API_ROUTES.CHECK_PERMISSIONS_PATTERN", "type": "string", - "label": "ENROLL_PATTERN", + "label": "CHECK_PERMISSIONS_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 103, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L103" + "lineNumber": 78 } } ], "description": [], - "label": "AGENT_API_ROUTES_7_9", + "label": "APP_API_ROUTES", "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 100, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L100" + "lineNumber": 77 }, "initialIsOpen": false }, { - "id": "def-common.ENROLLMENT_API_KEY_ROUTES", + "id": "def-common.appRoutesService", "type": "Object", "tags": [], "children": [ { - "tags": [], - "id": "def-common.ENROLLMENT_API_KEY_ROUTES.CREATE_PATTERN", - "type": "string", - "label": "CREATE_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L107" - } - }, - { - "tags": [], - "id": "def-common.ENROLLMENT_API_KEY_ROUTES.LIST_PATTERN", - "type": "string", - "label": "LIST_PATTERN", + "id": "def-common.appRoutesService.getCheckPermissionsPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getCheckPermissionsPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 108, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L108" - } - }, - { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 166 + }, "tags": [], - "id": "def-common.ENROLLMENT_API_KEY_ROUTES.INFO_PATTERN", - "type": "string", - "label": "INFO_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 109, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L109" - } - }, + "returnComment": [] + } + ], + "description": [], + "label": "appRoutesService", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 165 + }, + "initialIsOpen": false + }, + { + "id": "def-common.DATA_STREAM_API_ROUTES", + "type": "Object", + "tags": [], + "children": [ { "tags": [], - "id": "def-common.ENROLLMENT_API_KEY_ROUTES.DELETE_PATTERN", + "id": "def-common.DATA_STREAM_API_ROUTES.LIST_PATTERN", "type": "string", - "label": "DELETE_PATTERN", + "label": "LIST_PATTERN", "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 110, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L110" + "lineNumber": 39 } } ], "description": [], - "label": "ENROLLMENT_API_KEY_ROUTES", + "label": "DATA_STREAM_API_ROUTES", "source": { "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 106, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L106" + "lineNumber": 38 }, "initialIsOpen": false }, { - "id": "def-common.AGENTS_SETUP_API_ROUTES", + "id": "def-common.dataStreamRouteService", "type": "Object", "tags": [], "children": [ { - "tags": [], - "id": "def-common.AGENTS_SETUP_API_ROUTES.INFO_PATTERN", - "type": "string", - "label": "INFO_PATTERN", + "id": "def-common.dataStreamRouteService.getListPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], "description": [], + "label": "getListPath", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L115" - } - }, - { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 124 + }, "tags": [], - "id": "def-common.AGENTS_SETUP_API_ROUTES.CREATE_PATTERN", - "type": "string", - "label": "CREATE_PATTERN", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L116" - } + "returnComment": [] } ], "description": [], - "label": "AGENTS_SETUP_API_ROUTES", + "label": "dataStreamRouteService", "source": { - "path": "x-pack/plugins/fleet/common/constants/routes.ts", - "lineNumber": 114, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/routes.ts#L114" + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 123 }, "initialIsOpen": false }, { "tags": [], - "id": "def-common.agentPolicyStatuses", + "id": "def-common.dataTypes", "type": "Object", - "label": "agentPolicyStatuses", + "label": "dataTypes", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 14, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L14" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 28 }, "signature": [ - "{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }" + "{ readonly Logs: \"logs\"; readonly Metrics: \"metrics\"; }" ], "initialIsOpen": false }, @@ -15408,8 +14744,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L23" + "lineNumber": 23 } }, { @@ -15420,8 +14755,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L24" + "lineNumber": 24 } }, { @@ -15432,8 +14766,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 25, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L25" + "lineNumber": 25 } }, { @@ -15444,8 +14777,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 26, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L26" + "lineNumber": 26 }, "signature": [ "\"active\"" @@ -15459,8 +14791,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 27, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L27" + "lineNumber": 27 }, "signature": [ "never[]" @@ -15474,8 +14805,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L28" + "lineNumber": 28 }, "signature": [ "true" @@ -15489,8 +14819,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 29, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L29" + "lineNumber": 29 }, "signature": [ "false" @@ -15504,8 +14833,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 30, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L30" + "lineNumber": 30 }, "signature": [ "(\"metrics\" | \"logs\")[]" @@ -15516,8 +14844,7 @@ "label": "DEFAULT_AGENT_POLICY", "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L19" + "lineNumber": 19 }, "initialIsOpen": false }, @@ -15534,8 +14861,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 37, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L37" + "lineNumber": 37 } }, { @@ -15546,8 +14872,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 38, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L38" + "lineNumber": 38 } }, { @@ -15558,8 +14883,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 39, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L39" + "lineNumber": 39 } }, { @@ -15570,8 +14894,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L40" + "lineNumber": 40 }, "signature": [ "\"active\"" @@ -15585,8 +14908,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 41, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L41" + "lineNumber": 41 }, "signature": [ "never[]" @@ -15600,8 +14922,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 42, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L42" + "lineNumber": 42 }, "signature": [ "false" @@ -15615,147 +14936,47 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 43, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L43" - }, - "signature": [ - "true" - ] - }, - { - "tags": [], - "id": "def-common.DEFAULT_FLEET_SERVER_AGENT_POLICY.is_managed", - "type": "boolean", - "label": "is_managed", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L44" - }, - "signature": [ - "false" - ] - }, - { - "tags": [], - "id": "def-common.DEFAULT_FLEET_SERVER_AGENT_POLICY.monitoring_enabled", - "type": "Array", - "label": "monitoring_enabled", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 45, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L45" - }, - "signature": [ - "(\"metrics\" | \"logs\")[]" - ] - } - ], - "description": [], - "label": "DEFAULT_FLEET_SERVER_AGENT_POLICY", - "source": { - "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/agent_policy.ts#L33" - }, - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.requiredPackages", - "type": "Object", - "label": "requiredPackages", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 15, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L15" - }, - "signature": [ - "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.defaultPackages", - "type": "Object", - "label": "defaultPackages", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 22, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L22" - }, - "signature": [ - "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.agentAssetTypes", - "type": "Object", - "label": "agentAssetTypes", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L24" - }, - "signature": [ - "{ readonly Input: \"input\"; }" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.dataTypes", - "type": "Object", - "label": "dataTypes", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L28" - }, - "signature": [ - "{ readonly Logs: \"logs\"; readonly Metrics: \"metrics\"; }" - ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.installationStatuses", - "type": "Object", - "label": "installationStatuses", - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/constants/epm.ts", - "lineNumber": 33, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/epm.ts#L33" - }, - "signature": [ - "{ readonly Installed: \"installed\"; readonly NotInstalled: \"not_installed\"; }" + "lineNumber": 43 + }, + "signature": [ + "true" + ] + }, + { + "tags": [], + "id": "def-common.DEFAULT_FLEET_SERVER_AGENT_POLICY.is_managed", + "type": "boolean", + "label": "is_managed", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 44 + }, + "signature": [ + "false" + ] + }, + { + "tags": [], + "id": "def-common.DEFAULT_FLEET_SERVER_AGENT_POLICY.monitoring_enabled", + "type": "Array", + "label": "monitoring_enabled", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 45 + }, + "signature": [ + "(\"metrics\" | \"logs\")[]" + ] + } ], - "initialIsOpen": false - }, - { - "tags": [], - "id": "def-common.outputType", - "type": "Object", - "label": "outputType", "description": [], + "label": "DEFAULT_FLEET_SERVER_AGENT_POLICY", "source": { - "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 12, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L12" + "path": "x-pack/plugins/fleet/common/constants/agent_policy.ts", + "lineNumber": 33 }, - "signature": [ - "{ readonly Elasticsearch: \"elasticsearch\"; }" - ], "initialIsOpen": false }, { @@ -15771,8 +14992,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 17, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L17" + "lineNumber": 17 } }, { @@ -15783,8 +15003,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 18, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L18" + "lineNumber": 18 }, "signature": [ "true" @@ -15798,8 +15017,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 19, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L19" + "lineNumber": 19 }, "signature": [ "\"elasticsearch\"" @@ -15813,8 +15031,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 20, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L20" + "lineNumber": 20 }, "signature": [ "string[]" @@ -15825,278 +15042,90 @@ "label": "DEFAULT_OUTPUT", "source": { "path": "x-pack/plugins/fleet/common/constants/output.ts", - "lineNumber": 16, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/constants/output.ts#L16" + "lineNumber": 16 }, "initialIsOpen": false }, { - "id": "def-common.AgentStatusKueryHelper", - "type": "Object", - "label": "AgentStatusKueryHelper", "tags": [], + "id": "def-common.defaultPackages", + "type": "Object", + "label": "defaultPackages", "description": [], "source": { - "path": "x-pack/plugins/fleet/common/services/index.ts", - "lineNumber": 9, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/index.ts#L9" + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 22 }, "signature": [ - "typeof ", - "x-pack/plugins/fleet/common/services/agent_status" + "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" ], "initialIsOpen": false }, { - "id": "def-common.epmRouteService", + "id": "def-common.ENROLLMENT_API_KEY_ROUTES", "type": "Object", "tags": [], "children": [ { - "id": "def-common.epmRouteService.getCategoriesPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], - "description": [], - "label": "getCategoriesPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 24, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L24" - }, - "tags": [], - "returnComment": [] - }, - { - "id": "def-common.epmRouteService.getListPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], - "description": [], - "label": "getListPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 28, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L28" - }, "tags": [], - "returnComment": [] - }, - { - "id": "def-common.epmRouteService.getListLimitedPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "id": "def-common.ENROLLMENT_API_KEY_ROUTES.CREATE_PATTERN", + "type": "string", + "label": "CREATE_PATTERN", "description": [], - "label": "getListLimitedPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 32, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L32" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 107 + } }, { - "id": "def-common.epmRouteService.getInfoPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "pkgkey", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L36" - } - } - ], - "signature": [ - "(pkgkey: string) => string" - ], - "description": [], - "label": "getInfoPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 36, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L36" - }, "tags": [], - "returnComment": [] - }, - { - "id": "def-common.epmRouteService.getStatsPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "pkgName", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L40" - } - } - ], - "signature": [ - "(pkgName: string) => string" - ], + "id": "def-common.ENROLLMENT_API_KEY_ROUTES.LIST_PATTERN", + "type": "string", + "label": "LIST_PATTERN", "description": [], - "label": "getStatsPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 40, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L40" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 108 + } }, { - "id": "def-common.epmRouteService.getFilePath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "filePath", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L44" - } - } - ], - "signature": [ - "(filePath: string) => string" - ], - "description": [], - "label": "getFilePath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 44, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L44" - }, "tags": [], - "returnComment": [] - }, - { - "id": "def-common.epmRouteService.getInstallPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "pkgkey", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L48" - } - } - ], - "signature": [ - "(pkgkey: string) => string" - ], + "id": "def-common.ENROLLMENT_API_KEY_ROUTES.INFO_PATTERN", + "type": "string", + "label": "INFO_PATTERN", "description": [], - "label": "getInstallPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 48, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L48" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 109 + } }, { - "id": "def-common.epmRouteService.getBulkInstallPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], - "description": [], - "label": "getBulkInstallPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 55, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L55" - }, "tags": [], - "returnComment": [] - }, - { - "id": "def-common.epmRouteService.getRemovePath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "pkgkey", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 59, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L59" - } - } - ], - "signature": [ - "(pkgkey: string) => string" - ], + "id": "def-common.ENROLLMENT_API_KEY_ROUTES.DELETE_PATTERN", + "type": "string", + "label": "DELETE_PATTERN", "description": [], - "label": "getRemovePath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 59, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L59" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 110 + } } ], "description": [], - "label": "epmRouteService", + "label": "ENROLLMENT_API_KEY_ROUTES", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 23, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L23" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 106 }, "initialIsOpen": false }, { - "id": "def-common.packagePolicyRouteService", + "id": "def-common.enrollmentAPIKeyRouteService", "type": "Object", "tags": [], "children": [ { - "id": "def-common.packagePolicyRouteService.getListPath", + "id": "def-common.enrollmentAPIKeyRouteService.getListPath", "type": "Function", "children": [], "signature": [ @@ -16106,46 +15135,13 @@ "label": "getListPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 65, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L65" - }, - "tags": [], - "returnComment": [] - }, - { - "id": "def-common.packagePolicyRouteService.getInfoPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "packagePolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L69" - } - } - ], - "signature": [ - "(packagePolicyId: string) => string" - ], - "description": [], - "label": "getInfoPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 69, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L69" + "lineNumber": 170 }, "tags": [], "returnComment": [] }, { - "id": "def-common.packagePolicyRouteService.getCreatePath", + "id": "def-common.enrollmentAPIKeyRouteService.getCreatePath", "type": "Function", "children": [], "signature": [ @@ -16155,19 +15151,18 @@ "label": "getCreatePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 73, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L73" + "lineNumber": 171 }, "tags": [], "returnComment": [] }, { - "id": "def-common.packagePolicyRouteService.getUpdatePath", + "id": "def-common.enrollmentAPIKeyRouteService.getInfoPath", "type": "Function", "children": [ { "type": "string", - "label": "packagePolicyId", + "label": "keyId", "isRequired": true, "signature": [ "string" @@ -16175,370 +15170,245 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 77, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L77" + "lineNumber": 172 } } ], "signature": [ - "(packagePolicyId: string) => string" + "(keyId: string) => string" ], "description": [], - "label": "getUpdatePath", + "label": "getInfoPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 77, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L77" + "lineNumber": 172 }, "tags": [], "returnComment": [] }, { - "id": "def-common.packagePolicyRouteService.getDeletePath", + "id": "def-common.enrollmentAPIKeyRouteService.getDeletePath", "type": "Function", - "children": [], + "children": [ + { + "type": "string", + "label": "keyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 173 + } + } + ], "signature": [ - "() => string" + "(keyId: string) => string" ], "description": [], "label": "getDeletePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 81, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L81" + "lineNumber": 173 }, "tags": [], "returnComment": [] } ], "description": [], - "label": "packagePolicyRouteService", + "label": "enrollmentAPIKeyRouteService", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 64, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L64" + "lineNumber": 169 }, "initialIsOpen": false }, { - "id": "def-common.agentPolicyRouteService", + "id": "def-common.EPM_API_ROUTES", "type": "Object", "tags": [], "children": [ { - "id": "def-common.agentPolicyRouteService.getListPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.BULK_INSTALL_PATTERN", + "type": "string", + "label": "BULK_INSTALL_PATTERN", "description": [], - "label": "getListPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 87, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L87" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 25 + } }, { - "id": "def-common.agentPolicyRouteService.getInfoPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L91" - } - } - ], - "signature": [ - "(agentPolicyId: string) => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.LIST_PATTERN", + "type": "string", + "label": "LIST_PATTERN", "description": [], - "label": "getInfoPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 91, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L91" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 26 + } }, { - "id": "def-common.agentPolicyRouteService.getCreatePath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.LIMITED_LIST_PATTERN", + "type": "string", + "label": "LIMITED_LIST_PATTERN", "description": [], - "label": "getCreatePath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 95, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L95" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 27 + } }, { - "id": "def-common.agentPolicyRouteService.getUpdatePath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 99, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L99" - } - } - ], - "signature": [ - "(agentPolicyId: string) => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.INFO_PATTERN", + "type": "string", + "label": "INFO_PATTERN", "description": [], - "label": "getUpdatePath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 99, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L99" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 28 + } }, { - "id": "def-common.agentPolicyRouteService.getCopyPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 103, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L103" - } - } - ], - "signature": [ - "(agentPolicyId: string) => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.INSTALL_FROM_REGISTRY_PATTERN", + "type": "string", + "label": "INSTALL_FROM_REGISTRY_PATTERN", "description": [], - "label": "getCopyPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 103, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L103" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 29 + } }, { - "id": "def-common.agentPolicyRouteService.getDeletePath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.INSTALL_BY_UPLOAD_PATTERN", + "type": "string", + "label": "INSTALL_BY_UPLOAD_PATTERN", "description": [], - "label": "getDeletePath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L107" - }, + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 30 + } + }, + { "tags": [], - "returnComment": [] + "id": "def-common.EPM_API_ROUTES.DELETE_PATTERN", + "type": "string", + "label": "DELETE_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 31 + } }, { - "id": "def-common.agentPolicyRouteService.getInfoFullPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 111, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L111" - } - } - ], - "signature": [ - "(agentPolicyId: string) => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.FILEPATH_PATTERN", + "type": "string", + "label": "FILEPATH_PATTERN", "description": [], - "label": "getInfoFullPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 111, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L111" - }, + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 32 + } + }, + { "tags": [], - "returnComment": [] + "id": "def-common.EPM_API_ROUTES.CATEGORIES_PATTERN", + "type": "string", + "label": "CATEGORIES_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 33 + } }, { - "id": "def-common.agentPolicyRouteService.getInfoFullDownloadPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentPolicyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L115" - } - } - ], - "signature": [ - "(agentPolicyId: string) => string" - ], + "tags": [], + "id": "def-common.EPM_API_ROUTES.STATS_PATTERN", + "type": "string", + "label": "STATS_PATTERN", "description": [], - "label": "getInfoFullDownloadPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 115, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L115" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 34 + } } ], "description": [], - "label": "agentPolicyRouteService", + "label": "EPM_API_ROUTES", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 86, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L86" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 24 }, "initialIsOpen": false }, { - "id": "def-common.dataStreamRouteService", + "id": "def-common.epmRouteService", "type": "Object", "tags": [], "children": [ { - "id": "def-common.dataStreamRouteService.getListPath", + "id": "def-common.epmRouteService.getCategoriesPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getListPath", + "label": "getCategoriesPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 124, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L124" + "lineNumber": 24 }, "tags": [], "returnComment": [] - } - ], - "description": [], - "label": "dataStreamRouteService", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 123, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L123" - }, - "initialIsOpen": false - }, - { - "id": "def-common.fleetSetupRouteService", - "type": "Object", - "tags": [], - "children": [ + }, { - "id": "def-common.fleetSetupRouteService.getFleetSetupPath", + "id": "def-common.epmRouteService.getListPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getFleetSetupPath", + "label": "getListPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 130, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L130" + "lineNumber": 28 }, "tags": [], "returnComment": [] }, { - "id": "def-common.fleetSetupRouteService.postFleetSetupPath", + "id": "def-common.epmRouteService.getListLimitedPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "postFleetSetupPath", + "label": "getListLimitedPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 131, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L131" + "lineNumber": 32 }, "tags": [], "returnComment": [] - } - ], - "description": [], - "label": "fleetSetupRouteService", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 129, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L129" - }, - "initialIsOpen": false - }, - { - "id": "def-common.agentRouteService", - "type": "Object", - "tags": [], - "children": [ + }, { - "id": "def-common.agentRouteService.getInfoPath", + "id": "def-common.epmRouteService.getInfoPath", "type": "Function", "children": [ { "type": "string", - "label": "agentId", + "label": "pkgkey", "isRequired": true, "signature": [ "string" @@ -16546,31 +15416,29 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 135, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L135" + "lineNumber": 36 } } ], "signature": [ - "(agentId: string) => string" + "(pkgkey: string) => string" ], "description": [], "label": "getInfoPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 135, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L135" + "lineNumber": 36 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getUpdatePath", + "id": "def-common.epmRouteService.getStatsPath", "type": "Function", "children": [ { "type": "string", - "label": "agentId", + "label": "pkgName", "isRequired": true, "signature": [ "string" @@ -16578,31 +15446,29 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 136, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L136" + "lineNumber": 40 } } ], "signature": [ - "(agentId: string) => string" + "(pkgName: string) => string" ], "description": [], - "label": "getUpdatePath", + "label": "getStatsPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 136, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L136" + "lineNumber": 40 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getEventsPath", + "id": "def-common.epmRouteService.getFilePath", "type": "Function", "children": [ { "type": "string", - "label": "agentId", + "label": "filePath", "isRequired": true, "signature": [ "string" @@ -16610,31 +15476,29 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 137, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L137" + "lineNumber": 44 } } ], "signature": [ - "(agentId: string) => string" + "(filePath: string) => string" ], "description": [], - "label": "getEventsPath", + "label": "getFilePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 137, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L137" + "lineNumber": 44 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getUnenrollPath", + "id": "def-common.epmRouteService.getInstallPath", "type": "Function", "children": [ { "type": "string", - "label": "agentId", + "label": "pkgkey", "isRequired": true, "signature": [ "string" @@ -16642,48 +15506,45 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 138, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L138" + "lineNumber": 48 } } ], "signature": [ - "(agentId: string) => string" + "(pkgkey: string) => string" ], "description": [], - "label": "getUnenrollPath", + "label": "getInstallPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 138, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L138" + "lineNumber": 48 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getBulkUnenrollPath", + "id": "def-common.epmRouteService.getBulkInstallPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getBulkUnenrollPath", + "label": "getBulkInstallPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 140, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L140" + "lineNumber": 55 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getReassignPath", + "id": "def-common.epmRouteService.getRemovePath", "type": "Function", "children": [ { "type": "string", - "label": "agentId", + "label": "pkgkey", "isRequired": true, "signature": [ "string" @@ -16691,163 +15552,136 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 141, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L141" + "lineNumber": 59 } } ], "signature": [ - "(agentId: string) => string" + "(pkgkey: string) => string" ], "description": [], - "label": "getReassignPath", + "label": "getRemovePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 141, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L141" + "lineNumber": 59 }, "tags": [], "returnComment": [] - }, + } + ], + "description": [], + "label": "epmRouteService", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 23 + }, + "initialIsOpen": false + }, + { + "id": "def-common.fleetSetupRouteService", + "type": "Object", + "tags": [], + "children": [ { - "id": "def-common.agentRouteService.getBulkReassignPath", + "id": "def-common.fleetSetupRouteService.getFleetSetupPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getBulkReassignPath", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L143" - }, - "tags": [], - "returnComment": [] - }, - { - "id": "def-common.agentRouteService.getUpgradePath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 144, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L144" - } - } - ], - "signature": [ - "(agentId: string) => string" - ], - "description": [], - "label": "getUpgradePath", + "label": "getFleetSetupPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 144, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L144" + "lineNumber": 130 }, "tags": [], "returnComment": [] }, { - "id": "def-common.agentRouteService.getBulkUpgradePath", + "id": "def-common.fleetSetupRouteService.postFleetSetupPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getBulkUpgradePath", + "label": "postFleetSetupPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 146, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L146" + "lineNumber": 131 }, "tags": [], "returnComment": [] - }, + } + ], + "description": [], + "label": "fleetSetupRouteService", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 129 + }, + "initialIsOpen": false + }, + { + "tags": [], + "id": "def-common.installationStatuses", + "type": "Object", + "label": "installationStatuses", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 33 + }, + "signature": [ + "{ readonly Installed: \"installed\"; readonly NotInstalled: \"not_installed\"; }" + ], + "initialIsOpen": false + }, + { + "id": "def-common.OUTPUT_API_ROUTES", + "type": "Object", + "tags": [], + "children": [ { - "id": "def-common.agentRouteService.getListPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.OUTPUT_API_ROUTES.LIST_PATTERN", + "type": "string", + "label": "LIST_PATTERN", "description": [], - "label": "getListPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 147, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L147" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 65 + } }, { - "id": "def-common.agentRouteService.getStatusPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.OUTPUT_API_ROUTES.INFO_PATTERN", + "type": "string", + "label": "INFO_PATTERN", "description": [], - "label": "getStatusPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 148, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L148" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 66 + } }, { - "id": "def-common.agentRouteService.getCreateActionPath", - "type": "Function", - "children": [ - { - "type": "string", - "label": "agentId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 149, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L149" - } - } - ], - "signature": [ - "(agentId: string) => string" - ], + "tags": [], + "id": "def-common.OUTPUT_API_ROUTES.UPDATE_PATTERN", + "type": "string", + "label": "UPDATE_PATTERN", "description": [], - "label": "getCreateActionPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 149, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L149" - }, - "tags": [], - "returnComment": [] + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 67 + } } ], "description": [], - "label": "agentRouteService", + "label": "OUTPUT_API_ROUTES", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L134" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 64 }, "initialIsOpen": false }, @@ -16870,8 +15704,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 154, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L154" + "lineNumber": 154 } } ], @@ -16882,8 +15715,7 @@ "label": "getInfoPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 154, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L154" + "lineNumber": 154 }, "tags": [], "returnComment": [] @@ -16902,8 +15734,7 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L155" + "lineNumber": 155 } } ], @@ -16914,8 +15745,7 @@ "label": "getUpdatePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L155" + "lineNumber": 155 }, "tags": [], "returnComment": [] @@ -16931,8 +15761,7 @@ "label": "getListPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 157, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L157" + "lineNumber": 157 }, "tags": [], "returnComment": [] @@ -16942,116 +15771,147 @@ "label": "outputRoutesService", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 153, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L153" + "lineNumber": 153 }, "initialIsOpen": false }, { - "id": "def-common.settingsRoutesService", + "tags": [], + "id": "def-common.outputType", + "type": "Object", + "label": "outputType", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/output.ts", + "lineNumber": 12 + }, + "signature": [ + "{ readonly Elasticsearch: \"elasticsearch\"; }" + ], + "initialIsOpen": false + }, + { + "id": "def-common.PACKAGE_POLICY_API_ROUTES", "type": "Object", "tags": [], "children": [ { - "id": "def-common.settingsRoutesService.getInfoPath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.PACKAGE_POLICY_API_ROUTES.LIST_PATTERN", + "type": "string", + "label": "LIST_PATTERN", "description": [], - "label": "getInfoPath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 161, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L161" - }, + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 44 + } + }, + { "tags": [], - "returnComment": [] + "id": "def-common.PACKAGE_POLICY_API_ROUTES.INFO_PATTERN", + "type": "string", + "label": "INFO_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 45 + } }, { - "id": "def-common.settingsRoutesService.getUpdatePath", - "type": "Function", - "children": [], - "signature": [ - "() => string" - ], + "tags": [], + "id": "def-common.PACKAGE_POLICY_API_ROUTES.CREATE_PATTERN", + "type": "string", + "label": "CREATE_PATTERN", "description": [], - "label": "getUpdatePath", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 162, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L162" - }, + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 46 + } + }, + { "tags": [], - "returnComment": [] + "id": "def-common.PACKAGE_POLICY_API_ROUTES.UPDATE_PATTERN", + "type": "string", + "label": "UPDATE_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 47 + } + }, + { + "tags": [], + "id": "def-common.PACKAGE_POLICY_API_ROUTES.DELETE_PATTERN", + "type": "string", + "label": "DELETE_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 48 + } } ], "description": [], - "label": "settingsRoutesService", + "label": "PACKAGE_POLICY_API_ROUTES", "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 160, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L160" + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 43 }, "initialIsOpen": false }, { - "id": "def-common.appRoutesService", + "id": "def-common.packagePolicyRouteService", "type": "Object", "tags": [], "children": [ { - "id": "def-common.appRoutesService.getCheckPermissionsPath", + "id": "def-common.packagePolicyRouteService.getListPath", "type": "Function", "children": [], "signature": [ "() => string" ], "description": [], - "label": "getCheckPermissionsPath", + "label": "getListPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 166, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L166" + "lineNumber": 65 }, "tags": [], "returnComment": [] - } - ], - "description": [], - "label": "appRoutesService", - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 165, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L165" - }, - "initialIsOpen": false - }, - { - "id": "def-common.enrollmentAPIKeyRouteService", - "type": "Object", - "tags": [], - "children": [ + }, { - "id": "def-common.enrollmentAPIKeyRouteService.getListPath", + "id": "def-common.packagePolicyRouteService.getInfoPath", "type": "Function", - "children": [], + "children": [ + { + "type": "string", + "label": "packagePolicyId", + "isRequired": true, + "signature": [ + "string" + ], + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 69 + } + } + ], "signature": [ - "() => string" + "(packagePolicyId: string) => string" ], "description": [], - "label": "getListPath", + "label": "getInfoPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 170, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L170" + "lineNumber": 69 }, "tags": [], "returnComment": [] }, { - "id": "def-common.enrollmentAPIKeyRouteService.getCreatePath", + "id": "def-common.packagePolicyRouteService.getCreatePath", "type": "Function", "children": [], "signature": [ @@ -17061,19 +15921,18 @@ "label": "getCreatePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 171, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L171" + "lineNumber": 73 }, "tags": [], "returnComment": [] }, { - "id": "def-common.enrollmentAPIKeyRouteService.getInfoPath", + "id": "def-common.packagePolicyRouteService.getUpdatePath", "type": "Function", "children": [ { "type": "string", - "label": "keyId", + "label": "packagePolicyId", "isRequired": true, "signature": [ "string" @@ -17081,63 +15940,141 @@ "description": [], "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 172, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L172" + "lineNumber": 77 } } ], "signature": [ - "(keyId: string) => string" + "(packagePolicyId: string) => string" ], "description": [], - "label": "getInfoPath", + "label": "getUpdatePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 172, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L172" + "lineNumber": 77 }, "tags": [], "returnComment": [] }, { - "id": "def-common.enrollmentAPIKeyRouteService.getDeletePath", + "id": "def-common.packagePolicyRouteService.getDeletePath", "type": "Function", - "children": [ - { - "type": "string", - "label": "keyId", - "isRequired": true, - "signature": [ - "string" - ], - "description": [], - "source": { - "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 173, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L173" - } - } - ], + "children": [], "signature": [ - "(keyId: string) => string" + "() => string" ], "description": [], "label": "getDeletePath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 173, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L173" + "lineNumber": 81 }, "tags": [], "returnComment": [] } ], "description": [], - "label": "enrollmentAPIKeyRouteService", + "label": "packagePolicyRouteService", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 64 + }, + "initialIsOpen": false + }, + { + "tags": [], + "id": "def-common.requiredPackages", + "type": "Object", + "label": "requiredPackages", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/epm.ts", + "lineNumber": 15 + }, + "signature": [ + "{ readonly System: \"system\"; readonly Endpoint: \"endpoint\"; readonly ElasticAgent: \"elastic_agent\"; }" + ], + "initialIsOpen": false + }, + { + "id": "def-common.SETTINGS_API_ROUTES", + "type": "Object", + "tags": [], + "children": [ + { + "tags": [], + "id": "def-common.SETTINGS_API_ROUTES.INFO_PATTERN", + "type": "string", + "label": "INFO_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 72 + } + }, + { + "tags": [], + "id": "def-common.SETTINGS_API_ROUTES.UPDATE_PATTERN", + "type": "string", + "label": "UPDATE_PATTERN", + "description": [], + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 73 + } + } + ], + "description": [], + "label": "SETTINGS_API_ROUTES", + "source": { + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "lineNumber": 71 + }, + "initialIsOpen": false + }, + { + "id": "def-common.settingsRoutesService", + "type": "Object", + "tags": [], + "children": [ + { + "id": "def-common.settingsRoutesService.getInfoPath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], + "description": [], + "label": "getInfoPath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 161 + }, + "tags": [], + "returnComment": [] + }, + { + "id": "def-common.settingsRoutesService.getUpdatePath", + "type": "Function", + "children": [], + "signature": [ + "() => string" + ], + "description": [], + "label": "getUpdatePath", + "source": { + "path": "x-pack/plugins/fleet/common/services/routes.ts", + "lineNumber": 162 + }, + "tags": [], + "returnComment": [] + } + ], + "description": [], + "label": "settingsRoutesService", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 169, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L169" + "lineNumber": 160 }, "initialIsOpen": false }, @@ -17157,8 +16094,7 @@ "label": "getSetupPath", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 178, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L178" + "lineNumber": 178 }, "tags": [], "returnComment": [] @@ -17168,8 +16104,7 @@ "label": "setupRouteService", "source": { "path": "x-pack/plugins/fleet/common/services/routes.ts", - "lineNumber": 177, - "link": "https://github.com/elastic/kibana/tree/masterx-pack/plugins/fleet/common/services/routes.ts#L177" + "lineNumber": 177 }, "initialIsOpen": false } diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index d64864ca5c800..1388184f7a948 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -45,6 +45,9 @@ import fleetObj from './fleet.json'; ### Functions +### Classes + + ### Interfaces diff --git a/package.json b/package.json index d35d7f3535f9c..2c8d5cd395cd4 100644 --- a/package.json +++ b/package.json @@ -283,7 +283,7 @@ "react-resizable": "^1.7.5", "react-router": "^5.2.0", "react-router-dom": "^5.2.0", - "react-use": "^15.3.4", + "react-use": "^15.3.8", "recompose": "^0.26.0", "redux": "^4.0.5", "redux-actions": "^2.6.5", diff --git a/src/plugins/data/server/kql_telemetry/route.ts b/src/plugins/data/server/kql_telemetry/route.ts index 1410c0ebe52c1..7181d2bebd31c 100644 --- a/src/plugins/data/server/kql_telemetry/route.ts +++ b/src/plugins/data/server/kql_telemetry/route.ts @@ -25,7 +25,7 @@ export function registerKqlTelemetryRoute( }, async (context, request, response) => { const [{ savedObjects }] = await getStartServices(); - const internalRepository = savedObjects.createScopedRepository(request); + const internalRepository = savedObjects.createInternalRepository(); const { body: { opt_in: optIn }, diff --git a/x-pack/plugins/fleet/common/services/agent_status.ts b/x-pack/plugins/fleet/common/services/agent_status.ts index 6d1d1c6a309d8..df5de6ad98191 100644 --- a/x-pack/plugins/fleet/common/services/agent_status.ts +++ b/x-pack/plugins/fleet/common/services/agent_status.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AGENT_POLLING_THRESHOLD_MS, AGENT_SAVED_OBJECT_TYPE } from '../constants'; +import { AGENT_POLLING_THRESHOLD_MS } from '../constants'; import type { Agent, AgentStatus } from '../types'; export function getAgentStatus(agent: Agent, now: number = Date.now()): AgentStatus { @@ -42,11 +42,11 @@ export function getAgentStatus(agent: Agent, now: number = Date.now()): AgentSta } export function buildKueryForEnrollingAgents() { - return `not (${AGENT_SAVED_OBJECT_TYPE}.last_checkin:*)`; + return 'not (last_checkin:*)'; } export function buildKueryForUnenrollingAgents() { - return `${AGENT_SAVED_OBJECT_TYPE}.unenrollment_started_at:*`; + return 'unenrollment_started_at:*'; } export function buildKueryForOnlineAgents() { @@ -54,17 +54,17 @@ export function buildKueryForOnlineAgents() { } export function buildKueryForErrorAgents() { - return `${AGENT_SAVED_OBJECT_TYPE}.last_checkin_status:error or ${AGENT_SAVED_OBJECT_TYPE}.last_checkin_status:degraded`; + return 'last_checkin_status:error or .last_checkin_status:degraded'; } export function buildKueryForOfflineAgents() { - return `${AGENT_SAVED_OBJECT_TYPE}.last_checkin < now-${ + return `last_checkin < now-${ (4 * AGENT_POLLING_THRESHOLD_MS) / 1000 }s AND not (${buildKueryForErrorAgents()}) AND not ( ${buildKueryForUpdatingAgents()} )`; } export function buildKueryForUpgradingAgents() { - return `(${AGENT_SAVED_OBJECT_TYPE}.upgrade_started_at:*) and not (${AGENT_SAVED_OBJECT_TYPE}.upgraded_at:*)`; + return '(upgrade_started_at:*) and not (upgraded_at:*)'; } export function buildKueryForUpdatingAgents() { @@ -72,5 +72,5 @@ export function buildKueryForUpdatingAgents() { } export function buildKueryForInactiveAgents() { - return `${AGENT_SAVED_OBJECT_TYPE}.active:false`; + return `active:false`; } diff --git a/x-pack/plugins/fleet/common/types/index.ts b/x-pack/plugins/fleet/common/types/index.ts index c777c2591dc9a..4223697703a8d 100644 --- a/x-pack/plugins/fleet/common/types/index.ts +++ b/x-pack/plugins/fleet/common/types/index.ts @@ -13,7 +13,6 @@ export interface FleetConfigType { registryUrl?: string; registryProxyUrl?: string; agents: { - fleetServerEnabled: boolean; enabled: boolean; tlsCheckDisabled: boolean; pollingRequestTimeout: number; diff --git a/x-pack/plugins/fleet/public/applications/fleet/mock/plugin_configuration.ts b/x-pack/plugins/fleet/public/applications/fleet/mock/plugin_configuration.ts index 81ef6a6703c34..5d53425607361 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/mock/plugin_configuration.ts +++ b/x-pack/plugins/fleet/public/applications/fleet/mock/plugin_configuration.ts @@ -14,7 +14,6 @@ export const createConfigurationMock = (): FleetConfigType => { registryProxyUrl: '', agents: { enabled: true, - fleetServerEnabled: false, tlsCheckDisabled: true, pollingRequestTimeout: 1000, maxConcurrentConnections: 100, diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx index 982194f52ddac..aface1fc9ac4b 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/search_and_filter_bar.tsx @@ -19,8 +19,7 @@ import { FormattedMessage } from '@kbn/i18n/react'; import { AgentPolicy } from '../../../../types'; import { SearchBar } from '../../../../components'; -import { AGENTS_INDEX, AGENT_SAVED_OBJECT_TYPE } from '../../../../constants'; -import { useConfig } from '../../../../hooks'; +import { AGENTS_INDEX } from '../../../../constants'; const statusFilters = [ { @@ -78,7 +77,6 @@ export const SearchAndFilterBar: React.FunctionComponent<{ showUpgradeable, onShowUpgradeableChange, }) => { - const config = useConfig(); // Policies state for filtering const [isAgentPoliciesFilterOpen, setIsAgentPoliciesFilterOpen] = useState(false); @@ -112,13 +110,7 @@ export const SearchAndFilterBar: React.FunctionComponent<{ onSubmitSearch(newSearch); } }} - {...(config.agents.fleetServerEnabled - ? { - indexPattern: AGENTS_INDEX, - } - : { - fieldPrefix: AGENT_SAVED_OBJECT_TYPE, - })} + indexPattern={AGENTS_INDEX} /> diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx index ce4c76141fad0..d7c66139ac77b 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agents/enrollment_token_list_page/index.tsx @@ -21,10 +21,7 @@ import { } from '@elastic/eui'; import { FormattedMessage, FormattedDate } from '@kbn/i18n/react'; -import { - ENROLLMENT_API_KEYS_INDEX, - ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE, -} from '../../../constants'; +import { ENROLLMENT_API_KEYS_INDEX } from '../../../constants'; import { useBreadcrumbs, usePagination, @@ -33,7 +30,6 @@ import { sendGetOneEnrollmentAPIKey, useStartServices, sendDeleteOneEnrollmentAPIKey, - useConfig, } from '../../../hooks'; import { EnrollmentAPIKey } from '../../../types'; import { SearchBar } from '../../../components/search_bar'; @@ -160,7 +156,6 @@ const DeleteButton: React.FunctionComponent<{ apiKey: EnrollmentAPIKey; refresh: export const EnrollmentTokenListPage: React.FunctionComponent<{}> = () => { useBreadcrumbs('fleet_enrollment_tokens'); - const config = useConfig(); const [flyoutOpen, setFlyoutOpen] = useState(false); const [search, setSearch] = useState(''); const { pagination, setPagination, pageSizeOptions } = usePagination(); @@ -288,13 +283,7 @@ export const EnrollmentTokenListPage: React.FunctionComponent<{}> = () => { }); setSearch(newSearch); }} - {...(config.agents.fleetServerEnabled - ? { - indexPattern: ENROLLMENT_API_KEYS_INDEX, - } - : { - fieldPrefix: ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE, - })} + indexPattern={ENROLLMENT_API_KEYS_INDEX} /> diff --git a/x-pack/plugins/fleet/server/collectors/agent_collectors.ts b/x-pack/plugins/fleet/server/collectors/agent_collectors.ts index b88249fb71d8d..19be9a010889a 100644 --- a/x-pack/plugins/fleet/server/collectors/agent_collectors.ts +++ b/x-pack/plugins/fleet/server/collectors/agent_collectors.ts @@ -25,8 +25,7 @@ export const getAgentUsage = async ( esClient?: ElasticsearchClient ): Promise => { // TODO: unsure if this case is possible at all. - const fleetServerMissing = config.agents.fleetServerEnabled && !(await isFleetServerSetup()); - if (!soClient || !esClient || fleetServerMissing) { + if (!soClient || !esClient || !(await isFleetServerSetup())) { return { total: 0, online: 0, diff --git a/x-pack/plugins/fleet/server/errors/handlers.ts b/x-pack/plugins/fleet/server/errors/handlers.ts index cbb1d9c9ca7f7..4e1c4649aaf6f 100644 --- a/x-pack/plugins/fleet/server/errors/handlers.ts +++ b/x-pack/plugins/fleet/server/errors/handlers.ts @@ -24,6 +24,7 @@ import { AgentPolicyNameExistsError, PackageUnsupportedMediaTypeError, ConcurrentInstallOperationError, + AgentNotFoundError, } from './index'; type IngestErrorHandler = ( @@ -78,6 +79,9 @@ const getHTTPResponseCode = (error: IngestManagerError): number => { if (error instanceof ConcurrentInstallOperationError) { return 409; // Conflict } + if (error instanceof AgentNotFoundError) { + return 404; + } return 400; // Bad Request }; diff --git a/x-pack/plugins/fleet/server/errors/index.ts b/x-pack/plugins/fleet/server/errors/index.ts index 0af1b418c7135..f6be638c86b6d 100644 --- a/x-pack/plugins/fleet/server/errors/index.ts +++ b/x-pack/plugins/fleet/server/errors/index.ts @@ -19,6 +19,7 @@ export class IngestManagerError extends Error { this.name = this.constructor.name; // for stack traces } } + export class RegistryError extends IngestManagerError {} export class RegistryConnectionError extends RegistryError {} export class RegistryResponseError extends RegistryError { @@ -30,6 +31,7 @@ export class PackageNotFoundError extends IngestManagerError {} export class PackageKeyInvalidError extends IngestManagerError {} export class PackageOutdatedError extends IngestManagerError {} export class AgentPolicyError extends IngestManagerError {} +export class AgentNotFoundError extends IngestManagerError {} export class AgentPolicyNameExistsError extends AgentPolicyError {} export class PackageUnsupportedMediaTypeError extends IngestManagerError {} export class PackageInvalidArchiveError extends IngestManagerError {} diff --git a/x-pack/plugins/fleet/server/index.ts b/x-pack/plugins/fleet/server/index.ts index 6a7d437e05543..0c9fc7dc27d1b 100644 --- a/x-pack/plugins/fleet/server/index.ts +++ b/x-pack/plugins/fleet/server/index.ts @@ -26,15 +26,17 @@ export { AgentPolicyServiceInterface, } from './services'; export { FleetSetupContract, FleetSetupDeps, FleetStartContract, ExternalCallback } from './plugin'; +export { AgentNotFoundError } from './errors'; export const config: PluginConfigDescriptor = { exposeToBrowser: { epm: true, agents: true, }, - deprecations: ({ renameFromRoot }) => [ + deprecations: ({ renameFromRoot, unused }) => [ renameFromRoot('xpack.ingestManager', 'xpack.fleet'), renameFromRoot('xpack.fleet.fleet', 'xpack.fleet.agents'), + unused('agents.fleetServerEnabled'), ], schema: schema.object({ enabled: schema.boolean({ defaultValue: true }), @@ -42,7 +44,6 @@ export const config: PluginConfigDescriptor = { registryProxyUrl: schema.maybe(schema.uri({ scheme: ['http', 'https'] })), agents: schema.object({ enabled: schema.boolean({ defaultValue: true }), - fleetServerEnabled: schema.boolean({ defaultValue: false }), tlsCheckDisabled: schema.boolean({ defaultValue: false }), pollingRequestTimeout: schema.number({ defaultValue: AGENT_POLLING_REQUEST_TIMEOUT_MS, diff --git a/x-pack/plugins/fleet/server/plugin.ts b/x-pack/plugins/fleet/server/plugin.ts index 581478ee5190a..775bef45ea79c 100644 --- a/x-pack/plugins/fleet/server/plugin.ts +++ b/x-pack/plugins/fleet/server/plugin.ts @@ -299,10 +299,7 @@ export class FleetPlugin licenseService.start(this.licensing$); agentCheckinState.start(); - if (appContextService.getConfig()?.agents?.fleetServerEnabled) { - // Break the promise chain, the error handling is done in startFleetServerSetup - startFleetServerSetup(); - } + startFleetServerSetup(); return { esIndexPatternService: new ESIndexPatternSavedObjectService(), diff --git a/x-pack/plugins/fleet/server/routes/agent/acks_handlers.ts b/x-pack/plugins/fleet/server/routes/agent/acks_handlers.ts index 44c15ecbfa313..d4c84d19546c9 100644 --- a/x-pack/plugins/fleet/server/routes/agent/acks_handlers.ts +++ b/x-pack/plugins/fleet/server/routes/agent/acks_handlers.ts @@ -21,7 +21,7 @@ export const postAgentAcksHandlerBuilder = function ( try { const soClient = ackService.getSavedObjectsClientContract(request); const esClient = ackService.getElasticsearchClientContract(); - const agent = await ackService.authenticateAgentWithAccessToken(soClient, esClient, request); + const agent = await ackService.authenticateAgentWithAccessToken(esClient, request); const agentEvents = request.body.events as AgentEvent[]; // validate that all events are for the authorized agent obtained from the api key diff --git a/x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts b/x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts index c0c9df1d86ede..f7cc750ff1e6f 100644 --- a/x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts +++ b/x-pack/plugins/fleet/server/routes/agent/actions_handlers.ts @@ -27,7 +27,7 @@ export const postNewAgentActionHandlerBuilder = function ( const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asInternalUser; - const agent = await actionsService.getAgent(soClient, esClient, request.params.agentId); + const agent = await actionsService.getAgent(esClient, request.params.agentId); const newAgentAction = request.body.action; diff --git a/x-pack/plugins/fleet/server/routes/agent/handlers.ts b/x-pack/plugins/fleet/server/routes/agent/handlers.ts index 64d562fa5f7ab..a949ea5c681b1 100644 --- a/x-pack/plugins/fleet/server/routes/agent/handlers.ts +++ b/x-pack/plugins/fleet/server/routes/agent/handlers.ts @@ -44,7 +44,7 @@ export const getAgentHandler: RequestHandler< const esClient = context.core.elasticsearch.client.asCurrentUser; try { - const agent = await AgentService.getAgent(soClient, esClient, request.params.agentId); + const agent = await AgentService.getAgent(esClient, request.params.agentId); const body: GetOneAgentResponse = { item: { @@ -101,11 +101,10 @@ export const getAgentEventsHandler: RequestHandler< export const deleteAgentHandler: RequestHandler< TypeOf > = async (context, request, response) => { - const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asCurrentUser; try { - await AgentService.deleteAgent(soClient, esClient, request.params.agentId); + await AgentService.deleteAgent(esClient, request.params.agentId); const body = { action: 'deleted', @@ -129,14 +128,13 @@ export const updateAgentHandler: RequestHandler< undefined, TypeOf > = async (context, request, response) => { - const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asCurrentUser; try { - await AgentService.updateAgent(soClient, esClient, request.params.agentId, { + await AgentService.updateAgent(esClient, request.params.agentId, { user_provided_metadata: request.body.user_provided_metadata, }); - const agent = await AgentService.getAgent(soClient, esClient, request.params.agentId); + const agent = await AgentService.getAgent(esClient, request.params.agentId); const body = { item: { @@ -165,7 +163,7 @@ export const postAgentCheckinHandler: RequestHandler< try { const soClient = appContextService.getInternalUserSOClient(request); const esClient = appContextService.getInternalUserESClient(); - const agent = await AgentService.authenticateAgentWithAccessToken(soClient, esClient, request); + const agent = await AgentService.authenticateAgentWithAccessToken(esClient, request); const abortController = new AbortController(); request.events.aborted$.subscribe(() => { abortController.abort(); @@ -209,11 +207,7 @@ export const postAgentEnrollHandler: RequestHandler< const soClient = appContextService.getInternalUserSOClient(request); const esClient = context.core.elasticsearch.client.asInternalUser; const { apiKeyId } = APIKeyService.parseApiKeyFromHeaders(request.headers); - const enrollmentAPIKey = await APIKeyService.getEnrollmentAPIKeyById( - soClient, - esClient, - apiKeyId - ); + const enrollmentAPIKey = await APIKeyService.getEnrollmentAPIKeyById(esClient, apiKeyId); if (!enrollmentAPIKey || !enrollmentAPIKey.active) { return response.unauthorized({ @@ -248,11 +242,10 @@ export const getAgentsHandler: RequestHandler< undefined, TypeOf > = async (context, request, response) => { - const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asCurrentUser; try { - const { agents, total, page, perPage } = await AgentService.listAgents(soClient, esClient, { + const { agents, total, page, perPage } = await AgentService.listAgents(esClient, { page: request.query.page, perPage: request.query.perPage, showInactive: request.query.showInactive, @@ -260,7 +253,7 @@ export const getAgentsHandler: RequestHandler< kuery: request.query.kuery, }); const totalInactive = request.query.showInactive - ? await AgentService.countInactiveAgents(soClient, esClient, { + ? await AgentService.countInactiveAgents(esClient, { kuery: request.query.kuery, }) : 0; diff --git a/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts b/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts index dda63533d2f4c..5459ec32b94f3 100644 --- a/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts +++ b/x-pack/plugins/fleet/server/routes/agent/upgrade_handler.ts @@ -36,7 +36,7 @@ export const postAgentUpgradeHandler: RequestHandler< }, }); } - const agent = await getAgent(soClient, esClient, request.params.agentId); + const agent = await getAgent(esClient, request.params.agentId); if (agent.unenrollment_started_at || agent.unenrolled_at) { return response.customError({ statusCode: 400, diff --git a/x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts b/x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts index 67caf6dcf72c5..0496c8c5b0b8f 100644 --- a/x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts +++ b/x-pack/plugins/fleet/server/routes/agent_policy/handlers.ts @@ -58,7 +58,7 @@ export const getAgentPoliciesHandler: RequestHandler< await bluebird.map( items, (agentPolicy: GetAgentPoliciesResponseItem) => - listAgents(soClient, esClient, { + listAgents(esClient, { showInactive: false, perPage: 0, page: 1, diff --git a/x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts b/x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts index bf00676f99dad..2a5fbc1bb6522 100644 --- a/x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts +++ b/x-pack/plugins/fleet/server/routes/enrollment_api_key/handler.ts @@ -27,19 +27,14 @@ export const getEnrollmentApiKeysHandler: RequestHandler< undefined, TypeOf > = async (context, request, response) => { - const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asCurrentUser; try { - const { items, total, page, perPage } = await APIKeyService.listEnrollmentApiKeys( - soClient, - esClient, - { - page: request.query.page, - perPage: request.query.perPage, - kuery: request.query.kuery, - } - ); + const { items, total, page, perPage } = await APIKeyService.listEnrollmentApiKeys(esClient, { + page: request.query.page, + perPage: request.query.perPage, + kuery: request.query.kuery, + }); const body: GetEnrollmentAPIKeysResponse = { list: items, total, page, perPage }; return response.ok({ body }); @@ -93,14 +88,9 @@ export const deleteEnrollmentApiKeyHandler: RequestHandler< export const getOneEnrollmentApiKeyHandler: RequestHandler< TypeOf > = async (context, request, response) => { - const soClient = context.core.savedObjects.client; const esClient = context.core.elasticsearch.client.asCurrentUser; try { - const apiKey = await APIKeyService.getEnrollmentAPIKey( - soClient, - esClient, - request.params.keyId - ); + const apiKey = await APIKeyService.getEnrollmentAPIKey(esClient, request.params.keyId); const body: GetOneEnrollmentAPIKeyResponse = { item: apiKey }; return response.ok({ body }); diff --git a/x-pack/plugins/fleet/server/services/agent_policy.ts b/x-pack/plugins/fleet/server/services/agent_policy.ts index 091adda0ed981..31c184c598b12 100644 --- a/x-pack/plugins/fleet/server/services/agent_policy.ts +++ b/x-pack/plugins/fleet/server/services/agent_policy.ts @@ -520,7 +520,7 @@ class AgentPolicyService { throw new Error('The default agent policy cannot be deleted'); } - const { total } = await listAgents(soClient, esClient, { + const { total } = await listAgents(esClient, { showInactive: false, perPage: 0, page: 1, @@ -554,9 +554,8 @@ class AgentPolicyService { agentPolicyId: string ) { const esClient = appContextService.getInternalUserESClient(); - if (appContextService.getConfig()?.agents?.fleetServerEnabled) { - await this.createFleetPolicyChangeFleetServer(soClient, esClient, agentPolicyId); - } + + await this.createFleetPolicyChangeFleetServer(soClient, esClient, agentPolicyId); return this.createFleetPolicyChangeActionSO(soClient, esClient, agentPolicyId); } diff --git a/x-pack/plugins/fleet/server/services/agent_policy_update.ts b/x-pack/plugins/fleet/server/services/agent_policy_update.ts index a7ac7ce0ab659..beab39d5146e4 100644 --- a/x-pack/plugins/fleet/server/services/agent_policy_update.ts +++ b/x-pack/plugins/fleet/server/services/agent_policy_update.ts @@ -56,6 +56,6 @@ export async function agentPolicyUpdateEventHandler( if (action === 'deleted') { await unenrollForAgentPolicyId(soClient, esClient, agentPolicyId); - await deleteEnrollmentApiKeyForAgentPolicyId(soClient, agentPolicyId); + await deleteEnrollmentApiKeyForAgentPolicyId(soClient, esClient, agentPolicyId); } } diff --git a/x-pack/plugins/fleet/server/services/agents/acks.test.ts b/x-pack/plugins/fleet/server/services/agents/acks.test.ts index 139ba8ffc4329..7342bbfe51e20 100644 --- a/x-pack/plugins/fleet/server/services/agents/acks.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/acks.test.ts @@ -108,16 +108,21 @@ describe('test agent acks services', () => { ] ); expect(mockSavedObjectsClient.bulkUpdate).not.toBeCalled(); - expect(mockSavedObjectsClient.update).toBeCalled(); - expect(mockSavedObjectsClient.update.mock.calls[0]).toMatchInlineSnapshot(` + expect(mockElasticsearchClient.update).toBeCalled(); + expect(mockElasticsearchClient.update.mock.calls[0]).toMatchInlineSnapshot(` Array [ - "fleet-agents", - "id", Object { - "packages": Array [ - "system", - ], - "policy_revision": 4, + "body": Object { + "doc": Object { + "packages": Array [ + "system", + ], + "policy_revision_idx": 4, + }, + }, + "id": "id", + "index": ".fleet-agents", + "refresh": "wait_for", }, ] `); @@ -170,16 +175,21 @@ describe('test agent acks services', () => { ] ); expect(mockSavedObjectsClient.bulkUpdate).not.toBeCalled(); - expect(mockSavedObjectsClient.update).toBeCalled(); - expect(mockSavedObjectsClient.update.mock.calls[0]).toMatchInlineSnapshot(` + expect(mockElasticsearchClient.update).toBeCalled(); + expect(mockElasticsearchClient.update.mock.calls[0]).toMatchInlineSnapshot(` Array [ - "fleet-agents", - "id", Object { - "packages": Array [ - "system", - ], - "policy_revision": 4, + "body": Object { + "doc": Object { + "packages": Array [ + "system", + ], + "policy_revision_idx": 4, + }, + }, + "id": "id", + "index": ".fleet-agents", + "refresh": "wait_for", }, ] `); diff --git a/x-pack/plugins/fleet/server/services/agents/acks.ts b/x-pack/plugins/fleet/server/services/agents/acks.ts index 6683ba44b77c0..fd52d2d5d3c45 100644 --- a/x-pack/plugins/fleet/server/services/agents/acks.ts +++ b/x-pack/plugins/fleet/server/services/agents/acks.ts @@ -92,7 +92,7 @@ export async function acknowledgeAgentActions( const configChangeAction = getLatestConfigChangePolicyActionIfUpdated(agent, actions); if (configChangeAction) { - await updateAgent(soClient, esClient, agent.id, { + await updateAgent(esClient, agent.id, { policy_revision: configChangeAction.policy_revision, packages: configChangeAction?.ack_data?.packages, }); @@ -201,7 +201,6 @@ export interface AcksService { ) => Promise; authenticateAgentWithAccessToken: ( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, request: KibanaRequest ) => Promise; diff --git a/x-pack/plugins/fleet/server/services/agents/actions.ts b/x-pack/plugins/fleet/server/services/agents/actions.ts index 299bc70d86995..3be69893ab252 100644 --- a/x-pack/plugins/fleet/server/services/agents/actions.ts +++ b/x-pack/plugins/fleet/server/services/agents/actions.ts @@ -76,10 +76,7 @@ async function createAction( } ); - if ( - appContextService.getConfig()?.agents?.fleetServerEnabled && - isAgentActionSavedObject(actionSO) - ) { + if (isAgentActionSavedObject(actionSO)) { const body: FleetServerAgentAction = { '@timestamp': new Date().toISOString(), expiration: new Date(Date.now() + ONE_MONTH_IN_MS).toISOString(), @@ -140,7 +137,7 @@ async function bulkCreateActions( })) ); - if (appContextService.getConfig()?.agents?.fleetServerEnabled) { + if (actionSOs.length > 0) { await esClient.bulk({ index: AGENT_ACTIONS_INDEX, body: actionSOs.flatMap((actionSO) => { @@ -371,11 +368,7 @@ export async function getLatestConfigChangeAction( } export interface ActionsService { - getAgent: ( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - agentId: string - ) => Promise; + getAgent: (esClient: ElasticsearchClient, agentId: string) => Promise; createAgentAction: ( soClient: SavedObjectsClientContract, diff --git a/x-pack/plugins/fleet/server/services/agents/authenticate.test.ts b/x-pack/plugins/fleet/server/services/agents/authenticate.test.ts index 5a1e86c15c002..240de8ccfd5a5 100644 --- a/x-pack/plugins/fleet/server/services/agents/authenticate.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/authenticate.test.ts @@ -6,35 +6,33 @@ */ import { KibanaRequest } from 'kibana/server'; -import { savedObjectsClientMock, elasticsearchServiceMock } from 'src/core/server/mocks'; +import { elasticsearchServiceMock } from 'src/core/server/mocks'; import { authenticateAgentWithAccessToken } from './authenticate'; -const mockEsClient = elasticsearchServiceMock.createInternalClient(); - describe('test agent autenticate services', () => { it('should succeed with a valid API key and an active agent', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); - mockSavedObjectsClient.find.mockReturnValue( - Promise.resolve({ - page: 1, - per_page: 100, - total: 1, - saved_objects: [ - { - id: 'agent1', - type: 'agent', - references: [], - score: 0, - attributes: { - active: true, - access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + const mockEsClient = elasticsearchServiceMock.createInternalClient(); + + mockEsClient.search.mockResolvedValue({ + body: { + hits: { + hits: [ + { + // @ts-expect-error + _id: 'agent1', + _source: { + // @ts-expect-error + active: true, + // @ts-expect-error + access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + }, }, - }, - ], - }) - ); - await authenticateAgentWithAccessToken(mockSavedObjectsClient, mockEsClient, { + ], + }, + }, + }); + await authenticateAgentWithAccessToken(mockEsClient, { auth: { isAuthenticated: true }, headers: { authorization: 'ApiKey cGVkVHVISUJURUR0OTN3VzBGaHI6TnU1U0JtbHJSeC12Rm9qQWpoSHlUZw==', @@ -43,28 +41,28 @@ describe('test agent autenticate services', () => { }); it('should throw if the request is not authenticated', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); - mockSavedObjectsClient.find.mockReturnValue( - Promise.resolve({ - page: 1, - per_page: 100, - total: 1, - saved_objects: [ - { - id: 'agent1', - type: 'agent', - references: [], - score: 0, - attributes: { - active: true, - access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + const mockEsClient = elasticsearchServiceMock.createInternalClient(); + + mockEsClient.search.mockResolvedValue({ + body: { + hits: { + hits: [ + { + // @ts-expect-error + _id: 'agent1', + _source: { + // @ts-expect-error + active: true, + // @ts-expect-error + access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + }, }, - }, - ], - }) - ); + ], + }, + }, + }); expect( - authenticateAgentWithAccessToken(mockSavedObjectsClient, mockEsClient, { + authenticateAgentWithAccessToken(mockEsClient, { auth: { isAuthenticated: false }, headers: { authorization: 'ApiKey cGVkVHVISUJURUR0OTN3VzBGaHI6TnU1U0JtbHJSeC12Rm9qQWpoSHlUZw==', @@ -74,28 +72,29 @@ describe('test agent autenticate services', () => { }); it('should throw if the ApiKey headers is malformed', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); - mockSavedObjectsClient.find.mockReturnValue( - Promise.resolve({ - page: 1, - per_page: 100, - total: 1, - saved_objects: [ - { - id: 'agent1', - type: 'agent', - references: [], - score: 0, - attributes: { - active: false, - access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', - }, - }, - ], - }) - ); + const mockEsClient = elasticsearchServiceMock.createInternalClient(); + + const hits = [ + { + _id: 'agent1', + _source: { + active: true, + + access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + }, + }, + ]; + + mockEsClient.search.mockResolvedValue({ + body: { + hits: { + // @ts-expect-error + hits, + }, + }, + }); expect( - authenticateAgentWithAccessToken(mockSavedObjectsClient, mockEsClient, { + authenticateAgentWithAccessToken(mockEsClient, { auth: { isAuthenticated: true }, headers: { authorization: 'aaaa', @@ -105,28 +104,27 @@ describe('test agent autenticate services', () => { }); it('should throw if the agent is not active', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); - mockSavedObjectsClient.find.mockReturnValue( - Promise.resolve({ - page: 1, - per_page: 100, - total: 1, - saved_objects: [ - { - id: 'agent1', - type: 'agent', - references: [], - score: 0, - attributes: { - active: false, - access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', - }, - }, - ], - }) - ); + const mockEsClient = elasticsearchServiceMock.createInternalClient(); + + const hits = [ + { + _id: 'agent1', + _source: { + active: false, + access_api_key_id: 'pedTuHIBTEDt93wW0Fhr', + }, + }, + ]; + mockEsClient.search.mockResolvedValue({ + body: { + hits: { + // @ts-expect-error + hits, + }, + }, + }); expect( - authenticateAgentWithAccessToken(mockSavedObjectsClient, mockEsClient, { + authenticateAgentWithAccessToken(mockEsClient, { auth: { isAuthenticated: true }, headers: { authorization: 'ApiKey cGVkVHVISUJURUR0OTN3VzBGaHI6TnU1U0JtbHJSeC12Rm9qQWpoSHlUZw==', @@ -136,17 +134,18 @@ describe('test agent autenticate services', () => { }); it('should throw if there is no agent matching the API key', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); - mockSavedObjectsClient.find.mockReturnValue( - Promise.resolve({ - page: 1, - per_page: 100, - total: 1, - saved_objects: [], - }) - ); + const mockEsClient = elasticsearchServiceMock.createInternalClient(); + + mockEsClient.search.mockResolvedValue({ + body: { + hits: { + // @ts-expect-error + hits: [], + }, + }, + }); expect( - authenticateAgentWithAccessToken(mockSavedObjectsClient, mockEsClient, { + authenticateAgentWithAccessToken(mockEsClient, { auth: { isAuthenticated: true }, headers: { authorization: 'ApiKey cGVkVHVISUJURUR0OTN3VzBGaHI6TnU1U0JtbHJSeC12Rm9qQWpoSHlUZw==', diff --git a/x-pack/plugins/fleet/server/services/agents/authenticate.ts b/x-pack/plugins/fleet/server/services/agents/authenticate.ts index 54ee6f35b2e1b..dfbf190a55186 100644 --- a/x-pack/plugins/fleet/server/services/agents/authenticate.ts +++ b/x-pack/plugins/fleet/server/services/agents/authenticate.ts @@ -7,7 +7,7 @@ import Boom from '@hapi/boom'; import { KibanaRequest } from 'src/core/server'; -import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server'; +import type { ElasticsearchClient } from 'src/core/server'; import type { Agent } from '../../types'; import * as APIKeyService from '../api_keys'; @@ -15,7 +15,6 @@ import * as APIKeyService from '../api_keys'; import { getAgentByAccessAPIKeyId } from './crud'; export async function authenticateAgentWithAccessToken( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, request: KibanaRequest ): Promise { @@ -29,7 +28,7 @@ export async function authenticateAgentWithAccessToken( throw Boom.unauthorized(err.message); } - const agent = await getAgentByAccessAPIKeyId(soClient, esClient, res.apiKeyId); + const agent = await getAgentByAccessAPIKeyId(esClient, res.apiKeyId); return agent; } diff --git a/x-pack/plugins/fleet/server/services/agents/checkin/index.ts b/x-pack/plugins/fleet/server/services/agents/checkin/index.ts index c8bf79e08ab07..ce81d6b366e9a 100644 --- a/x-pack/plugins/fleet/server/services/agents/checkin/index.ts +++ b/x-pack/plugins/fleet/server/services/agents/checkin/index.ts @@ -46,7 +46,7 @@ export async function agentCheckin( } // Update agent only if something changed if (Object.keys(updateData).length > 0) { - await updateAgent(soClient, esClient, agent.id, updateData); + await updateAgent(esClient, agent.id, updateData); } // Check if some actions are not acknowledged let actions = await getAgentActionsForCheckin(soClient, agent.id); diff --git a/x-pack/plugins/fleet/server/services/agents/checkin/state_connected_agents.ts b/x-pack/plugins/fleet/server/services/agents/checkin/state_connected_agents.ts index 24769de2c717f..f8ef33acb30f1 100644 --- a/x-pack/plugins/fleet/server/services/agents/checkin/state_connected_agents.ts +++ b/x-pack/plugins/fleet/server/services/agents/checkin/state_connected_agents.ts @@ -5,29 +5,9 @@ * 2.0. */ -import { KibanaRequest } from 'src/core/server'; - import { appContextService } from '../../app_context'; import { bulkUpdateAgents } from '../crud'; -function getInternalUserSOClient() { - const fakeRequest = ({ - headers: {}, - getBasePath: () => '', - path: '/', - route: { settings: {} }, - url: { - href: '/', - }, - raw: { - req: { - url: '/', - }, - }, - } as unknown) as KibanaRequest; - - return appContextService.getInternalUserSOClient(fakeRequest); -} export function agentCheckinStateConnectedAgentsFactory() { const connectedAgentsIds = new Set(); let agentToUpdate = new Set(); @@ -58,7 +38,6 @@ export function agentCheckinStateConnectedAgentsFactory() { return; } const esClient = appContextService.getInternalUserESClient(); - const internalSOClient = getInternalUserSOClient(); const now = new Date().toISOString(); const updates = [...agentToUpdate.values()].map((agentId) => ({ agentId, @@ -67,7 +46,7 @@ export function agentCheckinStateConnectedAgentsFactory() { }, })); agentToUpdate = new Set([...connectedAgentsIds.values()]); - await bulkUpdateAgents(internalSOClient, esClient, updates); + await bulkUpdateAgents(esClient, updates); } return { diff --git a/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.test.ts b/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.test.ts index 5fbf080e5ac99..daa3992ce5844 100644 --- a/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.test.ts @@ -124,6 +124,7 @@ describe('test agent checkin new action services', () => { current_error_events: [], packages: [], enrolled_at: '2020-03-14T19:45:02.620Z', + default_api_key: 'MOCK_API_KEY', }; const mockPolicyAction: AgentPolicyAction = { id: 'action1', diff --git a/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.ts b/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.ts index 4557f93e72ac3..0fc83914bcdce 100644 --- a/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.ts +++ b/x-pack/plugins/fleet/server/services/agents/checkin/state_new_actions.ts @@ -24,16 +24,9 @@ import { import { KibanaRequest } from 'src/core/server'; import type { ElasticsearchClient, SavedObjectsClientContract } from 'src/core/server'; -import type { - Agent, - AgentAction, - AgentPolicyAction, - AgentPolicyActionV7_9, - AgentSOAttributes, -} from '../../../types'; +import type { Agent, AgentAction, AgentPolicyAction, AgentPolicyActionV7_9 } from '../../../types'; import * as APIKeysService from '../../api_keys'; import { - AGENT_SAVED_OBJECT_TYPE, AGENT_UPDATE_ACTIONS_INTERVAL_MS, AGENT_POLLING_REQUEST_TIMEOUT_MARGIN_MS, AGENT_POLICY_ROLLOUT_RATE_LIMIT_INTERVAL_MS, @@ -113,17 +106,7 @@ async function getAgentDefaultOutputAPIKey( esClient: ElasticsearchClient, agent: Agent ) { - if (appContextService.getConfig()?.agents?.fleetServerEnabled) { - return agent.default_api_key; - } else { - const { - attributes: { default_api_key: defaultApiKey }, - } = await appContextService - .getEncryptedSavedObjects() - .getDecryptedAsInternalUser(AGENT_SAVED_OBJECT_TYPE, agent.id); - - return defaultApiKey; - } + return agent.default_api_key; } async function getOrCreateAgentDefaultOutputAPIKey( @@ -137,7 +120,7 @@ async function getOrCreateAgentDefaultOutputAPIKey( } const outputAPIKey = await APIKeysService.generateOutputApiKey(soClient, 'default', agent.id); - await updateAgent(soClient, esClient, agent.id, { + await updateAgent(esClient, agent.id, { default_api_key: outputAPIKey.key, default_api_key_id: outputAPIKey.id, }); @@ -282,7 +265,7 @@ export function agentCheckinStateNewActionsFactory() { (action) => action.type === 'INTERNAL_POLICY_REASSIGN' ); if (hasConfigReassign) { - return from(getAgent(soClient, esClient, agent.id)).pipe( + return from(getAgent(esClient, agent.id)).pipe( concatMap((refreshedAgent) => { if (!refreshedAgent.policy_id) { throw new Error('Agent does not have a policy assigned'); diff --git a/x-pack/plugins/fleet/server/services/agents/crud.ts b/x-pack/plugins/fleet/server/services/agents/crud.ts index 207e00c001595..5bfb18e1592a5 100644 --- a/x-pack/plugins/fleet/server/services/agents/crud.ts +++ b/x-pack/plugins/fleet/server/services/agents/crud.ts @@ -5,16 +5,59 @@ * 2.0. */ +import Boom from '@hapi/boom'; +import { SearchResponse } from 'elasticsearch'; import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server'; import type { AgentSOAttributes, Agent, ListWithKuery } from '../../types'; import { appContextService, agentPolicyService } from '../../services'; +import { FleetServerAgent, isAgentUpgradeable, SO_SEARCH_LIMIT } from '../../../common'; +import { AGENT_SAVED_OBJECT_TYPE, AGENTS_INDEX } from '../../constants'; +import { ESSearchHit } from '../../../../../typings/elasticsearch'; +import { escapeSearchQueryPhrase, normalizeKuery } from '../saved_object'; +import { esKuery, KueryNode } from '../../../../../../src/plugins/data/server'; +import { IngestManagerError, isESClientError, AgentNotFoundError } from '../../errors'; -import * as crudServiceSO from './crud_so'; -import * as crudServiceFleetServer from './crud_fleet_server'; +import { searchHitToAgent, agentSOAttributesToFleetServerAgentDoc } from './helpers'; + +const ACTIVE_AGENT_CONDITION = 'active:true'; +const INACTIVE_AGENT_CONDITION = `NOT (${ACTIVE_AGENT_CONDITION})`; + +function _joinFilters(filters: Array): KueryNode | undefined { + try { + return filters + .filter((filter) => filter !== undefined) + .reduce((acc: KueryNode | undefined, kuery: string | KueryNode | undefined): + | KueryNode + | undefined => { + if (kuery === undefined) { + return acc; + } + const kueryNode: KueryNode = + typeof kuery === 'string' + ? esKuery.fromKueryExpression(removeSOAttributes(kuery)) + : kuery; + + if (!acc) { + return kueryNode; + } + + return { + type: 'function', + function: 'and', + arguments: [acc, kueryNode], + }; + }, undefined as KueryNode | undefined); + } catch (err) { + throw new IngestManagerError(`Kuery is malformed: ${err.message}`); + } +} + +export function removeSOAttributes(kuery: string) { + return kuery.replace(/attributes\./g, '').replace(/fleet-agents\./g, ''); +} export async function listAgents( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, options: ListWithKuery & { showInactive: boolean; @@ -25,15 +68,58 @@ export async function listAgents( page: number; perPage: number; }> { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; + const { + page = 1, + perPage = 20, + sortField = 'enrolled_at', + sortOrder = 'desc', + kuery, + showInactive = false, + showUpgradeable, + } = options; + const filters = []; + + if (kuery && kuery !== '') { + filters.push(kuery); + } + + if (showInactive === false) { + filters.push(ACTIVE_AGENT_CONDITION); + } + + const kueryNode = _joinFilters(filters); + const body = kueryNode ? { query: esKuery.toElasticsearchQuery(kueryNode) } : {}; + + const res = await esClient.search({ + index: AGENTS_INDEX, + from: (page - 1) * perPage, + size: perPage, + sort: `${sortField}:${sortOrder}`, + track_total_hits: true, + body, + }); + + let agentResults: Agent[] = res.body.hits.hits.map(searchHitToAgent); + let total = res.body.hits.total.value; + + // filtering for a range on the version string will not work, + // nor does filtering on a flattened field (local_metadata), so filter here + if (showUpgradeable) { + agentResults = agentResults.filter((agent) => + isAgentUpgradeable(agent, appContextService.getKibanaVersion()) + ); + total = agentResults.length; + } - return fleetServerEnabled - ? crudServiceFleetServer.listAgents(esClient, options) - : crudServiceSO.listAgents(soClient, options); + return { + agents: res.body.hits.hits.map(searchHitToAgent), + total, + page, + perPage, + }; } export async function listAllAgents( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, options: Omit & { showInactive: boolean; @@ -42,107 +128,171 @@ export async function listAllAgents( agents: Agent[]; total: number; }> { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; + const res = await listAgents(esClient, { ...options, page: 1, perPage: SO_SEARCH_LIMIT }); - return fleetServerEnabled - ? crudServiceFleetServer.listAllAgents(esClient, options) - : crudServiceSO.listAllAgents(soClient, options); + return { + agents: res.agents, + total: res.total, + }; } export async function countInactiveAgents( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, options: Pick ): Promise { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; + const { kuery } = options; + const filters = [INACTIVE_AGENT_CONDITION]; + + if (kuery && kuery !== '') { + filters.push(normalizeKuery(AGENT_SAVED_OBJECT_TYPE, kuery)); + } + + const kueryNode = _joinFilters(filters); + const body = kueryNode ? { query: esKuery.toElasticsearchQuery(kueryNode) } : {}; - return fleetServerEnabled - ? crudServiceFleetServer.countInactiveAgents(esClient, options) - : crudServiceSO.countInactiveAgents(soClient, options); + const res = await esClient.search({ + index: AGENTS_INDEX, + size: 0, + track_total_hits: true, + body, + }); + return res.body.hits.total.value; } -export async function getAgent( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - agentId: string -) { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.getAgent(esClient, agentId) - : crudServiceSO.getAgent(soClient, agentId); +export async function getAgent(esClient: ElasticsearchClient, agentId: string) { + try { + const agentHit = await esClient.get>({ + index: AGENTS_INDEX, + id: agentId, + }); + const agent = searchHitToAgent(agentHit.body); + + return agent; + } catch (err) { + if (isESClientError(err) && err.meta.statusCode === 404) { + throw new AgentNotFoundError(`Agent ${agentId} not found`); + } + throw err; + } } export async function getAgents( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, agentIds: string[] -) { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.getAgents(esClient, agentIds) - : crudServiceSO.getAgents(soClient, agentIds); -} - -export async function getAgentPolicyForAgent( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - agentId: string -) { - const agent = await getAgent(soClient, esClient, agentId); - if (!agent.policy_id) { - return; - } +): Promise { + const body = { docs: agentIds.map((_id) => ({ _id })) }; - const agentPolicy = await agentPolicyService.get(soClient, agent.policy_id, false); - if (agentPolicy) { - return agentPolicy; - } + const res = await esClient.mget({ + body, + index: AGENTS_INDEX, + }); + const agents = res.body.docs.map(searchHitToAgent); + return agents; } export async function getAgentByAccessAPIKeyId( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, accessAPIKeyId: string ): Promise { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.getAgentByAccessAPIKeyId(esClient, accessAPIKeyId) - : crudServiceSO.getAgentByAccessAPIKeyId(soClient, accessAPIKeyId); + const res = await esClient.search>({ + index: AGENTS_INDEX, + q: `access_api_key_id:${escapeSearchQueryPhrase(accessAPIKeyId)}`, + }); + + const [agent] = res.body.hits.hits.map(searchHitToAgent); + + if (!agent) { + throw new AgentNotFoundError('Agent not found'); + } + if (agent.access_api_key_id !== accessAPIKeyId) { + throw new Error('Agent api key id is not matching'); + } + if (!agent.active) { + throw Boom.forbidden('Agent inactive'); + } + + return agent; } export async function updateAgent( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, agentId: string, data: Partial ) { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.updateAgent(esClient, agentId, data) - : crudServiceSO.updateAgent(soClient, agentId, data); + await esClient.update({ + id: agentId, + index: AGENTS_INDEX, + body: { doc: agentSOAttributesToFleetServerAgentDoc(data) }, + refresh: 'wait_for', + }); } export async function bulkUpdateAgents( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, - data: Array<{ + updateData: Array<{ agentId: string; data: Partial; }> ) { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.bulkUpdateAgents(esClient, data) - : crudServiceSO.bulkUpdateAgents(soClient, data); + if (updateData.length === 0) { + return { items: [] }; + } + + const body = updateData.flatMap(({ agentId, data }) => [ + { + update: { + _id: agentId, + }, + }, + { + doc: { ...agentSOAttributesToFleetServerAgentDoc(data) }, + }, + ]); + + const res = await esClient.bulk({ + body, + index: AGENTS_INDEX, + refresh: 'wait_for', + }); + + return { + items: res.body.items.map((item: { update: { _id: string; error?: Error } }) => ({ + id: item.update._id, + success: !item.update.error, + error: item.update.error, + })), + }; } -export async function deleteAgent( +export async function deleteAgent(esClient: ElasticsearchClient, agentId: string) { + try { + await esClient.update({ + id: agentId, + index: AGENTS_INDEX, + body: { + doc: { active: false }, + }, + }); + } catch (err) { + if (isESClientError(err) && err.meta.statusCode === 404) { + throw new AgentNotFoundError('Agent not found'); + } + throw err; + } +} + +export async function getAgentPolicyForAgent( soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, agentId: string ) { - const fleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return fleetServerEnabled - ? crudServiceFleetServer.deleteAgent(esClient, agentId) - : crudServiceSO.deleteAgent(soClient, agentId); + const agent = await getAgent(esClient, agentId); + if (!agent.policy_id) { + return; + } + + const agentPolicy = await agentPolicyService.get(soClient, agent.policy_id, false); + if (agentPolicy) { + return agentPolicy; + } } diff --git a/x-pack/plugins/fleet/server/services/agents/crud_fleet_server.ts b/x-pack/plugins/fleet/server/services/agents/crud_fleet_server.ts deleted file mode 100644 index 8002e8fd121a1..0000000000000 --- a/x-pack/plugins/fleet/server/services/agents/crud_fleet_server.ts +++ /dev/null @@ -1,260 +0,0 @@ -/* - * 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 Boom from '@hapi/boom'; -import type { SearchResponse } from 'elasticsearch'; -import type { ElasticsearchClient } from 'src/core/server'; - -import { isAgentUpgradeable, SO_SEARCH_LIMIT } from '../../../common'; -import type { FleetServerAgent } from '../../../common'; -import { AGENT_SAVED_OBJECT_TYPE, AGENTS_INDEX } from '../../constants'; -import type { ESSearchHit } from '../../../../../typings/elasticsearch'; -import type { AgentSOAttributes, Agent, ListWithKuery } from '../../types'; -import { escapeSearchQueryPhrase, normalizeKuery } from '../saved_object'; -import { appContextService } from '../../services'; -import { esKuery } from '../../../../../../src/plugins/data/server'; -import type { KueryNode } from '../../../../../../src/plugins/data/server'; - -import { searchHitToAgent, agentSOAttributesToFleetServerAgentDoc } from './helpers'; - -const ACTIVE_AGENT_CONDITION = 'active:true'; -const INACTIVE_AGENT_CONDITION = `NOT (${ACTIVE_AGENT_CONDITION})`; - -function _joinFilters(filters: Array): KueryNode | undefined { - return filters - .filter((filter) => filter !== undefined) - .reduce((acc: KueryNode | undefined, kuery: string | KueryNode | undefined): - | KueryNode - | undefined => { - if (kuery === undefined) { - return acc; - } - const kueryNode: KueryNode = - typeof kuery === 'string' ? esKuery.fromKueryExpression(removeSOAttributes(kuery)) : kuery; - - if (!acc) { - return kueryNode; - } - - return { - type: 'function', - function: 'and', - arguments: [acc, kueryNode], - }; - }, undefined as KueryNode | undefined); -} - -export function removeSOAttributes(kuery: string) { - return kuery.replace(/attributes\./g, '').replace(/fleet-agents\./g, ''); -} - -export async function listAgents( - esClient: ElasticsearchClient, - options: ListWithKuery & { - showInactive: boolean; - } -): Promise<{ - agents: Agent[]; - total: number; - page: number; - perPage: number; -}> { - const { - page = 1, - perPage = 20, - sortField = 'enrolled_at', - sortOrder = 'desc', - kuery, - showInactive = false, - showUpgradeable, - } = options; - const filters = []; - - if (kuery && kuery !== '') { - filters.push(kuery); - } - - if (showInactive === false) { - filters.push(ACTIVE_AGENT_CONDITION); - } - - const kueryNode = _joinFilters(filters); - const body = kueryNode ? { query: esKuery.toElasticsearchQuery(kueryNode) } : {}; - - const res = await esClient.search({ - index: AGENTS_INDEX, - from: (page - 1) * perPage, - size: perPage, - sort: `${sortField}:${sortOrder}`, - track_total_hits: true, - body, - }); - - let agentResults: Agent[] = res.body.hits.hits.map(searchHitToAgent); - let total = res.body.hits.total.value; - - // filtering for a range on the version string will not work, - // nor does filtering on a flattened field (local_metadata), so filter here - if (showUpgradeable) { - agentResults = agentResults.filter((agent) => - isAgentUpgradeable(agent, appContextService.getKibanaVersion()) - ); - total = agentResults.length; - } - - return { - agents: res.body.hits.hits.map(searchHitToAgent), - total, - page, - perPage, - }; -} - -export async function listAllAgents( - esClient: ElasticsearchClient, - options: Omit & { - showInactive: boolean; - } -): Promise<{ - agents: Agent[]; - total: number; -}> { - const res = await listAgents(esClient, { ...options, page: 1, perPage: SO_SEARCH_LIMIT }); - - return { - agents: res.agents, - total: res.total, - }; -} - -export async function countInactiveAgents( - esClient: ElasticsearchClient, - options: Pick -): Promise { - const { kuery } = options; - const filters = [INACTIVE_AGENT_CONDITION]; - - if (kuery && kuery !== '') { - filters.push(normalizeKuery(AGENT_SAVED_OBJECT_TYPE, kuery)); - } - - const kueryNode = _joinFilters(filters); - const body = kueryNode ? { query: esKuery.toElasticsearchQuery(kueryNode) } : {}; - - const res = await esClient.search({ - index: AGENTS_INDEX, - size: 0, - track_total_hits: true, - body, - }); - return res.body.hits.total.value; -} - -export async function getAgent(esClient: ElasticsearchClient, agentId: string) { - const agentHit = await esClient.get>({ - index: AGENTS_INDEX, - id: agentId, - }); - const agent = searchHitToAgent(agentHit.body); - - return agent; -} - -export async function getAgents( - esClient: ElasticsearchClient, - agentIds: string[] -): Promise { - const body = { docs: agentIds.map((_id) => ({ _id })) }; - - const res = await esClient.mget({ - body, - index: AGENTS_INDEX, - }); - - const agents = res.body.docs.map(searchHitToAgent); - return agents; -} - -export async function getAgentByAccessAPIKeyId( - esClient: ElasticsearchClient, - accessAPIKeyId: string -): Promise { - const res = await esClient.search>({ - index: AGENTS_INDEX, - q: `access_api_key_id:${escapeSearchQueryPhrase(accessAPIKeyId)}`, - }); - - const [agent] = res.body.hits.hits.map(searchHitToAgent); - - if (!agent) { - throw Boom.notFound('Agent not found'); - } - if (agent.access_api_key_id !== accessAPIKeyId) { - throw new Error('Agent api key id is not matching'); - } - if (!agent.active) { - throw Boom.forbidden('Agent inactive'); - } - - return agent; -} - -export async function updateAgent( - esClient: ElasticsearchClient, - agentId: string, - data: Partial -) { - await esClient.update({ - id: agentId, - index: AGENTS_INDEX, - body: { doc: agentSOAttributesToFleetServerAgentDoc(data) }, - refresh: 'wait_for', - }); -} - -export async function bulkUpdateAgents( - esClient: ElasticsearchClient, - updateData: Array<{ - agentId: string; - data: Partial; - }> -) { - const body = updateData.flatMap(({ agentId, data }) => [ - { - update: { - _id: agentId, - }, - }, - { - doc: { ...agentSOAttributesToFleetServerAgentDoc(data) }, - }, - ]); - - const res = await esClient.bulk({ - body, - index: AGENTS_INDEX, - refresh: 'wait_for', - }); - - return { - items: res.body.items.map((item: { update: { _id: string; error?: Error } }) => ({ - id: item.update._id, - success: !item.update.error, - error: item.update.error, - })), - }; -} - -export async function deleteAgent(esClient: ElasticsearchClient, agentId: string) { - await esClient.update({ - id: agentId, - index: AGENT_SAVED_OBJECT_TYPE, - body: { - doc: { active: false }, - }, - }); -} diff --git a/x-pack/plugins/fleet/server/services/agents/enroll.ts b/x-pack/plugins/fleet/server/services/agents/enroll.ts index afa0c03a393f9..c9148f6249fa5 100644 --- a/x-pack/plugins/fleet/server/services/agents/enroll.ts +++ b/x-pack/plugins/fleet/server/services/agents/enroll.ts @@ -12,15 +12,13 @@ import semverDiff from 'semver/functions/diff'; import semverLte from 'semver/functions/lte'; import type { SavedObjectsClientContract } from 'src/core/server'; -import type { AgentType, Agent, AgentSOAttributes, FleetServerAgent } from '../../types'; -import { AGENT_SAVED_OBJECT_TYPE, AGENTS_INDEX } from '../../constants'; +import type { AgentType, Agent, FleetServerAgent } from '../../types'; +import { AGENTS_INDEX } from '../../constants'; import { IngestManagerError } from '../../errors'; import * as APIKeyService from '../api_keys'; import { agentPolicyService } from '../../services'; import { appContextService } from '../app_context'; -import { savedObjectToAgent } from './saved_objects'; - export async function enroll( soClient: SavedObjectsClientContract, type: AgentType, @@ -35,62 +33,33 @@ export async function enroll( throw new IngestManagerError(`Cannot enroll in managed policy ${agentPolicyId}`); } - if (appContextService.getConfig()?.agents?.fleetServerEnabled) { - const esClient = appContextService.getInternalUserESClient(); - - const agentId = uuid(); - const accessAPIKey = await APIKeyService.generateAccessApiKey(soClient, agentId); - const fleetServerAgent: FleetServerAgent = { - active: true, - policy_id: agentPolicyId, - type, - enrolled_at: new Date().toISOString(), - user_provided_metadata: metadata?.userProvided ?? {}, - local_metadata: metadata?.local ?? {}, - access_api_key_id: accessAPIKey.id, - }; - await esClient.create({ - index: AGENTS_INDEX, - body: fleetServerAgent, - id: agentId, - refresh: 'wait_for', - }); + const esClient = appContextService.getInternalUserESClient(); - return { - id: agentId, - current_error_events: [], - packages: [], - ...fleetServerAgent, - access_api_key: accessAPIKey.key, - } as Agent; - } - - const agentData: AgentSOAttributes = { + const agentId = uuid(); + const accessAPIKey = await APIKeyService.generateAccessApiKey(soClient, agentId); + const fleetServerAgent: FleetServerAgent = { active: true, policy_id: agentPolicyId, type, enrolled_at: new Date().toISOString(), user_provided_metadata: metadata?.userProvided ?? {}, local_metadata: metadata?.local ?? {}, - current_error_events: undefined, - access_api_key_id: undefined, - last_checkin: undefined, - default_api_key: undefined, - }; - - const agent = savedObjectToAgent( - await soClient.create(AGENT_SAVED_OBJECT_TYPE, agentData, { - refresh: false, - }) - ); - - const accessAPIKey = await APIKeyService.generateAccessApiKey(soClient, agent.id); - - await soClient.update(AGENT_SAVED_OBJECT_TYPE, agent.id, { access_api_key_id: accessAPIKey.id, + }; + await esClient.create({ + index: AGENTS_INDEX, + body: fleetServerAgent, + id: agentId, + refresh: 'wait_for', }); - return { ...agent, access_api_key: accessAPIKey.key }; + return { + id: agentId, + current_error_events: [], + packages: [], + ...fleetServerAgent, + access_api_key: accessAPIKey.key, + } as Agent; } export function validateAgentVersion( diff --git a/x-pack/plugins/fleet/server/services/agents/reassign.test.ts b/x-pack/plugins/fleet/server/services/agents/reassign.test.ts index 94c4c1ad57009..29e09312dcd16 100644 --- a/x-pack/plugins/fleet/server/services/agents/reassign.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/reassign.test.ts @@ -8,31 +8,31 @@ import { elasticsearchServiceMock, savedObjectsClientMock } from 'src/core/server/mocks'; import type { SavedObject } from 'kibana/server'; -import type { Agent, AgentPolicy } from '../../types'; +import type { AgentPolicy } from '../../types'; import { AgentReassignmentError } from '../../errors'; import { reassignAgent, reassignAgents } from './reassign'; -const agentInManagedSO = { - id: 'agent-in-managed-policy', - attributes: { policy_id: 'managed-agent-policy' }, -} as SavedObject; -const agentInManagedSO2 = { - id: 'agent-in-managed-policy2', - attributes: { policy_id: 'managed-agent-policy' }, -} as SavedObject; -const agentInUnmanagedSO = { - id: 'agent-in-unmanaged-policy', - attributes: { policy_id: 'unmanaged-agent-policy' }, -} as SavedObject; -const agentInUnmanagedSO2 = { - id: 'agent-in-unmanaged-policy2', - attributes: { policy_id: 'unmanaged-agent-policy' }, -} as SavedObject; +const agentInManagedDoc = { + _id: 'agent-in-managed-policy', + _source: { policy_id: 'managed-agent-policy' }, +}; +const agentInManagedDoc2 = { + _id: 'agent-in-managed-policy2', + _source: { policy_id: 'managed-agent-policy' }, +}; +const agentInUnmanagedDoc = { + _id: 'agent-in-unmanaged-policy', + _source: { policy_id: 'unmanaged-agent-policy' }, +}; const unmanagedAgentPolicySO = { id: 'unmanaged-agent-policy', attributes: { is_managed: false }, } as SavedObject; +const unmanagedAgentPolicySO2 = { + id: 'unmanaged-agent-policy-2', + attributes: { is_managed: false }, +} as SavedObject; const managedAgentPolicySO = { id: 'managed-agent-policy', attributes: { is_managed: true }, @@ -40,70 +40,70 @@ const managedAgentPolicySO = { describe('reassignAgent (singular)', () => { it('can reassign from unmanaged policy to unmanaged', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - await reassignAgent(soClient, esClient, agentInUnmanagedSO.id, agentInUnmanagedSO2.id); + const { soClient, esClient } = createClientsMock(); + await reassignAgent(soClient, esClient, agentInUnmanagedDoc._id, unmanagedAgentPolicySO.id); // calls ES update with correct values - expect(soClient.update).toBeCalledTimes(1); - const calledWith = soClient.update.mock.calls[0]; - expect(calledWith[1]).toBe(agentInUnmanagedSO.id); - expect(calledWith[2]).toHaveProperty('policy_id', agentInUnmanagedSO2.id); + expect(esClient.update).toBeCalledTimes(1); + const calledWith = esClient.update.mock.calls[0]; + expect(calledWith[0]?.id).toBe(agentInUnmanagedDoc._id); + // @ts-expect-error + expect(calledWith[0]?.body?.doc).toHaveProperty('policy_id', unmanagedAgentPolicySO.id); }); it('cannot reassign from unmanaged policy to managed', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; + const { soClient, esClient } = createClientsMock(); await expect( - reassignAgent( - soClient, - esClient, - agentInUnmanagedSO.id, - agentInManagedSO.attributes.policy_id! - ) + reassignAgent(soClient, esClient, agentInUnmanagedDoc._id, managedAgentPolicySO.id) ).rejects.toThrowError(AgentReassignmentError); // does not call ES update - expect(soClient.update).toBeCalledTimes(0); + expect(esClient.update).toBeCalledTimes(0); }); it('cannot reassign from managed policy', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; + const { soClient, esClient } = createClientsMock(); await expect( - reassignAgent(soClient, esClient, agentInManagedSO.id, agentInManagedSO2.id) + reassignAgent(soClient, esClient, agentInManagedDoc._id, unmanagedAgentPolicySO.id) ).rejects.toThrowError(AgentReassignmentError); // does not call ES update - expect(soClient.update).toBeCalledTimes(0); + expect(esClient.update).toBeCalledTimes(0); await expect( - reassignAgent(soClient, esClient, agentInManagedSO.id, agentInUnmanagedSO.id) + reassignAgent(soClient, esClient, agentInManagedDoc._id, managedAgentPolicySO.id) ).rejects.toThrowError(AgentReassignmentError); // does not call ES update - expect(soClient.update).toBeCalledTimes(0); + expect(esClient.update).toBeCalledTimes(0); }); }); describe('reassignAgents (plural)', () => { it('agents in managed policies are not updated', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - const idsToReassign = [agentInUnmanagedSO.id, agentInManagedSO.id, agentInUnmanagedSO.id]; - await reassignAgents(soClient, esClient, { agentIds: idsToReassign }, agentInUnmanagedSO.id); + const { soClient, esClient } = createClientsMock(); + const idsToReassign = [agentInUnmanagedDoc._id, agentInManagedDoc._id, agentInManagedDoc2._id]; + await reassignAgents( + soClient, + esClient, + { agentIds: idsToReassign }, + unmanagedAgentPolicySO2.id + ); // calls ES update with correct values - const calledWith = soClient.bulkUpdate.mock.calls[0][0]; - const expectedResults = [agentInUnmanagedSO.id, agentInUnmanagedSO.id]; - expect(calledWith.length).toBe(expectedResults.length); // only 2 are unmanaged - expect(calledWith.map(({ id }) => id)).toEqual(expectedResults); + const calledWith = esClient.bulk.mock.calls[0][0]; + // only 1 are unmanaged and bulk write two line per update + // @ts-expect-error + expect(calledWith.body.length).toBe(2); + // @ts-expect-error + expect(calledWith.body[0].update._id).toEqual(agentInUnmanagedDoc._id); }); }); -function createClientMock() { +function createClientsMock() { const soClientMock = savedObjectsClientMock.create(); // need to mock .create & bulkCreate due to (bulk)createAgentAction(s) in reassignAgent(s) - soClientMock.create.mockResolvedValue(agentInUnmanagedSO); + // @ts-expect-error + soClientMock.create.mockResolvedValue({ attributes: { agent_id: 'test' } }); soClientMock.bulkCreate.mockImplementation(async ([{ type, attributes }]) => { return { saved_objects: [await soClientMock.create(type, attributes)], @@ -112,26 +112,48 @@ function createClientMock() { soClientMock.bulkUpdate.mockResolvedValue({ saved_objects: [], }); - soClientMock.get.mockImplementation(async (_, id) => { switch (id) { case unmanagedAgentPolicySO.id: return unmanagedAgentPolicySO; case managedAgentPolicySO.id: return managedAgentPolicySO; - case agentInManagedSO.id: - return agentInManagedSO; - case agentInUnmanagedSO.id: + case unmanagedAgentPolicySO2.id: + return unmanagedAgentPolicySO2; default: - return agentInUnmanagedSO; + throw new Error('Not found'); } }); - soClientMock.bulkGet.mockImplementation(async (options) => { return { saved_objects: await Promise.all(options!.map(({ type, id }) => soClientMock.get(type, id))), }; }); - return soClientMock; + const esClientMock = elasticsearchServiceMock.createClusterClient().asInternalUser; + // @ts-expect-error + esClientMock.mget.mockImplementation(async () => { + return { + body: { + docs: [agentInManagedDoc, agentInUnmanagedDoc, agentInManagedDoc2], + }, + }; + }); + // @ts-expect-error + esClientMock.get.mockImplementation(async ({ id }) => { + switch (id) { + case agentInManagedDoc._id: + return { body: agentInManagedDoc }; + case agentInUnmanagedDoc._id: + return { body: agentInUnmanagedDoc }; + default: + throw new Error('Not found'); + } + }); + // @ts-expect-error + esClientMock.bulk.mockResolvedValue({ + body: { items: [] }, + }); + + return { soClient: soClientMock, esClient: esClientMock }; } diff --git a/x-pack/plugins/fleet/server/services/agents/reassign.ts b/x-pack/plugins/fleet/server/services/agents/reassign.ts index 7c6a646cfded2..b221be55cd460 100644 --- a/x-pack/plugins/fleet/server/services/agents/reassign.ts +++ b/x-pack/plugins/fleet/server/services/agents/reassign.ts @@ -33,7 +33,7 @@ export async function reassignAgent( await reassignAgentIsAllowed(soClient, esClient, agentId, newAgentPolicyId); - await updateAgent(soClient, esClient, agentId, { + await updateAgent(esClient, agentId, { policy_id: newAgentPolicyId, policy_revision: null, }); @@ -79,7 +79,7 @@ export async function reassignAgents( kuery: string; }, newAgentPolicyId: string -): Promise<{ items: Array<{ id: string; sucess: boolean; error?: Error }> }> { +): Promise<{ items: Array<{ id: string; success: boolean; error?: Error }> }> { const agentPolicy = await agentPolicyService.get(soClient, newAgentPolicyId); if (!agentPolicy) { throw Boom.notFound(`Agent policy not found: ${newAgentPolicyId}`); @@ -88,9 +88,9 @@ export async function reassignAgents( // Filter to agents that do not already use the new agent policy ID const agents = 'agentIds' in options - ? await getAgents(soClient, esClient, options.agentIds) + ? await getAgents(esClient, options.agentIds) : ( - await listAllAgents(soClient, esClient, { + await listAllAgents(esClient, { kuery: options.kuery, showInactive: false, }) @@ -106,7 +106,6 @@ export async function reassignAgents( ); const res = await bulkUpdateAgents( - soClient, esClient, agentsToUpdate.map((agent) => ({ agentId: agent.id, diff --git a/x-pack/plugins/fleet/server/services/agents/status.test.ts b/x-pack/plugins/fleet/server/services/agents/status.test.ts index 93ec138dc9fa1..b11ea7ae7f87c 100644 --- a/x-pack/plugins/fleet/server/services/agents/status.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/status.test.ts @@ -5,79 +5,80 @@ * 2.0. */ -import { elasticsearchServiceMock, savedObjectsClientMock } from 'src/core/server/mocks'; -import type { SavedObject } from 'kibana/server'; - -import { AGENT_TYPE_PERMANENT } from '../../../common/constants'; -import type { AgentSOAttributes } from '../../../common/types/models'; +import { elasticsearchServiceMock } from 'src/core/server/mocks'; import { getAgentStatusById } from './status'; describe('Agent status service', () => { it('should return inactive when agent is not active', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockSavedObjectsClient.get = jest.fn().mockReturnValue({ - id: 'id', - type: AGENT_TYPE_PERMANENT, - attributes: { - active: false, - local_metadata: {}, - user_provided_metadata: {}, + // @ts-expect-error + mockElasticsearchClient.get.mockResolvedValue({ + body: { + _id: 'id', + _source: { + active: false, + local_metadata: {}, + user_provided_metadata: {}, + }, }, - } as SavedObject); - const status = await getAgentStatusById(mockSavedObjectsClient, mockElasticsearchClient, 'id'); + }); + const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('inactive'); }); it('should return online when agent is active', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockSavedObjectsClient.get = jest.fn().mockReturnValue({ - id: 'id', - type: AGENT_TYPE_PERMANENT, - attributes: { - active: true, - last_checkin: new Date().toISOString(), - local_metadata: {}, - user_provided_metadata: {}, + // @ts-expect-error + mockElasticsearchClient.get.mockResolvedValue({ + body: { + _id: 'id', + _source: { + active: true, + last_checkin: new Date().toISOString(), + local_metadata: {}, + user_provided_metadata: {}, + }, }, - } as SavedObject); - const status = await getAgentStatusById(mockSavedObjectsClient, mockElasticsearchClient, 'id'); + }); + const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('online'); }); it('should return enrolling when agent is active but never checkin', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockSavedObjectsClient.get = jest.fn().mockReturnValue({ - id: 'id', - type: AGENT_TYPE_PERMANENT, - attributes: { - active: true, - local_metadata: {}, - user_provided_metadata: {}, + // @ts-expect-error + mockElasticsearchClient.get.mockResolvedValue({ + body: { + _id: 'id', + _source: { + active: true, + local_metadata: {}, + user_provided_metadata: {}, + }, }, - } as SavedObject); - const status = await getAgentStatusById(mockSavedObjectsClient, mockElasticsearchClient, 'id'); + }); + const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('enrolling'); }); it('should return unenrolling when agent is unenrolling', async () => { - const mockSavedObjectsClient = savedObjectsClientMock.create(); const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockSavedObjectsClient.get = jest.fn().mockReturnValue({ - id: 'id', - type: AGENT_TYPE_PERMANENT, - attributes: { - active: true, - last_checkin: new Date().toISOString(), - unenrollment_started_at: new Date().toISOString(), - local_metadata: {}, - user_provided_metadata: {}, + // @ts-expect-error + mockElasticsearchClient.get.mockResolvedValue({ + body: { + _id: 'id', + + _source: { + active: true, + last_checkin: new Date().toISOString(), + unenrollment_started_at: new Date().toISOString(), + local_metadata: {}, + user_provided_metadata: {}, + }, }, - } as SavedObject); - const status = await getAgentStatusById(mockSavedObjectsClient, mockElasticsearchClient, 'id'); + }); + const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('unenrolling'); }); }); diff --git a/x-pack/plugins/fleet/server/services/agents/status.ts b/x-pack/plugins/fleet/server/services/agents/status.ts index 3d6067ae2a826..930f3ca22ccb1 100644 --- a/x-pack/plugins/fleet/server/services/agents/status.ts +++ b/x-pack/plugins/fleet/server/services/agents/status.ts @@ -13,26 +13,20 @@ import type { AgentStatus } from '../../types'; import { AgentStatusKueryHelper } from '../../../common/services'; import { esKuery } from '../../../../../../src/plugins/data/server'; import type { KueryNode } from '../../../../../../src/plugins/data/server'; -import { normalizeKuery } from '../saved_object'; -import { appContextService } from '../app_context'; -import { getAgent, listAgents } from './crud'; -import { removeSOAttributes } from './crud_fleet_server'; +import { getAgent, listAgents, removeSOAttributes } from './crud'; export async function getAgentStatusById( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, agentId: string ): Promise { - const agent = await getAgent(soClient, esClient, agentId); + const agent = await getAgent(esClient, agentId); return AgentStatusKueryHelper.getAgentStatus(agent); } export const getAgentStatus = AgentStatusKueryHelper.getAgentStatus; function joinKuerys(...kuerys: Array) { - const isFleetServerEnabled = appContextService.getConfig()?.agents?.fleetServerEnabled; - return kuerys .filter((kuery) => kuery !== undefined) .reduce((acc: KueryNode | undefined, kuery: string | undefined): KueryNode | undefined => { @@ -40,9 +34,7 @@ function joinKuerys(...kuerys: Array) { return acc; } const normalizedKuery: KueryNode = esKuery.fromKueryExpression( - isFleetServerEnabled - ? removeSOAttributes(kuery || '') - : normalizeKuery(AGENT_SAVED_OBJECT_TYPE, kuery || '') + removeSOAttributes(kuery || '') ); if (!acc) { @@ -72,7 +64,7 @@ export async function getAgentStatusForAgentPolicy( AgentStatusKueryHelper.buildKueryForUpdatingAgents(), ], (kuery) => - listAgents(soClient, esClient, { + listAgents(esClient, { showInactive: false, perPage: 0, page: 1, diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts b/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts index b74df90cc86d9..23ba8ac7bbd7f 100644 --- a/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts @@ -8,23 +8,23 @@ import { elasticsearchServiceMock, savedObjectsClientMock } from 'src/core/server/mocks'; import type { SavedObject } from 'kibana/server'; -import type { Agent, AgentPolicy } from '../../types'; +import type { AgentPolicy } from '../../types'; import { AgentUnenrollmentError } from '../../errors'; import { unenrollAgent, unenrollAgents } from './unenroll'; -const agentInManagedSO = { - id: 'agent-in-managed-policy', - attributes: { policy_id: 'managed-agent-policy' }, -} as SavedObject; -const agentInUnmanagedSO = { - id: 'agent-in-unmanaged-policy', - attributes: { policy_id: 'unmanaged-agent-policy' }, -} as SavedObject; -const agentInUnmanagedSO2 = { - id: 'agent-in-unmanaged-policy2', - attributes: { policy_id: 'unmanaged-agent-policy' }, -} as SavedObject; +const agentInManagedDoc = { + _id: 'agent-in-managed-policy', + _source: { policy_id: 'managed-agent-policy' }, +}; +const agentInUnmanagedDoc = { + _id: 'agent-in-unmanaged-policy', + _source: { policy_id: 'unmanaged-agent-policy' }, +}; +const agentInUnmanagedDoc2 = { + _id: 'agent-in-unmanaged-policy2', + _source: { policy_id: 'unmanaged-agent-policy' }, +}; const unmanagedAgentPolicySO = { id: 'unmanaged-agent-policy', attributes: { is_managed: false }, @@ -36,57 +36,69 @@ const managedAgentPolicySO = { describe('unenrollAgent (singular)', () => { it('can unenroll from unmanaged policy', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - await unenrollAgent(soClient, esClient, agentInUnmanagedSO.id); + const { soClient, esClient } = createClientMock(); + await unenrollAgent(soClient, esClient, agentInUnmanagedDoc._id); // calls ES update with correct values - expect(soClient.update).toBeCalledTimes(1); - const calledWith = soClient.update.mock.calls[0]; - expect(calledWith[1]).toBe(agentInUnmanagedSO.id); - expect(calledWith[2]).toHaveProperty('unenrollment_started_at'); + expect(esClient.update).toBeCalledTimes(1); + const calledWith = esClient.update.mock.calls[0]; + expect(calledWith[0]?.id).toBe(agentInUnmanagedDoc._id); + expect(calledWith[0]?.body).toHaveProperty('doc.unenrollment_started_at'); }); it('cannot unenroll from managed policy', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - await expect(unenrollAgent(soClient, esClient, agentInManagedSO.id)).rejects.toThrowError( + const { soClient, esClient } = createClientMock(); + await expect(unenrollAgent(soClient, esClient, agentInManagedDoc._id)).rejects.toThrowError( AgentUnenrollmentError ); // does not call ES update - expect(soClient.update).toBeCalledTimes(0); + expect(esClient.update).toBeCalledTimes(0); }); }); describe('unenrollAgents (plural)', () => { it('can unenroll from an unmanaged policy', async () => { - const soClient = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - const idsToUnenroll = [agentInUnmanagedSO.id, agentInUnmanagedSO2.id]; + const { soClient, esClient } = createClientMock(); + const idsToUnenroll = [agentInUnmanagedDoc._id, agentInUnmanagedDoc2._id]; await unenrollAgents(soClient, esClient, { agentIds: idsToUnenroll }); // calls ES update with correct values - const calledWith = soClient.bulkUpdate.mock.calls[0][0]; - expect(calledWith.length).toBe(idsToUnenroll.length); - expect(calledWith.map(({ id }) => id)).toEqual(idsToUnenroll); - for (const params of calledWith) { - expect(params.attributes).toHaveProperty('unenrollment_started_at'); + const calledWith = esClient.bulk.mock.calls[1][0]; + const ids = calledWith?.body + // @ts-expect-error + .filter((i: any) => i.update !== undefined) + .map((i: any) => i.update._id); + // @ts-expect-error + const docs = calledWith?.body.filter((i: any) => i.doc).map((i: any) => i.doc); + expect(ids).toHaveLength(2); + expect(ids).toEqual(idsToUnenroll); + for (const doc of docs) { + expect(doc).toHaveProperty('unenrollment_started_at'); } }); it('cannot unenroll from a managed policy', async () => { - const soClient = createClientMock(); + const { soClient, esClient } = createClientMock(); - const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - const idsToUnenroll = [agentInUnmanagedSO.id, agentInManagedSO.id, agentInUnmanagedSO2.id]; + const idsToUnenroll = [ + agentInUnmanagedDoc._id, + agentInManagedDoc._id, + agentInUnmanagedDoc2._id, + ]; await unenrollAgents(soClient, esClient, { agentIds: idsToUnenroll }); // calls ES update with correct values - const calledWith = soClient.bulkUpdate.mock.calls[0][0]; - const onlyUnmanaged = [agentInUnmanagedSO.id, agentInUnmanagedSO2.id]; - expect(calledWith.length).toBe(onlyUnmanaged.length); - expect(calledWith.map(({ id }) => id)).toEqual(onlyUnmanaged); - for (const params of calledWith) { - expect(params.attributes).toHaveProperty('unenrollment_started_at'); + const onlyUnmanaged = [agentInUnmanagedDoc._id, agentInUnmanagedDoc2._id]; + const calledWith = esClient.bulk.mock.calls[1][0]; + const ids = calledWith?.body + // @ts-expect-error + .filter((i: any) => i.update !== undefined) + .map((i: any) => i.update._id); + // @ts-expect-error + const docs = calledWith?.body.filter((i: any) => i.doc).map((i: any) => i.doc); + expect(ids).toHaveLength(onlyUnmanaged.length); + expect(ids).toEqual(onlyUnmanaged); + for (const doc of docs) { + expect(doc).toHaveProperty('unenrollment_started_at'); } }); }); @@ -95,7 +107,8 @@ function createClientMock() { const soClientMock = savedObjectsClientMock.create(); // need to mock .create & bulkCreate due to (bulk)createAgentAction(s) in unenrollAgent(s) - soClientMock.create.mockResolvedValue(agentInUnmanagedSO); + // @ts-expect-error + soClientMock.create.mockResolvedValue({ attributes: { agent_id: 'tata' } }); soClientMock.bulkCreate.mockImplementation(async ([{ type, attributes }]) => { return { saved_objects: [await soClientMock.create(type, attributes)], @@ -111,13 +124,8 @@ function createClientMock() { return unmanagedAgentPolicySO; case managedAgentPolicySO.id: return managedAgentPolicySO; - case agentInManagedSO.id: - return agentInManagedSO; - case agentInUnmanagedSO2.id: - return agentInUnmanagedSO2; - case agentInUnmanagedSO.id: default: - return agentInUnmanagedSO; + throw new Error('not found'); } }); @@ -127,5 +135,46 @@ function createClientMock() { }; }); - return soClientMock; + const esClientMock = elasticsearchServiceMock.createClusterClient().asInternalUser; + // @ts-expect-error + esClientMock.get.mockImplementation(async ({ id }) => { + switch (id) { + case agentInManagedDoc._id: + return { body: agentInManagedDoc }; + case agentInUnmanagedDoc2._id: + return { body: agentInUnmanagedDoc2 }; + case agentInUnmanagedDoc._id: + return { body: agentInUnmanagedDoc }; + default: + throw new Error('not found'); + } + }); + // @ts-expect-error + esClientMock.bulk.mockResolvedValue({ + body: { items: [] }, + }); + + // @ts-expect-error + esClientMock.mget.mockImplementation(async (params) => { + // @ts-expect-error + const docs = params?.body.docs.map(({ _id }) => { + switch (_id) { + case agentInManagedDoc._id: + return agentInManagedDoc; + case agentInUnmanagedDoc2._id: + return agentInUnmanagedDoc2; + case agentInUnmanagedDoc._id: + return agentInUnmanagedDoc; + default: + throw new Error('not found'); + } + }); + return { + body: { + docs, + }, + }; + }); + + return { soClient: soClientMock, esClient: esClientMock }; } diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll.ts b/x-pack/plugins/fleet/server/services/agents/unenroll.ts index e7c5a30836aa8..96ac11c89f687 100644 --- a/x-pack/plugins/fleet/server/services/agents/unenroll.ts +++ b/x-pack/plugins/fleet/server/services/agents/unenroll.ts @@ -48,7 +48,7 @@ export async function unenrollAgent( created_at: now, type: 'UNENROLL', }); - await updateAgent(soClient, esClient, agentId, { + await updateAgent(esClient, agentId, { unenrollment_started_at: now, }); } @@ -66,9 +66,9 @@ export async function unenrollAgents( ) { const agents = 'agentIds' in options - ? await getAgents(soClient, esClient, options.agentIds) + ? await getAgents(esClient, options.agentIds) : ( - await listAllAgents(soClient, esClient, { + await listAllAgents(esClient, { kuery: options.kuery, showInactive: false, }) @@ -101,7 +101,6 @@ export async function unenrollAgents( // Update the necessary agents return bulkUpdateAgents( - soClient, esClient, agentsToUpdate.map((agent) => ({ agentId: agent.id, @@ -117,7 +116,7 @@ export async function forceUnenrollAgent( esClient: ElasticsearchClient, agentId: string ) { - const agent = await getAgent(soClient, esClient, agentId); + const agent = await getAgent(esClient, agentId); await Promise.all([ agent.access_api_key_id @@ -128,7 +127,7 @@ export async function forceUnenrollAgent( : undefined, ]); - await updateAgent(soClient, esClient, agentId, { + await updateAgent(esClient, agentId, { active: false, unenrolled_at: new Date().toISOString(), }); @@ -148,9 +147,9 @@ export async function forceUnenrollAgents( // Filter to agents that are not already unenrolled const agents = 'agentIds' in options - ? await getAgents(soClient, esClient, options.agentIds) + ? await getAgents(esClient, options.agentIds) : ( - await listAllAgents(soClient, esClient, { + await listAllAgents(esClient, { kuery: options.kuery, showInactive: false, }) @@ -175,7 +174,6 @@ export async function forceUnenrollAgents( } // Update the necessary agents return bulkUpdateAgents( - soClient, esClient, agentsToUpdate.map((agent) => ({ agentId: agent.id, diff --git a/x-pack/plugins/fleet/server/services/agents/update.ts b/x-pack/plugins/fleet/server/services/agents/update.ts index 7e40b2baf02e5..4365bc06d565f 100644 --- a/x-pack/plugins/fleet/server/services/agents/update.ts +++ b/x-pack/plugins/fleet/server/services/agents/update.ts @@ -20,7 +20,7 @@ export async function unenrollForAgentPolicyId( let hasMore = true; let page = 1; while (hasMore) { - const { agents } = await listAgents(soClient, esClient, { + const { agents } = await listAgents(esClient, { kuery: `${AGENT_SAVED_OBJECT_TYPE}.policy_id:"${policyId}"`, page: page++, perPage: 1000, diff --git a/x-pack/plugins/fleet/server/services/agents/upgrade.ts b/x-pack/plugins/fleet/server/services/agents/upgrade.ts index 6742e6ab84f73..c45b161a79366 100644 --- a/x-pack/plugins/fleet/server/services/agents/upgrade.ts +++ b/x-pack/plugins/fleet/server/services/agents/upgrade.ts @@ -56,7 +56,7 @@ export async function sendUpgradeAgentAction({ ack_data: data, type: 'UPGRADE', }); - await updateAgent(soClient, esClient, agentId, { + await updateAgent(esClient, agentId, { upgraded_at: null, upgrade_started_at: now, }); @@ -73,7 +73,7 @@ export async function ackAgentUpgraded( if (!ackData) throw new Error('data missing from UPGRADE action'); const { version } = JSON.parse(ackData); if (!version) throw new Error('version missing from UPGRADE action'); - await updateAgent(soClient, esClient, agentAction.agent_id, { + await updateAgent(esClient, agentAction.agent_id, { upgraded_at: new Date().toISOString(), upgrade_started_at: null, }); @@ -100,9 +100,9 @@ export async function sendUpgradeAgentsActions( // Filter out agents currently unenrolling, agents unenrolled, and agents not upgradeable const agents = 'agentIds' in options - ? await getAgents(soClient, esClient, options.agentIds) + ? await getAgents(esClient, options.agentIds) : ( - await listAllAgents(soClient, esClient, { + await listAllAgents(esClient, { kuery: options.kuery, showInactive: false, }) @@ -150,7 +150,6 @@ export async function sendUpgradeAgentsActions( ); return await bulkUpdateAgents( - soClient, esClient, upgradeableAgents.map((agent) => ({ agentId: agent.id, diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts index f8352b1d698a4..5cfa77c86766d 100644 --- a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts +++ b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts @@ -5,16 +5,21 @@ * 2.0. */ +import uuid from 'uuid'; +import Boom from '@hapi/boom'; +import { GetResponse } from 'elasticsearch'; +import { ResponseError } from '@elastic/elasticsearch/lib/errors'; import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server'; -import type { EnrollmentAPIKey } from '../../types'; -import { appContextService } from '../app_context'; +import { ESSearchResponse as SearchResponse } from '../../../../../typings/elasticsearch'; +import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types'; +import { ENROLLMENT_API_KEYS_INDEX } from '../../constants'; +import { agentPolicyService } from '../agent_policy'; +import { escapeSearchQueryPhrase } from '../saved_object'; -import * as enrollmentApiKeyServiceSO from './enrollment_api_key_so'; -import * as enrollmentApiKeyServiceFleetServer from './enrollment_api_key_fleet_server'; +import { createAPIKey, invalidateAPIKeys } from './security'; export async function listEnrollmentApiKeys( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, options: { page?: number; @@ -23,22 +28,44 @@ export async function listEnrollmentApiKeys( showInactive?: boolean; } ): Promise<{ items: EnrollmentAPIKey[]; total: any; page: any; perPage: any }> { - if (appContextService.getConfig()?.agents?.fleetServerEnabled === true) { - return enrollmentApiKeyServiceFleetServer.listEnrollmentApiKeys(esClient, options); - } else { - return enrollmentApiKeyServiceSO.listEnrollmentApiKeys(soClient, options); - } + const { page = 1, perPage = 20, kuery } = options; + + const res = await esClient.search>({ + index: ENROLLMENT_API_KEYS_INDEX, + from: (page - 1) * perPage, + size: perPage, + sort: 'created_at:desc', + track_total_hits: true, + q: kuery, + }); + + const items = res.body.hits.hits.map(esDocToEnrollmentApiKey); + + return { + items, + total: res.body.hits.total.value, + page, + perPage, + }; } export async function getEnrollmentAPIKey( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, id: string -) { - if (appContextService.getConfig()?.agents?.fleetServerEnabled === true) { - return enrollmentApiKeyServiceFleetServer.getEnrollmentAPIKey(esClient, id); - } else { - return enrollmentApiKeyServiceSO.getEnrollmentAPIKey(soClient, id); +): Promise { + try { + const res = await esClient.get>({ + index: ENROLLMENT_API_KEYS_INDEX, + id, + }); + + return esDocToEnrollmentApiKey(res.body); + } catch (e) { + if (e instanceof ResponseError && e.statusCode === 404) { + throw Boom.notFound(`Enrollment api key ${id} not found`); + } + + throw e; } } @@ -52,18 +79,44 @@ export async function deleteEnrollmentApiKey( esClient: ElasticsearchClient, id: string ) { - if (appContextService.getConfig()?.agents?.fleetServerEnabled === true) { - return enrollmentApiKeyServiceFleetServer.deleteEnrollmentApiKey(soClient, esClient, id); - } else { - return enrollmentApiKeyServiceSO.deleteEnrollmentApiKey(soClient, id); - } + const enrollmentApiKey = await getEnrollmentAPIKey(esClient, id); + + await invalidateAPIKeys(soClient, [enrollmentApiKey.api_key_id]); + + await esClient.update({ + index: ENROLLMENT_API_KEYS_INDEX, + id, + body: { + doc: { + active: false, + }, + }, + refresh: 'wait_for', + }); } export async function deleteEnrollmentApiKeyForAgentPolicyId( soClient: SavedObjectsClientContract, + esClient: ElasticsearchClient, agentPolicyId: string ) { - return enrollmentApiKeyServiceSO.deleteEnrollmentApiKeyForAgentPolicyId(soClient, agentPolicyId); + let hasMore = true; + let page = 1; + while (hasMore) { + const { items } = await listEnrollmentApiKeys(esClient, { + page: page++, + perPage: 100, + kuery: `policy_id:${agentPolicyId}`, + }); + + if (items.length === 0) { + hasMore = false; + } + + for (const apiKey of items) { + await deleteEnrollmentApiKey(soClient, esClient, apiKey.id); + } + } } export async function generateEnrollmentAPIKey( @@ -74,22 +127,91 @@ export async function generateEnrollmentAPIKey( expiration?: string; agentPolicyId?: string; } -) { - if (appContextService.getConfig()?.agents?.fleetServerEnabled === true) { - return enrollmentApiKeyServiceFleetServer.generateEnrollmentAPIKey(soClient, esClient, data); - } else { - return enrollmentApiKeyServiceSO.generateEnrollmentAPIKey(soClient, data); +): Promise { + const id = uuid.v4(); + const { name: providedKeyName } = data; + if (data.agentPolicyId) { + await validateAgentPolicyId(soClient, data.agentPolicyId); } + const agentPolicyId = + data.agentPolicyId ?? (await agentPolicyService.getDefaultAgentPolicyId(soClient)); + const name = providedKeyName ? `${providedKeyName} (${id})` : id; + const key = await createAPIKey(soClient, name, { + // Useless role to avoid to have the privilege of the user that created the key + 'fleet-apikey-enroll': { + cluster: [], + applications: [ + { + application: '.fleet', + privileges: ['no-privileges'], + resources: ['*'], + }, + ], + }, + }); + + if (!key) { + throw new Error('Unable to create an enrollment api key'); + } + + const apiKey = Buffer.from(`${key.id}:${key.api_key}`).toString('base64'); + + const body = { + active: true, + api_key_id: key.id, + api_key: apiKey, + name, + policy_id: agentPolicyId, + created_at: new Date().toISOString(), + }; + + const res = await esClient.create({ + index: ENROLLMENT_API_KEYS_INDEX, + body, + id, + refresh: 'wait_for', + }); + + return { + id: res.body._id, + ...body, + }; } -export async function getEnrollmentAPIKeyById( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - apiKeyId: string -) { - if (appContextService.getConfig()?.agents?.fleetServerEnabled === true) { - return enrollmentApiKeyServiceFleetServer.getEnrollmentAPIKeyById(esClient, apiKeyId); - } else { - return enrollmentApiKeyServiceSO.getEnrollmentAPIKeyById(soClient, apiKeyId); +export async function getEnrollmentAPIKeyById(esClient: ElasticsearchClient, apiKeyId: string) { + const res = await esClient.search>({ + index: ENROLLMENT_API_KEYS_INDEX, + q: `api_key_id:${escapeSearchQueryPhrase(apiKeyId)}`, + }); + + const [enrollmentAPIKey] = res.body.hits.hits.map(esDocToEnrollmentApiKey); + + if (enrollmentAPIKey?.api_key_id !== apiKeyId) { + throw new Error('find enrollmentKeyById returned an incorrect key'); + } + + return enrollmentAPIKey; +} + +async function validateAgentPolicyId(soClient: SavedObjectsClientContract, agentPolicyId: string) { + try { + await agentPolicyService.get(soClient, agentPolicyId); + } catch (e) { + if (e.isBoom && e.output.statusCode === 404) { + throw Boom.badRequest(`Agent policy ${agentPolicyId} does not exist`); + } + throw e; } } + +function esDocToEnrollmentApiKey(doc: { + _id: string; + _source: FleetServerEnrollmentAPIKey; +}): EnrollmentAPIKey { + return { + id: doc._id, + ...doc._source, + created_at: doc._source.created_at as string, + active: doc._source.active || false, + }; +} diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_fleet_server.ts b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_fleet_server.ts deleted file mode 100644 index b6d2e942207b5..0000000000000 --- a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_fleet_server.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * 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 uuid from 'uuid'; -import Boom from '@hapi/boom'; -import type { GetResponse } from 'elasticsearch'; -import { ResponseError } from '@elastic/elasticsearch/lib/errors'; -import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server'; - -import type { ESSearchResponse as SearchResponse } from '../../../../../typings/elasticsearch'; -import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types'; -import { ENROLLMENT_API_KEYS_INDEX } from '../../constants'; -import { agentPolicyService } from '../agent_policy'; -import { escapeSearchQueryPhrase } from '../saved_object'; - -import { createAPIKey, invalidateAPIKeys } from './security'; - -export async function listEnrollmentApiKeys( - esClient: ElasticsearchClient, - options: { - page?: number; - perPage?: number; - kuery?: string; - showInactive?: boolean; - } -): Promise<{ items: EnrollmentAPIKey[]; total: any; page: any; perPage: any }> { - const { page = 1, perPage = 20, kuery } = options; - - const res = await esClient.search>({ - index: ENROLLMENT_API_KEYS_INDEX, - from: (page - 1) * perPage, - size: perPage, - sort: 'created_at:desc', - track_total_hits: true, - q: kuery, - }); - - const items = res.body.hits.hits.map(esDocToEnrollmentApiKey); - - return { - items, - total: res.body.hits.total.value, - page, - perPage, - }; -} - -export async function getEnrollmentAPIKey( - esClient: ElasticsearchClient, - id: string -): Promise { - try { - const res = await esClient.get>({ - index: ENROLLMENT_API_KEYS_INDEX, - id, - }); - - return esDocToEnrollmentApiKey(res.body); - } catch (e) { - if (e instanceof ResponseError && e.statusCode === 404) { - throw Boom.notFound(`Enrollment api key ${id} not found`); - } - - throw e; - } -} - -/** - * Invalidate an api key and mark it as inactive - * @param soClient - * @param id - */ -export async function deleteEnrollmentApiKey( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - id: string -) { - const enrollmentApiKey = await getEnrollmentAPIKey(esClient, id); - - await invalidateAPIKeys(soClient, [enrollmentApiKey.api_key_id]); - - await esClient.update({ - index: ENROLLMENT_API_KEYS_INDEX, - id, - body: { - doc: { - active: false, - }, - }, - refresh: 'wait_for', - }); -} - -export async function deleteEnrollmentApiKeyForAgentPolicyId( - soClient: SavedObjectsClientContract, - agentPolicyId: string -) { - throw new Error('NOT IMPLEMENTED'); -} - -export async function generateEnrollmentAPIKey( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - data: { - name?: string; - expiration?: string; - agentPolicyId?: string; - } -): Promise { - const id = uuid.v4(); - const { name: providedKeyName } = data; - if (data.agentPolicyId) { - await validateAgentPolicyId(soClient, data.agentPolicyId); - } - const agentPolicyId = - data.agentPolicyId ?? (await agentPolicyService.getDefaultAgentPolicyId(soClient)); - const name = providedKeyName ? `${providedKeyName} (${id})` : id; - const key = await createAPIKey(soClient, name, { - // Useless role to avoid to have the privilege of the user that created the key - 'fleet-apikey-enroll': { - cluster: [], - applications: [ - { - application: '.fleet', - privileges: ['no-privileges'], - resources: ['*'], - }, - ], - }, - }); - - if (!key) { - throw new Error('Unable to create an enrollment api key'); - } - - const apiKey = Buffer.from(`${key.id}:${key.api_key}`).toString('base64'); - - const body = { - active: true, - api_key_id: key.id, - api_key: apiKey, - name, - policy_id: agentPolicyId, - created_at: new Date().toISOString(), - }; - - const res = await esClient.create({ - index: ENROLLMENT_API_KEYS_INDEX, - body, - id, - refresh: 'wait_for', - }); - - return { - id: res.body._id, - ...body, - }; -} - -export async function getEnrollmentAPIKeyById(esClient: ElasticsearchClient, apiKeyId: string) { - const res = await esClient.search>({ - index: ENROLLMENT_API_KEYS_INDEX, - q: `api_key_id:${escapeSearchQueryPhrase(apiKeyId)}`, - }); - - const [enrollmentAPIKey] = res.body.hits.hits.map(esDocToEnrollmentApiKey); - - if (enrollmentAPIKey?.api_key_id !== apiKeyId) { - throw new Error('find enrollmentKeyById returned an incorrect key'); - } - - return enrollmentAPIKey; -} - -async function validateAgentPolicyId(soClient: SavedObjectsClientContract, agentPolicyId: string) { - try { - await agentPolicyService.get(soClient, agentPolicyId); - } catch (e) { - if (e.isBoom && e.output.statusCode === 404) { - throw Boom.badRequest(`Agent policy ${agentPolicyId} does not exist`); - } - throw e; - } -} - -function esDocToEnrollmentApiKey(doc: { - _id: string; - _source: FleetServerEnrollmentAPIKey; -}): EnrollmentAPIKey { - return { - id: doc._id, - ...doc._source, - created_at: doc._source.created_at as string, - active: doc._source.active || false, - }; -} diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_so.ts b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_so.ts index 9b2937f4d3224..a2b40200fe136 100644 --- a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_so.ts +++ b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key_so.ts @@ -5,17 +5,12 @@ * 2.0. */ -import uuid from 'uuid'; -import Boom from '@hapi/boom'; import type { SavedObjectsClientContract, SavedObject } from 'src/core/server'; import type { EnrollmentAPIKey, EnrollmentAPIKeySOAttributes } from '../../types'; import { ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE } from '../../constants'; -import { agentPolicyService } from '../agent_policy'; import { appContextService } from '../app_context'; -import { normalizeKuery, escapeSearchQueryPhrase } from '../saved_object'; - -import { createAPIKey, invalidateAPIKeys } from './security'; +import { normalizeKuery } from '../saved_object'; export async function listEnrollmentApiKeys( soClient: SavedObjectsClientContract, @@ -61,125 +56,6 @@ export async function getEnrollmentAPIKey(soClient: SavedObjectsClientContract, return savedObjectToEnrollmentApiKey(so); } -/** - * Invalidate an api key and mark it as inactive - * @param soClient - * @param id - */ -export async function deleteEnrollmentApiKey(soClient: SavedObjectsClientContract, id: string) { - const enrollmentApiKey = await getEnrollmentAPIKey(soClient, id); - - await invalidateAPIKeys(soClient, [enrollmentApiKey.api_key_id]); - - await soClient.update(ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE, id, { - active: false, - }); -} - -export async function deleteEnrollmentApiKeyForAgentPolicyId( - soClient: SavedObjectsClientContract, - agentPolicyId: string -) { - let hasMore = true; - let page = 1; - while (hasMore) { - const { items } = await listEnrollmentApiKeys(soClient, { - page: page++, - perPage: 100, - kuery: `${ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE}.policy_id:${agentPolicyId}`, - }); - - if (items.length === 0) { - hasMore = false; - } - - for (const apiKey of items) { - await deleteEnrollmentApiKey(soClient, apiKey.id); - } - } -} - -export async function generateEnrollmentAPIKey( - soClient: SavedObjectsClientContract, - data: { - name?: string; - expiration?: string; - agentPolicyId?: string; - } -) { - const id = uuid.v4(); - const { name: providedKeyName } = data; - if (data.agentPolicyId) { - await validateAgentPolicyId(soClient, data.agentPolicyId); - } - const agentPolicyId = - data.agentPolicyId ?? (await agentPolicyService.getDefaultAgentPolicyId(soClient)); - const name = providedKeyName ? `${providedKeyName} (${id})` : id; - const key = await createAPIKey(soClient, name, { - // Useless role to avoid to have the privilege of the user that created the key - 'fleet-apikey-enroll': { - cluster: [], - applications: [ - { - application: '.fleet', - privileges: ['no-privileges'], - resources: ['*'], - }, - ], - }, - }); - - if (!key) { - throw new Error('Unable to create an enrollment api key'); - } - - const apiKey = Buffer.from(`${key.id}:${key.api_key}`).toString('base64'); - - const so = await soClient.create( - ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE, - { - active: true, - api_key_id: key.id, - api_key: apiKey, - name, - policy_id: agentPolicyId, - created_at: new Date().toISOString(), - } - ); - - return getEnrollmentAPIKey(soClient, so.id); -} - -async function validateAgentPolicyId(soClient: SavedObjectsClientContract, agentPolicyId: string) { - try { - await agentPolicyService.get(soClient, agentPolicyId); - } catch (e) { - if (e.isBoom && e.output.statusCode === 404) { - throw Boom.badRequest(`Agent policy ${agentPolicyId} does not exist`); - } - throw e; - } -} - -export async function getEnrollmentAPIKeyById( - soClient: SavedObjectsClientContract, - apiKeyId: string -) { - const [enrollmentAPIKey] = ( - await soClient.find({ - type: ENROLLMENT_API_KEYS_SAVED_OBJECT_TYPE, - searchFields: ['api_key_id'], - search: escapeSearchQueryPhrase(apiKeyId), - }) - ).saved_objects.map(savedObjectToEnrollmentApiKey); - - if (enrollmentAPIKey?.api_key_id !== apiKeyId) { - throw new Error('find enrollmentKeyById returned an incorrect key'); - } - - return enrollmentAPIKey; -} - function savedObjectToEnrollmentApiKey({ error, attributes, diff --git a/x-pack/plugins/fleet/server/services/index.ts b/x-pack/plugins/fleet/server/services/index.ts index a3aace9b496f4..43ff74c14fcf0 100644 --- a/x-pack/plugins/fleet/server/services/index.ts +++ b/x-pack/plugins/fleet/server/services/index.ts @@ -51,18 +51,13 @@ export interface AgentService { * Authenticate an agent with access toekn */ authenticateAgentWithAccessToken( - soClient: SavedObjectsClientContract, esClient: ElasticsearchClient, request: KibanaRequest ): Promise; /** * Return the status by the Agent's id */ - getAgentStatusById( - soClient: SavedObjectsClientContract, - esClient: ElasticsearchClient, - agentId: string - ): Promise; + getAgentStatusById(esClient: ElasticsearchClient, agentId: string): Promise; /** * List agents */ diff --git a/x-pack/plugins/fleet/server/services/setup.ts b/x-pack/plugins/fleet/server/services/setup.ts index 1e59039394778..d6bb04f5e572a 100644 --- a/x-pack/plugins/fleet/server/services/setup.ts +++ b/x-pack/plugins/fleet/server/services/setup.ts @@ -32,7 +32,6 @@ import { settingsService } from '.'; import { awaitIfPending } from './setup_utils'; import { createDefaultSettings } from './settings'; import { ensureAgentActionPolicyChangeExists } from './agents'; -import { appContextService } from './app_context'; import { awaitIfFleetServerSetupPending } from './fleet_server'; const FLEET_ENROLL_USERNAME = 'fleet_enroll'; @@ -53,20 +52,17 @@ async function createSetupSideEffects( soClient: SavedObjectsClientContract, esClient: ElasticsearchClient ): Promise { - const isFleetServerEnabled = appContextService.getConfig()?.agents.fleetServerEnabled; const [ installedPackages, defaultOutput, { created: defaultAgentPolicyCreated, defaultAgentPolicy }, - defaultFleetServerPolicy, + { created: defaultFleetServerPolicyCreated, policy: defaultFleetServerPolicy }, ] = await Promise.all([ // packages installed by default ensureInstalledDefaultPackages(soClient, esClient), outputService.ensureDefaultOutput(soClient), agentPolicyService.ensureDefaultAgentPolicy(soClient, esClient), - isFleetServerEnabled - ? agentPolicyService.ensureDefaultFleetServerAgentPolicy(soClient, esClient) - : undefined, + agentPolicyService.ensureDefaultFleetServerAgentPolicy(soClient, esClient), updateFleetRoleIfExists(esClient), settingsService.getSettings(soClient).catch((e: any) => { if (e.isBoom && e.output.statusCode === 404) { @@ -86,24 +82,22 @@ async function createSetupSideEffects( // packages that are stuck in the installing state. await ensurePackagesCompletedInstall(soClient, esClient); - if (isFleetServerEnabled) { - await awaitIfFleetServerSetupPending(); + await awaitIfFleetServerSetupPending(); - const fleetServerPackage = await ensureInstalledPackage({ - savedObjectsClient: soClient, - pkgName: FLEET_SERVER_PACKAGE, + const fleetServerPackage = await ensureInstalledPackage({ + savedObjectsClient: soClient, + pkgName: FLEET_SERVER_PACKAGE, + esClient, + }); + + if (defaultFleetServerPolicyCreated) { + await addPackageToAgentPolicy( + soClient, esClient, - }); - - if (defaultFleetServerPolicy && defaultFleetServerPolicy.created) { - await addPackageToAgentPolicy( - soClient, - esClient, - fleetServerPackage, - defaultFleetServerPolicy.policy, - defaultOutput - ); - } + fleetServerPackage, + defaultFleetServerPolicy, + defaultOutput + ); } // If we just created the default fleet server policy add the fleet server package diff --git a/x-pack/plugins/security_solution/common/endpoint/index_data.ts b/x-pack/plugins/security_solution/common/endpoint/index_data.ts index 96f83f1073fcc..cf2b234451f50 100644 --- a/x-pack/plugins/security_solution/common/endpoint/index_data.ts +++ b/x-pack/plugins/security_solution/common/endpoint/index_data.ts @@ -310,7 +310,7 @@ const fleetEnrollAgentForHost = async ( path: ENROLLMENT_API_KEY_ROUTES.LIST_PATTERN, method: 'GET', query: { - kuery: `fleet-enrollment-api-keys.policy_id:"${agentPolicyId}"`, + kuery: `policy_id:"${agentPolicyId}"`, }, }) .then((apiKeysResponse) => { diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.tsx index d00b40061e28f..c4c27bd493950 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.tsx @@ -618,12 +618,12 @@ export const EndpointList = () => { { @@ -101,6 +100,7 @@ describe('test alerts route', () => { let endpointAppContextService: EndpointAppContextService; let cache: LRU; let ingestSavedObjectClient: jest.Mocked; + let esClientMock: ReturnType; beforeEach(() => { mockClusterClient = elasticsearchServiceMock.createLegacyClusterClient(); @@ -113,9 +113,12 @@ describe('test alerts route', () => { cache = new LRU({ max: 10, maxAge: 1000 * 60 * 60 }); const startContract = createMockEndpointAppContextServiceStartContract(); - // The authentication with the Fleet Plugin needs a separate scoped SO Client + // // The authentication with the Fleet Plugin needs a separate scoped ES CLient + esClientMock = elasticsearchServiceMock.createInternalClient(); + // @ts-expect-error + esClientMock.search.mockResolvedValue(mockFleetESResponse); + ingestSavedObjectClient = savedObjectsClientMock.create(); - ingestSavedObjectClient.find.mockReturnValue(Promise.resolve(mockIngestSOResponse)); (startContract.savedObjectsStart.getScopedClient as jest.Mock).mockReturnValue( ingestSavedObjectClient ); @@ -175,7 +178,7 @@ describe('test alerts route', () => { client: mockSavedObjectClient, }, elasticsearch: { - client: { asInternalUser: elasticsearchServiceMock.createInternalClient() }, + client: { asInternalUser: esClientMock }, }, }, } as unknown) as SecuritySolutionRequestHandlerContext, @@ -222,7 +225,7 @@ describe('test alerts route', () => { client: mockSavedObjectClient, }, elasticsearch: { - client: { asInternalUser: elasticsearchServiceMock.createInternalClient() }, + client: { asInternalUser: esClientMock }, }, }, } as unknown) as SecuritySolutionRequestHandlerContext, @@ -259,7 +262,7 @@ describe('test alerts route', () => { client: mockSavedObjectClient, }, elasticsearch: { - client: { asInternalUser: elasticsearchServiceMock.createInternalClient() }, + client: { asInternalUser: esClientMock }, }, }, } as unknown) as SecuritySolutionRequestHandlerContext, @@ -290,7 +293,7 @@ describe('test alerts route', () => { client: mockSavedObjectClient, }, elasticsearch: { - client: { asInternalUser: elasticsearchServiceMock.createInternalClient() }, + client: { asInternalUser: esClientMock }, }, }, } as unknown) as SecuritySolutionRequestHandlerContext, @@ -312,9 +315,8 @@ describe('test alerts route', () => { }); // Mock the SavedObjectsClient find response for verifying the API token with no results - mockIngestSOResponse.saved_objects = []; - mockIngestSOResponse.total = 0; - ingestSavedObjectClient.find.mockReturnValue(Promise.resolve(mockIngestSOResponse)); + // @ts-expect-error + esClientMock.search.mockResolvedValue({ body: { hits: { hits: [] } } }); [routeConfig, routeHandler] = routerMock.get.mock.calls.find(([{ path }]) => path.startsWith('/api/endpoint/artifacts/download') @@ -327,7 +329,7 @@ describe('test alerts route', () => { client: mockSavedObjectClient, }, elasticsearch: { - client: { asInternalUser: elasticsearchServiceMock.createInternalClient() }, + client: { asInternalUser: esClientMock }, }, }, } as unknown) as SecuritySolutionRequestHandlerContext, diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/artifacts/download_artifact.ts b/x-pack/plugins/security_solution/server/endpoint/routes/artifacts/download_artifact.ts index 95070b10b9550..d08b6887b86eb 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/artifacts/download_artifact.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/artifacts/download_artifact.ts @@ -55,7 +55,6 @@ export function registerDownloadArtifactRoute( try { scopedSOClient = endpointContext.service.getScopedSavedObjectsClient(req); await authenticateAgentWithAccessToken( - scopedSOClient, context.core.elasticsearch.client.asInternalUser, req ); diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts index 134ce99784bfb..d3ba16ffe0063 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts @@ -19,6 +19,7 @@ import type { SecuritySolutionRequestHandlerContext } from '../../../types'; import { getESQueryHostMetadataByID, kibanaRequestToMetadataListESQuery } from './query_builders'; import { Agent, AgentStatus, PackagePolicy } from '../../../../../fleet/common/types/models'; +import { AgentNotFoundError } from '../../../../../fleet/server'; import { EndpointAppContext, HostListQueryResult } from '../../types'; import { GetMetadataListRequestSchema, GetMetadataRequestSchema } from './index'; import { findAllUnenrolledAgentIds } from './support/unenroll'; @@ -202,16 +203,11 @@ async function findAgent( return await metadataRequestContext.endpointAppContextService ?.getAgentService() ?.getAgent( - metadataRequestContext.requestHandlerContext.core.savedObjects.client, metadataRequestContext.requestHandlerContext.core.elasticsearch.client.asCurrentUser, hostMetadata.elastic.agent.id ); } catch (e) { - if ( - metadataRequestContext.requestHandlerContext.core.savedObjects.client.errors.isNotFoundError( - e - ) - ) { + if (e instanceof AgentNotFoundError) { metadataRequestContext.logger.warn( `agent with id ${hostMetadata.elastic.agent.id} not found` ); @@ -277,17 +273,12 @@ export async function enrichHostMetadata( const status = await metadataRequestContext.endpointAppContextService ?.getAgentService() ?.getAgentStatusById( - metadataRequestContext.requestHandlerContext.core.savedObjects.client, metadataRequestContext.requestHandlerContext.core.elasticsearch.client.asCurrentUser, elasticAgentId ); hostStatus = HOST_STATUS_MAPPING.get(status!) || HostStatus.ERROR; } catch (e) { - if ( - metadataRequestContext.requestHandlerContext.core.savedObjects.client.errors.isNotFoundError( - e - ) - ) { + if (e instanceof AgentNotFoundError) { log.warn(`agent with id ${elasticAgentId} not found`); } else { log.error(e); @@ -300,7 +291,6 @@ export async function enrichHostMetadata( const agent = await metadataRequestContext.endpointAppContextService ?.getAgentService() ?.getAgent( - metadataRequestContext.requestHandlerContext.core.savedObjects.client, metadataRequestContext.requestHandlerContext.core.elasticsearch.client.asCurrentUser, elasticAgentId ); diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.test.ts b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.test.ts index b64dac538a981..f65578f223beb 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.test.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.test.ts @@ -71,7 +71,7 @@ describe('test filtering endpoint hosts by agent status', () => { ['offline'] ); const offlineKuery = AgentStatusKueryHelper.buildKueryForOfflineAgents(); - expect(mockAgentService.listAgents.mock.calls[0][2].kuery).toEqual( + expect(mockAgentService.listAgents.mock.calls[0][1].kuery).toEqual( expect.stringContaining(offlineKuery) ); expect(result).toBeDefined(); @@ -105,7 +105,7 @@ describe('test filtering endpoint hosts by agent status', () => { ); const unenrollKuery = AgentStatusKueryHelper.buildKueryForUnenrollingAgents(); const errorKuery = AgentStatusKueryHelper.buildKueryForErrorAgents(); - expect(mockAgentService.listAgents.mock.calls[0][2].kuery).toEqual( + expect(mockAgentService.listAgents.mock.calls[0][1].kuery).toEqual( expect.stringContaining(`${unenrollKuery} OR ${errorKuery}`) ); expect(result).toBeDefined(); diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.ts b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.ts index 79ce5442eea2e..8f5229804d2d1 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/agent_status.ts @@ -31,7 +31,7 @@ export async function findAgentIDsByStatus( page: pageNum, perPage: pageSize, showInactive: true, - kuery: `(fleet-agents.packages : "endpoint" AND (${helpers.join(' OR ')}))`, + kuery: `(packages : "endpoint" AND (${helpers.join(' OR ')}))`, }; }; @@ -41,7 +41,7 @@ export async function findAgentIDsByStatus( let hasMore = true; while (hasMore) { - const agents = await agentService.listAgents(soClient, esClient, searchOptions(page++)); + const agents = await agentService.listAgents(esClient, searchOptions(page++)); result.push(...agents.agents.map((agent: Agent) => agent.id)); hasMore = agents.agents.length > 0; } diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/unenroll.ts b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/unenroll.ts index 672f8ece299bb..7dfa463f4a4f8 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/unenroll.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/metadata/support/unenroll.ts @@ -20,8 +20,7 @@ export async function findAllUnenrolledAgentIds( page: pageNum, perPage: pageSize, showInactive: true, - kuery: - '(fleet-agents.active : false) OR (NOT fleet-agents.packages : "endpoint" AND fleet-agents.active : true)', + kuery: '(active : false) OR (NOT packages : "endpoint" AND active : true)', }; }; @@ -31,11 +30,7 @@ export async function findAllUnenrolledAgentIds( let hasMore = true; while (hasMore) { - const unenrolledAgents = await agentService.listAgents( - soClient, - esClient, - searchOptions(page++) - ); + const unenrolledAgents = await agentService.listAgents(esClient, searchOptions(page++)); result.push(...unenrolledAgents.agents.map((agent: Agent) => agent.id)); hasMore = unenrolledAgents.agents.length > 0; } diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/policy/service.ts b/x-pack/plugins/security_solution/server/endpoint/routes/policy/service.ts index ad520d2d28833..af5a885b78040 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/policy/service.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/policy/service.ts @@ -15,7 +15,6 @@ import { GetHostPolicyResponse, HostPolicyResponse } from '../../../../common/en import { INITIAL_POLICY_ID } from './index'; import { Agent } from '../../../../../fleet/common/types/models'; import { EndpointAppContext } from '../../types'; -import { AGENT_SAVED_OBJECT_TYPE } from '../../../../../fleet/common/constants'; export function getESQueryPolicyResponseByAgentID(agentID: string, index: string) { return { @@ -83,14 +82,14 @@ export async function getAgentPolicySummary( policyId?: string, pageSize: number = 1000 ): Promise<{ [key: string]: number }> { - const agentQuery = `${AGENT_SAVED_OBJECT_TYPE}.packages:"${packageName}"`; + const agentQuery = `packages:"${packageName}"`; if (policyId) { return transformAgentVersionMap( await agentVersionsMap( endpointAppContext, soClient, esClient, - `${agentQuery} AND ${AGENT_SAVED_OBJECT_TYPE}.policy_id:${policyId}`, + `${agentQuery} AND policy_id:${policyId}`, pageSize ) ); @@ -123,7 +122,7 @@ export async function agentVersionsMap( while (hasMore) { const queryResult = await endpointAppContext.service .getAgentService()! - .listAgents(soClient, esClient, searchOptions(page++)); + .listAgents(esClient, searchOptions(page++)); queryResult.agents.forEach((agent: Agent) => { const agentVersion = agent.local_metadata?.elastic?.agent?.version; if (result.has(agentVersion)) { diff --git a/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts index 2ba83bff6f1b1..8dcc3049ccd3a 100644 --- a/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts +++ b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy.ts @@ -13,19 +13,13 @@ export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); describe('fleet_agent_policies', () => { - const createdPolicyIds: string[] = []; - after(async () => { - const deletedPromises = createdPolicyIds.map((agentPolicyId) => - supertest - .post(`/api/fleet/agent_policies/delete`) - .set('kbn-xsrf', 'xxxx') - .send({ agentPolicyId }) - .expect(200) - ); - await Promise.all(deletedPromises); - }); - describe('POST /api/fleet/agent_policies', () => { + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); + }); it('should work with valid minimum required values', async () => { const { body: { item: createdPolicy }, @@ -201,6 +195,23 @@ export default function ({ getService }: FtrProviderContext) { }); describe('PUT /api/fleet/agent_policies/{agentPolicyId}', () => { + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); + const createdPolicyIds: string[] = []; + after(async () => { + const deletedPromises = createdPolicyIds.map((agentPolicyId) => + supertest + .post(`/api/fleet/agent_policies/delete`) + .set('kbn-xsrf', 'xxxx') + .send({ agentPolicyId }) + .expect(200) + ); + await Promise.all(deletedPromises); + }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); + }); let agentPolicyId: undefined | string; it('should work with valid values', async () => { const { @@ -310,6 +321,12 @@ export default function ({ getService }: FtrProviderContext) { }); describe('POST /api/fleet/agent_policies/delete', () => { + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); + }); let managedPolicy: any | undefined; it('should prevent managed policies being deleted', async () => { const { diff --git a/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts index 1cc96b59c460d..38510eff72d05 100644 --- a/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts +++ b/x-pack/test/fleet_api_integration/apis/agent_policy/agent_policy_with_agents_setup.ts @@ -9,6 +9,7 @@ import expect from '@kbn/expect'; import { skipIfNoDockerRegistry } from '../../helpers'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { setupFleetAndAgents, getSupertestWithoutAuth } from '../agents/services'; +import { AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS } from '../../../../plugins/fleet/common'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -75,6 +76,10 @@ export default function (providerContext: FtrProviderContext) { before(async () => { await esArchiver.loadIfNeeded('fleet/agents'); }); + after(async () => { + // Wait before agent status is updated + return new Promise((resolve) => setTimeout(resolve, AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS)); + }); after(async () => { await esArchiver.unload('fleet/agents'); }); diff --git a/x-pack/test/fleet_api_integration/apis/agents/acks.ts b/x-pack/test/fleet_api_integration/apis/agents/acks.ts index 66700cc6eecd2..6b68d8b28a43e 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/acks.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/acks.ts @@ -14,7 +14,6 @@ export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const esArchiver = getService('esArchiver'); const esClient = getService('es'); - const kibanaServer = getService('kibanaServer'); const supertestWithoutAuth = getSupertestWithoutAuth(providerContext); const supertest = getService('supertest'); @@ -33,13 +32,13 @@ export default function (providerContext: FtrProviderContext) { const { body: { _source: agentDoc }, } = await esClient.get({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', }); - agentDoc['fleet-agents'].access_api_key_id = apiKey.id; + agentDoc.access_api_key_id = apiKey.id; await esClient.update({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', refresh: true, body: { doc: agentDoc, @@ -240,11 +239,11 @@ export default function (providerContext: FtrProviderContext) { }) .expect(200); - const res = await kibanaServer.savedObjects.get({ - type: 'fleet-agents', + const res = await esClient.get({ + index: '.fleet-agents', id: 'agent1', }); - expect(res.attributes.upgraded_at).to.be.ok(); + expect(res.body._source.upgraded_at).to.be.ok(); }); }); } diff --git a/x-pack/test/fleet_api_integration/apis/agents/actions.ts b/x-pack/test/fleet_api_integration/apis/agents/actions.ts index 787c083e1b89b..dc951ab4055c2 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/actions.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/actions.ts @@ -15,7 +15,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_actions', () => { before(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); }); after(async () => { await esArchiver.unload('fleet/agents'); @@ -86,7 +86,7 @@ export default function (providerContext: FtrProviderContext) { }); it('should return a 404 when agent does not exist', async () => { - const { body: apiResponse } = await supertest + await supertest .post(`/api/fleet/agents/agent100/actions`) .set('kbn-xsrf', 'xx') .send({ @@ -96,7 +96,6 @@ export default function (providerContext: FtrProviderContext) { }, }) .expect(404); - expect(apiResponse.message).to.eql('Saved object [fleet-agents/agent100] not found'); }); }); } diff --git a/x-pack/test/fleet_api_integration/apis/agents/checkin.ts b/x-pack/test/fleet_api_integration/apis/agents/checkin.ts index 2bbe52524b8f5..778063dff72c7 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/checkin.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/checkin.ts @@ -11,6 +11,7 @@ import uuid from 'uuid'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { getSupertestWithoutAuth, setupFleetAndAgents } from './services'; import { skipIfNoDockerRegistry } from '../../helpers'; +import { AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS } from '../../../../plugins/fleet/common'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -34,13 +35,13 @@ export default function (providerContext: FtrProviderContext) { const { body: { _source: agentDoc }, } = await esClient.get({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', }); - agentDoc['fleet-agents'].access_api_key_id = apiKey.id; + agentDoc.access_api_key_id = apiKey.id; await esClient.update({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', refresh: true, body: { doc: agentDoc, @@ -48,6 +49,10 @@ export default function (providerContext: FtrProviderContext) { }); }); setupFleetAndAgents(providerContext); + after(async () => { + // Wait before agent status is updated + return new Promise((resolve) => setTimeout(resolve, AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS)); + }); after(async () => { await esArchiver.unload('fleet/agents'); }); diff --git a/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts b/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts index a7c8f78e6415c..493c5026eebc4 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/complete_flow.ts @@ -10,6 +10,7 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { setupFleetAndAgents, getSupertestWithoutAuth } from './services'; import { skipIfNoDockerRegistry } from '../../helpers'; +import { AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS } from '../../../../plugins/fleet/common'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; @@ -23,25 +24,38 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agent_flow', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.load('empty_kibana'); + await esArchiver.load('fleet/empty_fleet_server'); }); setupFleetAndAgents(providerContext); after(async () => { - await esArchiver.unload('empty_kibana'); + // Wait before agent status is updated + return new Promise((resolve) => setTimeout(resolve, AGENT_UPDATE_LAST_CHECKIN_INTERVAL_MS)); + }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); }); it('should work', async () => { const kibanaVersionAccessor = kibanaServer.version; const kibanaVersion = await kibanaVersionAccessor.get(); + const { body: policiesRes } = await supertest.get(`/api/fleet/agent_policies`).expect(200); + + expect(policiesRes.items).length(2); + const { id: defaultPolicyId } = policiesRes.items.find((p: any) => p.is_default); + // Get enrollment token const { body: enrollmentApiKeysResponse } = await supertest .get(`/api/fleet/enrollment-api-keys`) .expect(200); - expect(enrollmentApiKeysResponse.list).length(1); + expect(enrollmentApiKeysResponse.list).length(2); + const { id: enrollmentKeyId } = enrollmentApiKeysResponse.list.find( + (key: any) => key.policy_id === defaultPolicyId + ); + const { body: enrollmentApiKeyResponse } = await supertest - .get(`/api/fleet/enrollment-api-keys/${enrollmentApiKeysResponse.list[0].id}`) + .get(`/api/fleet/enrollment-api-keys/${enrollmentKeyId}`) .expect(200); expect(enrollmentApiKeyResponse.item).to.have.key('api_key'); @@ -194,14 +208,24 @@ export default function (providerContext: FtrProviderContext) { const kibanaVersionAccessor = kibanaServer.version; const kibanaVersion = await kibanaVersionAccessor.get(); + // Get enrollment token + const { body: policiesRes } = await supertest.get(`/api/fleet/agent_policies`).expect(200); + + expect(policiesRes.items).length(2); + const { id: defaultPolicyId } = policiesRes.items.find((p: any) => p.is_default); + // Get enrollment token const { body: enrollmentApiKeysResponse } = await supertest .get(`/api/fleet/enrollment-api-keys`) .expect(200); - expect(enrollmentApiKeysResponse.list).length(1); + expect(enrollmentApiKeysResponse.list).length(2); + const { id: enrollmentKeyId } = enrollmentApiKeysResponse.list.find( + (key: any) => key.policy_id === defaultPolicyId + ); + const { body: enrollmentApiKeyResponse } = await supertest - .get(`/api/fleet/enrollment-api-keys/${enrollmentApiKeysResponse.list[0].id}`) + .get(`/api/fleet/enrollment-api-keys/${enrollmentKeyId}`) .expect(200); expect(enrollmentApiKeyResponse.item).to.have.key('api_key'); diff --git a/x-pack/test/fleet_api_integration/apis/agents/delete.ts b/x-pack/test/fleet_api_integration/apis/agents/delete.ts index c924d3d9ac93b..15afb34f76ea6 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/delete.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/delete.ts @@ -58,7 +58,7 @@ export default function ({ getService }: FtrProviderContext) { } } - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); }); after(async () => { await esArchiver.unload('fleet/agents'); diff --git a/x-pack/test/fleet_api_integration/apis/agents/enroll.ts b/x-pack/test/fleet_api_integration/apis/agents/enroll.ts index 3358d045fe69b..f61a13253f8a1 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/enroll.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/enroll.ts @@ -27,7 +27,7 @@ export default function (providerContext: FtrProviderContext) { describe('fleet_agents_enroll', () => { skipIfNoDockerRegistry(providerContext); before(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); const { body: apiKeyBody } = await esClient.security.createApiKey({ body: { @@ -38,14 +38,14 @@ export default function (providerContext: FtrProviderContext) { const { body: { _source: enrollmentApiKeyDoc }, } = await esClient.get({ - index: '.kibana', - id: 'fleet-enrollment-api-keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0', + index: '.fleet-enrollment-api-keys', + id: 'ed22ca17-e178-4cfe-8b02-54ea29fbd6d0', }); // @ts-ignore - enrollmentApiKeyDoc['fleet-enrollment-api-keys'].api_key_id = apiKey.id; + enrollmentApiKeyDoc.api_key_id = apiKey.id; await esClient.update({ - index: '.kibana', - id: 'fleet-enrollment-api-keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0', + index: '.fleet-enrollment-api-keys', + id: 'ed22ca17-e178-4cfe-8b02-54ea29fbd6d0', refresh: true, body: { doc: enrollmentApiKeyDoc, diff --git a/x-pack/test/fleet_api_integration/apis/agents/events.ts b/x-pack/test/fleet_api_integration/apis/agents/events.ts deleted file mode 100644 index f88051c13777f..0000000000000 --- a/x-pack/test/fleet_api_integration/apis/agents/events.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 expect from '@kbn/expect'; - -import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; - -export default function ({ getService }: FtrProviderContext) { - const esArchiver = getService('esArchiver'); - const supertest = getService('supertest'); - - describe('fleet_agents_events', () => { - before(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); - }); - after(async () => { - await esArchiver.unload('fleet/agents'); - }); - - it('should return a 200 and the events for a given agent', async () => { - const { body: apiResponse } = await supertest - .get(`/api/fleet/agents/agent1/events`) - .expect(200); - expect(apiResponse).to.have.keys(['list', 'total', 'page']); - expect(apiResponse.total).to.be(2); - expect(apiResponse.page).to.be(1); - - const event = apiResponse.list[0]; - expect(event).to.have.keys('type', 'subtype', 'message', 'payload'); - expect(event.payload).to.have.keys('previous_state'); - }); - - it('should return a 400 when given an invalid "kuery" value', async () => { - await supertest - .get(`/api/fleet/agents/agent1/events?kuery=m`) // missing saved object type - .expect(400); - }); - it('should accept a valid "kuery" value', async () => { - const filter = encodeURIComponent('fleet-agent-events.subtype : "STOPPED"'); - const { body: apiResponse } = await supertest - .get(`/api/fleet/agents/agent1/events?kuery=${filter}`) - .expect(200); - - expect(apiResponse).to.have.keys(['list', 'total', 'page']); - expect(apiResponse.total).to.be(1); - expect(apiResponse.page).to.be(1); - - const event = apiResponse.list[0]; - expect(event.subtype).to.eql('STOPPED'); - }); - }); -} diff --git a/x-pack/test/fleet_api_integration/apis/agents/list.ts b/x-pack/test/fleet_api_integration/apis/agents/list.ts index 7e960958719eb..5fcf43f274b31 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/list.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/list.ts @@ -100,9 +100,7 @@ export default function ({ getService }: FtrProviderContext) { }); it('should return a 400 when given an invalid "kuery" value', async () => { - await supertest - .get(`/api/fleet/agents?kuery=m`) // missing saved object type - .expect(400); + await supertest.get(`/api/fleet/agents?kuery=.test%3A`).expect(400); }); it('should accept a valid "kuery" value', async () => { const filter = encodeURIComponent('fleet-agents.access_api_key_id : "api-key-2"'); diff --git a/x-pack/test/fleet_api_integration/apis/agents/reassign.ts b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts index a31fa862f7420..7b72e7af6bbad 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/reassign.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts @@ -15,13 +15,19 @@ export default function (providerContext: FtrProviderContext) { const supertest = getService('supertest'); describe('fleet_reassign_agent', () => { - setupFleetAndAgents(providerContext); + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); beforeEach(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); }); + setupFleetAndAgents(providerContext); afterEach(async () => { await esArchiver.unload('fleet/agents'); }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); + }); it('should allow to reassign single agent', async () => { await supertest diff --git a/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts b/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts index 85bcce824dd51..8924c090da089 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/unenroll.ts @@ -23,7 +23,7 @@ export default function (providerContext: FtrProviderContext) { let accessAPIKeyId: string; let outputAPIKeyId: string; before(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); }); setupFleetAndAgents(providerContext); beforeEach(async () => { @@ -42,19 +42,19 @@ export default function (providerContext: FtrProviderContext) { const { body: { _source: agentDoc }, } = await esClient.get({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', }); // @ts-ignore - agentDoc['fleet-agents'].access_api_key_id = accessAPIKeyId; - agentDoc['fleet-agents'].default_api_key_id = outputAPIKeyBody.id; - agentDoc['fleet-agents'].default_api_key = Buffer.from( + agentDoc.access_api_key_id = accessAPIKeyId; + agentDoc.default_api_key_id = outputAPIKeyBody.id; + agentDoc.default_api_key = Buffer.from( `${outputAPIKeyBody.id}:${outputAPIKeyBody.api_key}` ).toString('base64'); await esClient.update({ - index: '.kibana', - id: 'fleet-agents:agent1', + index: '.fleet-agents', + id: 'agent1', refresh: true, body: { doc: agentDoc, diff --git a/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts b/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts index 1b7afac7e2f6c..9f2280ed9613e 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/upgrade.ts @@ -10,7 +10,7 @@ import semver from 'semver'; import { FtrProviderContext } from '../../../api_integration/ftr_provider_context'; import { setupFleetAndAgents } from './services'; import { skipIfNoDockerRegistry } from '../../helpers'; -import { AGENT_SAVED_OBJECT_TYPE } from '../../../../plugins/fleet/common'; +import { AGENTS_INDEX } from '../../../../plugins/fleet/common'; const makeSnapshotVersion = (version: string) => { return version.endsWith('-SNAPSHOT') ? version : `${version}-SNAPSHOT`; @@ -19,26 +19,33 @@ const makeSnapshotVersion = (version: string) => { export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); + const es = getService('es'); const esArchiver = getService('esArchiver'); const kibanaServer = getService('kibanaServer'); describe('fleet upgrade agent', () => { skipIfNoDockerRegistry(providerContext); + before(async () => { + await esArchiver.loadIfNeeded('fleet/agents'); + }); setupFleetAndAgents(providerContext); beforeEach(async () => { - await esArchiver.loadIfNeeded('fleet/agents'); + await esArchiver.load('fleet/agents'); }); - afterEach(async () => { + after(async () => { await esArchiver.unload('fleet/agents'); }); it('should respond 200 to upgrade agent and update the agent SO', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); await supertest @@ -56,11 +63,14 @@ export default function (providerContext: FtrProviderContext) { it('should respond 400 if upgrading agent with version the same as snapshot version', async () => { const kibanaVersion = await kibanaServer.version.get(); const kibanaVersionSnapshot = makeSnapshotVersion(kibanaVersion); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: kibanaVersion } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: kibanaVersion } } }, + }, }, }); await supertest @@ -74,11 +84,14 @@ export default function (providerContext: FtrProviderContext) { it('should respond 200 if upgrading agent with version the same as snapshot version and force flag is passed', async () => { const kibanaVersion = await kibanaServer.version.get(); const kibanaVersionSnapshot = makeSnapshotVersion(kibanaVersion); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: kibanaVersion } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: kibanaVersion } } }, + }, }, }); await supertest @@ -94,11 +107,14 @@ export default function (providerContext: FtrProviderContext) { const kibanaVersion = await kibanaServer.version.get(); const kibanaVersionSnapshot = makeSnapshotVersion(kibanaVersion); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); await supertest @@ -111,11 +127,14 @@ export default function (providerContext: FtrProviderContext) { }); it('should respond 200 to upgrade agent and update the agent SO without source_uri', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); await supertest @@ -156,10 +175,15 @@ export default function (providerContext: FtrProviderContext) { }); it('should respond 400 if trying to upgrade an agent that is unenrolled', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { unenrolled_at: new Date().toISOString() }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + unenrolled_at: new Date().toISOString(), + }, + }, }); await supertest .post(`/api/fleet/agents/agent1/upgrade`) @@ -184,19 +208,27 @@ export default function (providerContext: FtrProviderContext) { it('should respond 200 to bulk upgrade upgradeable agents and update the agent SOs', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { + agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + }, + }, }, }, }); @@ -219,19 +251,27 @@ export default function (providerContext: FtrProviderContext) { it('should allow to upgrade multiple upgradeable agents by kuery', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { + agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + }, + }, }, }, }); @@ -239,7 +279,7 @@ export default function (providerContext: FtrProviderContext) { .post(`/api/fleet/agents/bulk_upgrade`) .set('kbn-xsrf', 'xxx') .send({ - agents: 'fleet-agents.active: true', + agents: 'active:true', version: kibanaVersion, }) .expect(200); @@ -256,19 +296,23 @@ export default function (providerContext: FtrProviderContext) { await supertest.post(`/api/fleet/agents/agent1/unenroll`).set('kbn-xsrf', 'xxx').send({ force: true, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: '0.0.0' } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, }, }, }); @@ -288,20 +332,26 @@ export default function (providerContext: FtrProviderContext) { }); it('should not upgrade an unenrolled agent during bulk_upgrade', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - unenrolled_at: new Date().toISOString(), - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + unenrolled_at: new Date().toISOString(), + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: '0.0.0' } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { agent: { upgradeable: true, version: '0.0.0' } }, + }, }, }, }); @@ -321,27 +371,38 @@ export default function (providerContext: FtrProviderContext) { }); it('should not upgrade an non upgradeable agent during bulk_upgrade', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { + agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + }, + }, }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent3', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: false, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: false, version: '0.0.0' } } }, + }, }, }); await supertest @@ -362,27 +423,38 @@ export default function (providerContext: FtrProviderContext) { }); it('should upgrade a non upgradeable agent during bulk_upgrade with force flag', async () => { const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { + agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + }, + }, }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent3', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: false, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: false, version: '0.0.0' } } }, + }, }, }); await supertest @@ -403,18 +475,24 @@ export default function (providerContext: FtrProviderContext) { expect(typeof agent3data.body.item.upgrade_started_at).to.be('string'); }); it('should respond 400 if trying to bulk upgrade to a version that does not match installed kibana version', async () => { - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); await supertest @@ -438,25 +516,30 @@ export default function (providerContext: FtrProviderContext) { }); const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent2', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { - elastic: { - agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { + elastic: { + agent: { upgradeable: true, version: semver.inc(kibanaVersion, 'patch') }, + }, }, }, }, }); - // attempt to upgrade agent in managed policy const { body } = await supertest .post(`/api/fleet/agents/bulk_upgrade`) @@ -486,14 +569,16 @@ export default function (providerContext: FtrProviderContext) { }); const kibanaVersion = await kibanaServer.version.get(); - await kibanaServer.savedObjects.update({ + await es.update({ id: 'agent1', - type: AGENT_SAVED_OBJECT_TYPE, - attributes: { - local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + refresh: 'wait_for', + index: AGENTS_INDEX, + body: { + doc: { + local_metadata: { elastic: { agent: { upgradeable: true, version: '0.0.0' } } }, + }, }, }); - // attempt to upgrade agent in managed policy const { body } = await supertest .post(`/api/fleet/agents/agent1/upgrade`) diff --git a/x-pack/test/fleet_api_integration/apis/agents_setup.ts b/x-pack/test/fleet_api_integration/apis/agents_setup.ts index 20112afdf76a4..91d6ca0119d1d 100644 --- a/x-pack/test/fleet_api_integration/apis/agents_setup.ts +++ b/x-pack/test/fleet_api_integration/apis/agents_setup.ts @@ -13,9 +13,20 @@ export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); const es = getService('es'); + const esArchiver = getService('esArchiver'); describe('fleet_agents_setup', () => { skipIfNoDockerRegistry(providerContext); + before(async () => { + await esArchiver.load('empty_kibana'); + await esArchiver.load('fleet/empty_fleet_server'); + }); + + after(async () => { + await esArchiver.unload('empty_kibana'); + await esArchiver.load('fleet/empty_fleet_server'); + }); + beforeEach(async () => { try { await es.security.deleteUser({ diff --git a/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts b/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts index 4ad60c84a49bd..2569d9aef4b5b 100644 --- a/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts +++ b/x-pack/test/fleet_api_integration/apis/enrollment_api_keys/crud.ts @@ -37,7 +37,7 @@ export default function (providerContext: FtrProviderContext) { .get(`/api/fleet/enrollment-api-keys`) .expect(200); - expect(apiResponse.total).to.be(3); + expect(apiResponse.total).to.be(4); expect(apiResponse.list[0]).to.have.keys('id', 'api_key_id', 'name'); }); }); diff --git a/x-pack/test/fleet_api_integration/apis/epm/list.ts b/x-pack/test/fleet_api_integration/apis/epm/list.ts index b7ff119b769bb..5a991e52bdba4 100644 --- a/x-pack/test/fleet_api_integration/apis/epm/list.ts +++ b/x-pack/test/fleet_api_integration/apis/epm/list.ts @@ -13,6 +13,7 @@ import { setupFleetAndAgents } from '../agents/services'; export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); + const esArchiver = getService('esArchiver'); // use function () {} and not () => {} here // because `this` has to point to the Mocha context @@ -20,7 +21,13 @@ export default function (providerContext: FtrProviderContext) { describe('EPM - list', async function () { skipIfNoDockerRegistry(providerContext); + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); setupFleetAndAgents(providerContext); + after(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); describe('list api tests', async () => { it('lists all packages from the registry', async function () { @@ -44,6 +51,7 @@ export default function (providerContext: FtrProviderContext) { return response.body; }; const listResponse = await fetchLimitedPackageList(); + expect(listResponse.response).to.eql(['endpoint']); }); }); diff --git a/x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml b/x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml index 5bfbf78e25ed8..4b7bed537a3b1 100644 --- a/x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml +++ b/x-pack/test/fleet_api_integration/apis/fixtures/package_registry_config.yml @@ -1,3 +1,5 @@ - package_paths: - - /packages/production - - /packages/test-packages \ No newline at end of file +package_paths: + - /packages/production + # TODO remove temp + - /packages/snapshot + - /packages/test-packages diff --git a/x-pack/test/fleet_api_integration/apis/fleet_setup.ts b/x-pack/test/fleet_api_integration/apis/fleet_setup.ts index d9f55d9fa0b74..237b9617dafb9 100644 --- a/x-pack/test/fleet_api_integration/apis/fleet_setup.ts +++ b/x-pack/test/fleet_api_integration/apis/fleet_setup.ts @@ -13,9 +13,19 @@ export default function (providerContext: FtrProviderContext) { const { getService } = providerContext; const supertest = getService('supertest'); const es = getService('es'); + const esArchiver = getService('esArchiver'); describe('fleet_setup', () => { skipIfNoDockerRegistry(providerContext); + before(async () => { + await esArchiver.load('empty_kibana'); + await esArchiver.load('fleet/empty_fleet_server'); + }); + + after(async () => { + await esArchiver.unload('empty_kibana'); + await esArchiver.load('fleet/empty_fleet_server'); + }); beforeEach(async () => { try { await es.security.deleteUser({ @@ -117,7 +127,7 @@ export default function (providerContext: FtrProviderContext) { .map((p: any) => p.name) .sort(); - expect(installedPackages).to.eql(['elastic_agent', 'endpoint', 'system']); + expect(installedPackages).to.eql(['elastic_agent', 'endpoint', 'fleet_server', 'system']); }); }); } diff --git a/x-pack/test/fleet_api_integration/apis/index.js b/x-pack/test/fleet_api_integration/apis/index.js index 44431795a34ba..948985c52bd1b 100644 --- a/x-pack/test/fleet_api_integration/apis/index.js +++ b/x-pack/test/fleet_api_integration/apis/index.js @@ -20,7 +20,6 @@ export default function ({ loadTestFile }) { loadTestFile(require.resolve('./agents/enroll')); loadTestFile(require.resolve('./agents/unenroll')); loadTestFile(require.resolve('./agents/checkin')); - loadTestFile(require.resolve('./agents/events')); loadTestFile(require.resolve('./agents/acks')); loadTestFile(require.resolve('./agents/complete_flow')); loadTestFile(require.resolve('./agents/actions')); diff --git a/x-pack/test/fleet_api_integration/apis/package_policy/create.ts b/x-pack/test/fleet_api_integration/apis/package_policy/create.ts index c9c871e280f16..3764bdbc20d03 100644 --- a/x-pack/test/fleet_api_integration/apis/package_policy/create.ts +++ b/x-pack/test/fleet_api_integration/apis/package_policy/create.ts @@ -20,6 +20,14 @@ export default function ({ getService }: FtrProviderContext) { describe('Package Policy - create', async function () { let agentPolicyId: string; + before(async () => { + await getService('esArchiver').load('empty_kibana'); + await getService('esArchiver').load('fleet/empty_fleet_server'); + }); + after(async () => { + await getService('esArchiver').unload('empty_kibana'); + await getService('esArchiver').unload('fleet/empty_fleet_server'); + }); before(async function () { const { body: agentPolicyResponse } = await supertest diff --git a/x-pack/test/fleet_api_integration/apis/package_policy/delete.ts b/x-pack/test/fleet_api_integration/apis/package_policy/delete.ts index e64ba8580d145..85e6f5ab92b74 100644 --- a/x-pack/test/fleet_api_integration/apis/package_policy/delete.ts +++ b/x-pack/test/fleet_api_integration/apis/package_policy/delete.ts @@ -20,7 +20,10 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); let agentPolicy: any; let packagePolicy: any; - + before(async () => { + await getService('esArchiver').load('empty_kibana'); + await getService('esArchiver').load('fleet/empty_fleet_server'); + }); before(async function () { let agentPolicyResponse = await supertest .post(`/api/fleet/agent_policies`) @@ -79,6 +82,10 @@ export default function (providerContext: FtrProviderContext) { .set('kbn-xsrf', 'xxxx') .send({ packagePolicyIds: [packagePolicy.id] }); }); + after(async () => { + await getService('esArchiver').unload('empty_kibana'); + await getService('esArchiver').unload('fleet/empty_fleet_server'); + }); it('should fail on managed agent policies', async function () { // update existing policy to managed diff --git a/x-pack/test/fleet_api_integration/apis/package_policy/get.ts b/x-pack/test/fleet_api_integration/apis/package_policy/get.ts index 541dfa3a630ae..b2d51cca75d4d 100644 --- a/x-pack/test/fleet_api_integration/apis/package_policy/get.ts +++ b/x-pack/test/fleet_api_integration/apis/package_policy/get.ts @@ -22,6 +22,10 @@ export default function (providerContext: FtrProviderContext) { skipIfNoDockerRegistry(providerContext); let agentPolicyId: string; let packagePolicyId: string; + before(async () => { + await getService('esArchiver').load('empty_kibana'); + await getService('esArchiver').load('fleet/empty_fleet_server'); + }); before(async function () { if (!server.enabled) { @@ -73,7 +77,10 @@ export default function (providerContext: FtrProviderContext) { .send({ packagePolicyIds: [packagePolicyId] }) .expect(200); }); - + after(async () => { + await getService('esArchiver').unload('fleet/empty_fleet_server'); + await getService('esArchiver').unload('empty_kibana'); + }); it('should succeed with a valid id', async function () { await supertest.get(`/api/fleet/package_policies/${packagePolicyId}`).expect(200); }); diff --git a/x-pack/test/fleet_api_integration/apis/package_policy/update.ts b/x-pack/test/fleet_api_integration/apis/package_policy/update.ts index 9a70c6ad004dd..3e652d47ac425 100644 --- a/x-pack/test/fleet_api_integration/apis/package_policy/update.ts +++ b/x-pack/test/fleet_api_integration/apis/package_policy/update.ts @@ -24,6 +24,10 @@ export default function (providerContext: FtrProviderContext) { let managedAgentPolicyId: string; let packagePolicyId: string; let packagePolicyId2: string; + before(async () => { + await getService('esArchiver').load('empty_kibana'); + await getService('esArchiver').load('fleet/empty_fleet_server'); + }); before(async function () { if (!server.enabled) { @@ -106,6 +110,11 @@ export default function (providerContext: FtrProviderContext) { .send({ agentPolicyId }); }); + after(async () => { + await getService('esArchiver').unload('fleet/empty_fleet_server'); + await getService('esArchiver').unload('empty_kibana'); + }); + it('should fail on managed agent policies', async function () { const { body } = await supertest .put(`/api/fleet/package_policies/${packagePolicyId}`) diff --git a/x-pack/test/fleet_api_integration/apis/settings/update.ts b/x-pack/test/fleet_api_integration/apis/settings/update.ts index 7e77ccf21286f..73fff0be39043 100644 --- a/x-pack/test/fleet_api_integration/apis/settings/update.ts +++ b/x-pack/test/fleet_api_integration/apis/settings/update.ts @@ -16,9 +16,13 @@ export default function (providerContext: FtrProviderContext) { const supertest = getService('supertest'); const kibanaServer = getService('kibanaServer'); const esClient: Client = getService('legacyEs'); + const esArchiver = getService('esArchiver'); describe('Settings - update', async function () { skipIfNoDockerRegistry(providerContext); + before(async () => { + await esArchiver.load('fleet/empty_fleet_server'); + }); setupFleetAndAgents(providerContext); const createdAgentPolicyIds: string[] = []; @@ -28,10 +32,12 @@ export default function (providerContext: FtrProviderContext) { .post(`/api/fleet/agent_policies/delete`) .set('kbn-xsrf', 'xxxx') .send({ agentPolicyId }) - .expect(200) ); await Promise.all(deletedPromises); }); + after(async () => { + await esArchiver.unload('fleet/empty_fleet_server'); + }); it("should bump all agent policy's revision", async function () { const { body: testPolicy1PostRes } = await supertest .post(`/api/fleet/agent_policies`) diff --git a/x-pack/test/fleet_api_integration/config.ts b/x-pack/test/fleet_api_integration/config.ts index b4833d96c407e..1257db7016501 100644 --- a/x-pack/test/fleet_api_integration/config.ts +++ b/x-pack/test/fleet_api_integration/config.ts @@ -15,7 +15,7 @@ import { defineDockerServersConfig } from '@kbn/test'; // example: https://beats-ci.elastic.co/blue/organizations/jenkins/Ingest-manager%2Fpackage-storage/detail/snapshot/74/pipeline/257#step-302-log-1. // It should be updated any time there is a new Docker image published for the Snapshot Distribution of the Package Registry. export const dockerImage = - 'docker.elastic.co/package-registry/distribution:99dadb957d76b704637150d34a7219345cc0aeef'; + 'docker.elastic.co/package-registry/distribution:c5925eb82898dfc3e879a521871c7383513804c7'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); diff --git a/x-pack/test/functional/es_archives/fleet/agents/data.json b/x-pack/test/functional/es_archives/fleet/agents/data.json index ca957e5ae2fed..048ab6bf0853c 100644 --- a/x-pack/test/functional/es_archives/fleet/agents/data.json +++ b/x-pack/test/functional/es_archives/fleet/agents/data.json @@ -1,87 +1,15 @@ { "type": "doc", "value": { - "id": "fleet-agents:agent1", - "index": ".kibana", - "source": { - "type": "fleet-agents", - "fleet-agents": { - "access_api_key_id": "api-key-1", - "active": true, - "policy_id": "policy1", - "type": "PERMANENT", - "local_metadata": {}, - "user_provided_metadata": {} - }, - "migrationVersion": { - "fleet-agents": "7.10.0" - } - } - } -} - -{ - "type": "doc", - "value": { - "id": "fleet-agents:agent2", - "index": ".kibana", - "source": { - "type": "fleet-agents", - "fleet-agents": { - "access_api_key_id": "api-key-2", - "active": true, - "policy_id": "policy1", - "type": "PERMANENT", - "local_metadata": {}, - "user_provided_metadata": {} - }, - "migrationVersion": { - "fleet-agents": "7.10.0" - } - } - } -} - -{ - "type": "doc", - "value": { - "id": "fleet-agents:agent3", - "index": ".kibana", - "source": { - "type": "fleet-agents", - "fleet-agents": { - "access_api_key_id": "api-key-3", - "active": true, - "policy_id": "policy1", - "type": "PERMANENT", - "local_metadata": {}, - "user_provided_metadata": {} - }, - "migrationVersion": { - "fleet-agents": "7.10.0" - } - } - } -} - -{ - "type": "doc", - "value": { - "id": "fleet-agents:agent4", - "index": ".kibana", + "id": "agent1", + "index": ".fleet-agents", "source": { - "type": "fleet-agents", - "fleet-agents": { - "access_api_key_id": "api-key-4", - "active": true, - "policy_id": "policy1", - "type": "PERMANENT", - "local_metadata": {}, - "user_provided_metadata": {} - }, - "migrationVersion": { - "fleet-agents": "7.10.0" - } + "access_api_key_id": "api-key-1", + "active": true, + "policy_id": "policy1", + "type": "PERMANENT", + "local_metadata": {}, + "user_provided_metadata": {} } } } @@ -89,21 +17,15 @@ { "type": "doc", "value": { - "id": "fleet-enrollment-api-keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0", - "index": ".kibana", + "id": "agent2", + "index": ".fleet-agents", "source": { - "fleet-enrollment-api-keys" : { - "created_at" : "2019-10-10T16:31:12.518Z", - "name": "FleetEnrollmentKey:1", - "api_key_id" : "key", - "policy_id" : "policy1", - "active" : true - }, - "type" : "fleet-enrollment-api-keys", - "references": [], - "migrationVersion": { - "fleet-enrollment-api-keys": "7.10.0" - } + "access_api_key_id": "api-key-2", + "active": true, + "policy_id": "policy1", + "type": "PERMANENT", + "local_metadata": {}, + "user_provided_metadata": {} } } } @@ -111,21 +33,15 @@ { "type": "doc", "value": { - "id": "fleet-agent-events:event1", - "index": ".kibana", + "id": "agent3", + "index": ".fleet-agents", "source": { - "type": "fleet-agent-events", - "fleet-agent-events": { - "agent_id": "agent1", - "type": "STATE", - "subtype": "STARTED", - "message": "State changed from STOPPED to STARTED", - "payload": "{\"previous_state\": \"STOPPED\"}", - "timestamp": "2019-09-20T17:30:22.950Z" - }, - "migrationVersion": { - "fleet-agent-events": "7.10.0" - } + "access_api_key_id": "api-key-3", + "active": true, + "policy_id": "policy1", + "type": "PERMANENT", + "local_metadata": {}, + "user_provided_metadata": {} } } } @@ -133,18 +49,15 @@ { "type": "doc", "value": { - "id": "fleet-agent-events:event2", - "index": ".kibana", + "id": "agent4", + "index": ".fleet-agents", "source": { - "type": "fleet-agent-events", - "fleet-agent-events": { - "agent_id": "agent1", - "type": "STATE", - "subtype": "STOPPED", - "message": "State changed from RUNNING to STOPPED", - "payload": "{\"previous_state\": \"RUNNING\"}", - "timestamp": "2019-09-20T17:30:25.950Z" - } + "access_api_key_id": "api-key-4", + "active": true, + "policy_id": "policy1", + "type": "PERMANENT", + "local_metadata": {}, + "user_provided_metadata": {} } } } @@ -152,16 +65,14 @@ { "type": "doc", "value": { - "id": "fleet-agent-actions:37ed51ff-e80f-4f2a-a62d-f4fa975e7d85", - "index": ".kibana", + "id": "ed22ca17-e178-4cfe-8b02-54ea29fbd6d0", + "index": ".fleet-enrollment-api-keys", "source": { - "type": "fleet-agent-actions", - "fleet-agent-actions": { - "agent_id": "agent1", - "created_at": "2019-09-04T15:04:07+0000", - "type": "RESUME", - "sent_at": "2019-09-04T15:03:07+0000" - } + "created_at" : "2019-10-10T16:31:12.518Z", + "name": "FleetEnrollmentKey:1", + "api_key_id" : "key", + "policy_id" : "policy1", + "active" : true } } } diff --git a/x-pack/test/functional/es_archives/fleet/agents/mappings.json b/x-pack/test/functional/es_archives/fleet/agents/mappings.json index 936b34f2d8654..5b35fa05a51bf 100644 --- a/x-pack/test/functional/es_archives/fleet/agents/mappings.json +++ b/x-pack/test/functional/es_archives/fleet/agents/mappings.json @@ -3081,3 +3081,444 @@ } } } + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-actions": { + } + }, + "index": ".fleet-actions_1", + "mappings": { + "_meta": { + "migrationHash": "6527beea5a4a2f33acb599585ed4710442ece7f2" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "action_id": { + "type": "keyword" + }, + "agents": { + "type": "keyword" + }, + "data": { + "enabled": false, + "type": "object" + }, + "expiration": { + "type": "date" + }, + "input_type": { + "type": "keyword" + }, + "type": { + "type": "keyword" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-agents": { + } + }, + "index": ".fleet-agents_1", + "mappings": { + "_meta": { + "migrationHash": "87cab95ac988d78a78d0d66bbf05361b65dcbacf" + }, + "dynamic": "false", + "properties": { + "access_api_key_id": { + "type": "keyword" + }, + "action_seq_no": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "agent": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + }, + "default_api_key": { + "type": "keyword" + }, + "default_api_key_id": { + "type": "keyword" + }, + "enrolled_at": { + "type": "date" + }, + "last_checkin": { + "type": "date" + }, + "last_checkin_status": { + "type": "keyword" + }, + "last_updated": { + "type": "date" + }, + "local_metadata": { + "properties": { + "elastic": { + "properties": { + "agent": { + "properties": { + "build": { + "properties": { + "original": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "id": { + "type": "keyword" + }, + "log_level": { + "type": "keyword" + }, + "snapshot": { + "type": "boolean" + }, + "upgradeable": { + "type": "boolean" + }, + "version": { + "fields": { + "keyword": { + "ignore_above": 16, + "type": "keyword" + } + }, + "type": "text" + } + } + } + } + }, + "host": { + "properties": { + "architecture": { + "type": "keyword" + }, + "hostname": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + }, + "id": { + "type": "keyword" + }, + "ip": { + "fields": { + "keyword": { + "ignore_above": 64, + "type": "keyword" + } + }, + "type": "text" + }, + "mac": { + "fields": { + "keyword": { + "ignore_above": 17, + "type": "keyword" + } + }, + "type": "text" + }, + "name": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "os": { + "properties": { + "family": { + "type": "keyword" + }, + "full": { + "fields": { + "keyword": { + "ignore_above": 128, + "type": "keyword" + } + }, + "type": "text" + }, + "kernel": { + "fields": { + "keyword": { + "ignore_above": 128, + "type": "keyword" + } + }, + "type": "text" + }, + "name": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + }, + "platform": { + "type": "keyword" + }, + "version": { + "fields": { + "keyword": { + "ignore_above": 32, + "type": "keyword" + } + }, + "type": "text" + } + } + } + } + }, + "packages": { + "type": "keyword" + }, + "policy_coordinator_idx": { + "type": "integer" + }, + "policy_id": { + "type": "keyword" + }, + "policy_revision_idx": { + "type": "integer" + }, + "shared_id": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "unenrolled_at": { + "type": "date" + }, + "unenrollment_started_at": { + "type": "date" + }, + "updated_at": { + "type": "date" + }, + "upgrade_started_at": { + "type": "date" + }, + "upgraded_at": { + "type": "date" + }, + "user_provided_metadata": { + "enabled": false, + "type": "object" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-enrollment-api-keys": { + } + }, + "index": ".fleet-enrollment-api-keys_1", + "mappings": { + "_meta": { + "migrationHash": "06bef724726f3bea9f474a09be0a7f7881c28d4a" + }, + "dynamic": "false", + "properties": { + "active": { + "type": "boolean" + }, + "api_key": { + "type": "keyword" + }, + "api_key_id": { + "type": "keyword" + }, + "created_at": { + "type": "date" + }, + "expire_at": { + "type": "date" + }, + "name": { + "type": "keyword" + }, + "policy_id": { + "type": "keyword" + }, + "updated_at": { + "type": "date" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-policies": { + } + }, + "index": ".fleet-policies_1", + "mappings": { + "_meta": { + "migrationHash": "c2c2a49b19562942fa7c1ff1537e66e751cdb4fa" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "coordinator_idx": { + "type": "integer" + }, + "data": { + "enabled": false, + "type": "object" + }, + "default_fleet_server": { + "type": "boolean" + }, + "policy_id": { + "type": "keyword" + }, + "revision_idx": { + "type": "integer" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-servers": { + } + }, + "index": ".fleet-servers_1", + "mappings": { + "_meta": { + "migrationHash": "e2782448c7235ec9af66ca7997e867d715ac379c" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "agent": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + }, + "host": { + "properties": { + "architecture": { + "type": "keyword" + }, + "id": { + "type": "keyword" + }, + "ip": { + "type": "keyword" + }, + "name": { + "type": "keyword" + } + } + }, + "server": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} diff --git a/x-pack/test/functional/es_archives/fleet/empty_fleet_server/mappings.json b/x-pack/test/functional/es_archives/fleet/empty_fleet_server/mappings.json new file mode 100644 index 0000000000000..73f090b6103dc --- /dev/null +++ b/x-pack/test/functional/es_archives/fleet/empty_fleet_server/mappings.json @@ -0,0 +1,440 @@ +{ + "type": "index", + "value": { + "aliases": { + ".fleet-actions": { + } + }, + "index": ".fleet-actions_1", + "mappings": { + "_meta": { + "migrationHash": "6527beea5a4a2f33acb599585ed4710442ece7f2" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "action_id": { + "type": "keyword" + }, + "agents": { + "type": "keyword" + }, + "data": { + "enabled": false, + "type": "object" + }, + "expiration": { + "type": "date" + }, + "input_type": { + "type": "keyword" + }, + "type": { + "type": "keyword" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-agents": { + } + }, + "index": ".fleet-agents_1", + "mappings": { + "_meta": { + "migrationHash": "87cab95ac988d78a78d0d66bbf05361b65dcbacf" + }, + "dynamic": "false", + "properties": { + "access_api_key_id": { + "type": "keyword" + }, + "action_seq_no": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "agent": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + }, + "default_api_key": { + "type": "keyword" + }, + "default_api_key_id": { + "type": "keyword" + }, + "enrolled_at": { + "type": "date" + }, + "last_checkin": { + "type": "date" + }, + "last_checkin_status": { + "type": "keyword" + }, + "last_updated": { + "type": "date" + }, + "local_metadata": { + "properties": { + "elastic": { + "properties": { + "agent": { + "properties": { + "build": { + "properties": { + "original": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "id": { + "type": "keyword" + }, + "log_level": { + "type": "keyword" + }, + "snapshot": { + "type": "boolean" + }, + "upgradeable": { + "type": "boolean" + }, + "version": { + "fields": { + "keyword": { + "ignore_above": 16, + "type": "keyword" + } + }, + "type": "text" + } + } + } + } + }, + "host": { + "properties": { + "architecture": { + "type": "keyword" + }, + "hostname": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + }, + "id": { + "type": "keyword" + }, + "ip": { + "fields": { + "keyword": { + "ignore_above": 64, + "type": "keyword" + } + }, + "type": "text" + }, + "mac": { + "fields": { + "keyword": { + "ignore_above": 17, + "type": "keyword" + } + }, + "type": "text" + }, + "name": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "os": { + "properties": { + "family": { + "type": "keyword" + }, + "full": { + "fields": { + "keyword": { + "ignore_above": 128, + "type": "keyword" + } + }, + "type": "text" + }, + "kernel": { + "fields": { + "keyword": { + "ignore_above": 128, + "type": "keyword" + } + }, + "type": "text" + }, + "name": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, + "type": "text" + }, + "platform": { + "type": "keyword" + }, + "version": { + "fields": { + "keyword": { + "ignore_above": 32, + "type": "keyword" + } + }, + "type": "text" + } + } + } + } + }, + "packages": { + "type": "keyword" + }, + "policy_coordinator_idx": { + "type": "integer" + }, + "policy_id": { + "type": "keyword" + }, + "policy_revision_idx": { + "type": "integer" + }, + "shared_id": { + "type": "keyword" + }, + "type": { + "type": "keyword" + }, + "unenrolled_at": { + "type": "date" + }, + "unenrollment_started_at": { + "type": "date" + }, + "updated_at": { + "type": "date" + }, + "upgrade_started_at": { + "type": "date" + }, + "upgraded_at": { + "type": "date" + }, + "user_provided_metadata": { + "enabled": false, + "type": "object" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-enrollment-api-keys": { + } + }, + "index": ".fleet-enrollment-api-keys_1", + "mappings": { + "_meta": { + "migrationHash": "06bef724726f3bea9f474a09be0a7f7881c28d4a" + }, + "dynamic": "false", + "properties": { + "active": { + "type": "boolean" + }, + "api_key": { + "type": "keyword" + }, + "api_key_id": { + "type": "keyword" + }, + "created_at": { + "type": "date" + }, + "expire_at": { + "type": "date" + }, + "name": { + "type": "keyword" + }, + "policy_id": { + "type": "keyword" + }, + "updated_at": { + "type": "date" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-policies": { + } + }, + "index": ".fleet-policies_1", + "mappings": { + "_meta": { + "migrationHash": "c2c2a49b19562942fa7c1ff1537e66e751cdb4fa" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "coordinator_idx": { + "type": "integer" + }, + "data": { + "enabled": false, + "type": "object" + }, + "default_fleet_server": { + "type": "boolean" + }, + "policy_id": { + "type": "keyword" + }, + "revision_idx": { + "type": "integer" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "aliases": { + ".fleet-servers": { + } + }, + "index": ".fleet-servers_1", + "mappings": { + "_meta": { + "migrationHash": "e2782448c7235ec9af66ca7997e867d715ac379c" + }, + "dynamic": "false", + "properties": { + "@timestamp": { + "type": "date" + }, + "agent": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + }, + "host": { + "properties": { + "architecture": { + "type": "keyword" + }, + "id": { + "type": "keyword" + }, + "ip": { + "type": "keyword" + }, + "name": { + "type": "keyword" + } + } + }, + "server": { + "properties": { + "id": { + "type": "keyword" + }, + "version": { + "type": "keyword" + } + } + } + } + }, + "settings": { + "index": { + "number_of_replicas": "1", + "number_of_shards": "1" + } + } + } +} diff --git a/yarn.lock b/yarn.lock index 483a0c9be966f..5618111cc558e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23741,10 +23741,10 @@ react-universal-interface@^0.6.2: resolved "https://registry.yarnpkg.com/react-universal-interface/-/react-universal-interface-0.6.2.tgz#5e8d438a01729a4dbbcbeeceb0b86be146fe2b3b" integrity sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw== -react-use@^15.3.4: - version "15.3.4" - resolved "https://registry.yarnpkg.com/react-use/-/react-use-15.3.4.tgz#f853d310bd71f75b38900a8caa3db93f6dc6e872" - integrity sha512-cHq1dELW6122oi1+xX7lwNyE/ugZs5L902BuO8eFJCfn2api1KeuPVG1M/GJouVARoUf54S2dYFMKo5nQXdTag== +react-use@^15.3.8: + version "15.3.8" + resolved "https://registry.yarnpkg.com/react-use/-/react-use-15.3.8.tgz#ca839ac7fb3d696e5ccbeabbc8dadc2698969d30" + integrity sha512-GeGcrmGuUvZrY5wER3Lnph9DSYhZt5nEjped4eKDq8BRGr2CnLf9bDQWG9RFc7oCPphnscUUdOovzq0E5F2c6Q== dependencies: "@types/js-cookie" "2.2.6" "@xobotyi/scrollbar-width" "1.9.5"