import type ClientScopeRepresentation from "../defs/clientScopeRepresentation.js"; import Resource from "./resource.js"; import type { KeycloakAdminClient } from "../client.js"; import type ProtocolMapperRepresentation from "../defs/protocolMapperRepresentation.js"; import type MappingsRepresentation from "../defs/mappingsRepresentation.js"; import type RoleRepresentation from "../defs/roleRepresentation.js"; export declare class ClientScopes extends Resource<{ realm?: string; }> { find: (payload?: { realm?: string; } | undefined, options?: Pick) => Promise; create: (payload?: (ClientScopeRepresentation & { realm?: string; }) | undefined, options?: Pick) => Promise<{ id: string; }>; /** * Client-Scopes by id */ findOne: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; update: (query: { id: string; } & { realm?: string; }, payload: ClientScopeRepresentation) => Promise; del: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; /** * Default Client-Scopes */ listDefaultClientScopes: (payload?: (void & { realm?: string; }) | undefined, options?: Pick) => Promise; addDefaultClientScope: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; delDefaultClientScope: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; /** * Default Optional Client-Scopes */ listDefaultOptionalClientScopes: (payload?: (void & { realm?: string; }) | undefined, options?: Pick) => Promise; addDefaultOptionalClientScope: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; delDefaultOptionalClientScope: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; /** * Protocol Mappers */ addMultipleProtocolMappers: (query: { id: string; } & { realm?: string; }, payload: ProtocolMapperRepresentation[]) => Promise; addProtocolMapper: (query: { id: string; } & { realm?: string; }, payload: ProtocolMapperRepresentation) => Promise; listProtocolMappers: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; findProtocolMapper: (payload?: ({ id: string; mapperId: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; findProtocolMappersByProtocol: (payload?: ({ id: string; protocol: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; updateProtocolMapper: (query: { id: string; mapperId: string; } & { realm?: string; }, payload: ProtocolMapperRepresentation) => Promise; delProtocolMapper: (payload?: ({ id: string; mapperId: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; /** * Scope Mappings */ listScopeMappings: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; addClientScopeMappings: (query: { id: string; client: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; listClientScopeMappings: (payload?: ({ id: string; client: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; listAvailableClientScopeMappings: (payload?: ({ id: string; client: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; listCompositeClientScopeMappings: (payload?: ({ id: string; client: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; delClientScopeMappings: (query: { id: string; client: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; addRealmScopeMappings: (query: { id: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; listRealmScopeMappings: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; listAvailableRealmScopeMappings: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; listCompositeRealmScopeMappings: (payload?: ({ id: string; } & { realm?: string; }) | undefined, options?: Pick) => Promise; delRealmScopeMappings: (query: { id: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; constructor(client: KeycloakAdminClient); /** * Find client scope by name. */ findOneByName(payload: { realm?: string; name: string; }): Promise; /** * Delete client scope by name. */ delByName(payload: { realm?: string; name: string; }): Promise; /** * Find single protocol mapper by name. */ findProtocolMapperByName(payload: { realm?: string; id: string; name: string; }): Promise; }