From bf40e560e793457eed0eb9cd72f2308a4028c5bd Mon Sep 17 00:00:00 2001 From: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:09:34 +0100 Subject: [PATCH] [Authz] Types cleanup for AuthorizationServiceSetup (#204208) ## Summary Types cleanup for AuthorizationServiceSetup. __Relates: https://github.com/elastic/kibana/issues/196271__ --- x-pack/packages/security/plugin_types_server/src/plugin.ts | 2 +- x-pack/plugins/security/server/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/packages/security/plugin_types_server/src/plugin.ts b/x-pack/packages/security/plugin_types_server/src/plugin.ts index c834dc46225f..7d37935ab760 100644 --- a/x-pack/packages/security/plugin_types_server/src/plugin.ts +++ b/x-pack/packages/security/plugin_types_server/src/plugin.ts @@ -45,7 +45,7 @@ export interface SecurityPluginStart { /** * Authorization services to manage and access the permissions a particular user has. */ - authz: Omit; + authz: AuthorizationServiceSetup; /** * User profiles services to retrieve user profiles. * diff --git a/x-pack/plugins/security/server/plugin.ts b/x-pack/plugins/security/server/plugin.ts index 119dbcef1342..f0a218b8424b 100644 --- a/x-pack/plugins/security/server/plugin.ts +++ b/x-pack/plugins/security/server/plugin.ts @@ -80,7 +80,7 @@ export interface SecurityPluginSetup extends SecurityPluginSetupWithoutDeprecate /** * @deprecated Use `authz` methods from the `SecurityServiceStart` contract instead. */ - authz: Omit; + authz: AuthorizationServiceSetup; } export interface PluginSetupDependencies {