@keycloak/keycloak-admin-client 22.0.3 → 22.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/defs/featureRepresentation.d.ts +15 -0
- package/lib/defs/featureRepresentation.js +9 -0
- package/lib/defs/serverInfoRepesentation.d.ts +2 -0
- package/lib/defs/userProfileConfig.d.ts +1 -2
- package/lib/defs/userProfileMetadata.d.ts +19 -0
- package/lib/defs/userProfileMetadata.js +1 -0
- package/lib/defs/userRepresentation.d.ts +3 -3
- package/lib/resources/users.d.ts +12 -8
- package/lib/resources/users.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default interface FeatureRepresentation {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type: FeatureType;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
dependencies: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare enum FeatureType {
|
|
9
|
+
Default = "DEFAULT",
|
|
10
|
+
DisabledByDefault = "DISABLED_BY_DEFAULT",
|
|
11
|
+
Preview = "PREVIEW",
|
|
12
|
+
PreviewDisabledByDefault = "PREVIEW_DISABLED_BY_DEFAULT",
|
|
13
|
+
Experimental = "EXPERIMENTAL",
|
|
14
|
+
Deprecated = "DEPRECATED"
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var FeatureType;
|
|
2
|
+
(function (FeatureType) {
|
|
3
|
+
FeatureType["Default"] = "DEFAULT";
|
|
4
|
+
FeatureType["DisabledByDefault"] = "DISABLED_BY_DEFAULT";
|
|
5
|
+
FeatureType["Preview"] = "PREVIEW";
|
|
6
|
+
FeatureType["PreviewDisabledByDefault"] = "PREVIEW_DISABLED_BY_DEFAULT";
|
|
7
|
+
FeatureType["Experimental"] = "EXPERIMENTAL";
|
|
8
|
+
FeatureType["Deprecated"] = "DEPRECATED";
|
|
9
|
+
})(FeatureType || (FeatureType = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type ComponentTypeRepresentation from "./componentTypeRepresentation.js";
|
|
2
2
|
import type { ConfigPropertyRepresentation } from "./configPropertyRepresentation.js";
|
|
3
|
+
import FeatureRepresentation from "./featureRepresentation.js";
|
|
3
4
|
import type PasswordPolicyTypeRepresentation from "./passwordPolicyTypeRepresentation.js";
|
|
4
5
|
import type ProfileInfoRepresentation from "./profileInfoRepresentation.js";
|
|
5
6
|
import type ProtocolMapperRepresentation from "./protocolMapperRepresentation.js";
|
|
@@ -11,6 +12,7 @@ export interface ServerInfoRepresentation {
|
|
|
11
12
|
systemInfo?: SystemInfoRepresentation;
|
|
12
13
|
memoryInfo?: MemoryInfoRepresentation;
|
|
13
14
|
profileInfo?: ProfileInfoRepresentation;
|
|
15
|
+
features?: FeatureRepresentation[];
|
|
14
16
|
cryptoInfo?: CryptoInfoRepresentation;
|
|
15
17
|
themes?: {
|
|
16
18
|
[index: string]: ThemeInfoRepresentation[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface UserProfileConfig {
|
|
2
2
|
attributes?: UserProfileAttribute[];
|
|
3
3
|
groups?: UserProfileGroup[];
|
|
4
4
|
}
|
|
@@ -7,7 +7,6 @@ export interface UserProfileAttribute {
|
|
|
7
7
|
validations?: Record<string, Record<string, unknown>>;
|
|
8
8
|
annotations?: Record<string, unknown>;
|
|
9
9
|
required?: UserProfileAttributeRequired;
|
|
10
|
-
readOnly?: boolean;
|
|
11
10
|
permissions?: UserProfileAttributePermissions;
|
|
12
11
|
selector?: UserProfileAttributeSelector;
|
|
13
12
|
displayName?: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface UserProfileMetadata {
|
|
2
|
+
attributes?: UserProfileAttributeMetadata[];
|
|
3
|
+
groups?: UserProfileAttributeGroupMetadata[];
|
|
4
|
+
}
|
|
5
|
+
export interface UserProfileAttributeMetadata {
|
|
6
|
+
name?: string;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
group?: string;
|
|
11
|
+
annotations?: Record<string, unknown>;
|
|
12
|
+
validators?: Record<string, Record<string, unknown>>;
|
|
13
|
+
}
|
|
14
|
+
export interface UserProfileAttributeGroupMetadata {
|
|
15
|
+
name?: string;
|
|
16
|
+
displayHeader?: string;
|
|
17
|
+
displayDescription?: string;
|
|
18
|
+
annotations?: Record<string, unknown>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type UserConsentRepresentation from "./userConsentRepresentation.js";
|
|
2
1
|
import type CredentialRepresentation from "./credentialRepresentation.js";
|
|
3
2
|
import type FederatedIdentityRepresentation from "./federatedIdentityRepresentation.js";
|
|
4
3
|
import type { RequiredActionAlias } from "./requiredActionProviderRepresentation.js";
|
|
5
|
-
import type
|
|
4
|
+
import type UserConsentRepresentation from "./userConsentRepresentation.js";
|
|
5
|
+
import type { UserProfileMetadata } from "./userProfileMetadata.js";
|
|
6
6
|
export default interface UserRepresentation {
|
|
7
7
|
id?: string;
|
|
8
8
|
createdTimestamp?: number;
|
|
@@ -28,5 +28,5 @@ export default interface UserRepresentation {
|
|
|
28
28
|
realmRoles?: string[];
|
|
29
29
|
self?: string;
|
|
30
30
|
serviceAccountClientId?: string;
|
|
31
|
-
userProfileMetadata?:
|
|
31
|
+
userProfileMetadata?: UserProfileMetadata;
|
|
32
32
|
}
|
package/lib/resources/users.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import Resource from "./resource.js";
|
|
2
|
-
import type UserRepresentation from "../defs/userRepresentation.js";
|
|
3
|
-
import type UserConsentRepresentation from "../defs/userConsentRepresentation.js";
|
|
4
|
-
import type UserSessionRepresentation from "../defs/userSessionRepresentation.js";
|
|
5
1
|
import type { KeycloakAdminClient } from "../client.js";
|
|
2
|
+
import type CredentialRepresentation from "../defs/credentialRepresentation.js";
|
|
3
|
+
import type FederatedIdentityRepresentation from "../defs/federatedIdentityRepresentation.js";
|
|
4
|
+
import type GroupRepresentation from "../defs/groupRepresentation.js";
|
|
6
5
|
import type MappingsRepresentation from "../defs/mappingsRepresentation.js";
|
|
7
6
|
import type RoleRepresentation from "../defs/roleRepresentation.js";
|
|
8
7
|
import type { RoleMappingPayload } from "../defs/roleRepresentation.js";
|
|
9
|
-
import type
|
|
10
|
-
import type
|
|
11
|
-
import type
|
|
12
|
-
import type
|
|
8
|
+
import type UserConsentRepresentation from "../defs/userConsentRepresentation.js";
|
|
9
|
+
import type { UserProfileConfig } from "../defs/userProfileConfig.js";
|
|
10
|
+
import type { UserProfileMetadata } from "../defs/userProfileMetadata.js";
|
|
11
|
+
import type UserRepresentation from "../defs/userRepresentation.js";
|
|
12
|
+
import type UserSessionRepresentation from "../defs/userSessionRepresentation.js";
|
|
13
|
+
import Resource from "./resource.js";
|
|
13
14
|
interface SearchQuery {
|
|
14
15
|
search?: string;
|
|
15
16
|
}
|
|
@@ -66,6 +67,9 @@ export declare class Users extends Resource<{
|
|
|
66
67
|
updateProfile: (payload?: (UserProfileConfig & {
|
|
67
68
|
realm?: string | undefined;
|
|
68
69
|
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileConfig>;
|
|
70
|
+
getProfileMetadata: (payload?: {
|
|
71
|
+
realm?: string | undefined;
|
|
72
|
+
} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileMetadata>;
|
|
69
73
|
/**
|
|
70
74
|
* role mappings
|
|
71
75
|
*/
|
package/lib/resources/users.js
CHANGED