@keycloak/keycloak-admin-client 16.0.0-dev.15 → 16.0.0-dev.19
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/README.md +4 -0
- package/lib/defs/clientPoliciesRepresentation.d.ts +4 -0
- package/lib/defs/clientPoliciesRepresentation.js +3 -0
- package/lib/defs/clientPoliciesRepresentation.js.map +1 -0
- package/lib/defs/clientPolicyConditionRepresentation.d.ts +4 -0
- package/lib/defs/clientPolicyConditionRepresentation.js +3 -0
- package/lib/defs/clientPolicyConditionRepresentation.js.map +1 -0
- package/lib/defs/clientPolicyRepresentation.d.ts +8 -0
- package/lib/defs/clientPolicyRepresentation.js +3 -0
- package/lib/defs/clientPolicyRepresentation.js.map +1 -0
- package/lib/resources/clientPolicies.d.ts +7 -0
- package/lib/resources/clientPolicies.js +8 -0
- package/lib/resources/clientPolicies.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -119,6 +119,10 @@ Demo code: https://github.com/keycloak/keycloak-nodejs-admin-client/blob/master/
|
|
|
119
119
|
- Get admin events (`GET /{realm}/admin-events`)
|
|
120
120
|
- Remove all user sessions (`POST /{realm}/logout-all`)
|
|
121
121
|
- Remove a specific user session (`DELETE /{realm}/sessions/{session}`)
|
|
122
|
+
- Get client policies policies (`GET /{realm}/client-policies/policies`)
|
|
123
|
+
- Update client policies policies (`PUT /{realm}/client-policies/policies`)
|
|
124
|
+
- Get client policies profiles (`GET /{realm}/client-policies/profiles`)
|
|
125
|
+
- Update client policies profiles (`PUT /{realm}/client-policies/profiles`)
|
|
122
126
|
|
|
123
127
|
### [Role](https://www.keycloak.org/docs-api/11.0/rest-api/index.html#_roles_resource)
|
|
124
128
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientPoliciesRepresentation.js","sourceRoot":"","sources":["../../src/defs/clientPoliciesRepresentation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientPolicyConditionRepresentation.js","sourceRoot":"","sources":["../../src/defs/clientPolicyConditionRepresentation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ClientPolicyConditionRepresentation from './clientPolicyConditionRepresentation';
|
|
2
|
+
export default interface ClientPolicyRepresentation {
|
|
3
|
+
conditions?: ClientPolicyConditionRepresentation[];
|
|
4
|
+
description?: string;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
profiles?: string[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientPolicyRepresentation.js","sourceRoot":"","sources":["../../src/defs/clientPolicyRepresentation.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Resource from './resource';
|
|
2
2
|
import { KeycloakAdminClient } from '../client';
|
|
3
3
|
import ClientProfilesRepresentation from '../defs/clientProfilesRepresentation';
|
|
4
|
+
import ClientPoliciesRepresentation from '../defs/clientPoliciesRepresentation';
|
|
4
5
|
export declare class ClientPolicies extends Resource<{
|
|
5
6
|
realm?: string;
|
|
6
7
|
}> {
|
|
@@ -10,4 +11,10 @@ export declare class ClientPolicies extends Resource<{
|
|
|
10
11
|
} & {
|
|
11
12
|
realm?: string;
|
|
12
13
|
}) => Promise<ClientProfilesRepresentation>;
|
|
14
|
+
createProfiles: (payload?: ClientProfilesRepresentation & {
|
|
15
|
+
realm?: string;
|
|
16
|
+
}) => Promise<void>;
|
|
17
|
+
listPolicies: (payload?: void & {
|
|
18
|
+
realm?: string;
|
|
19
|
+
}) => Promise<ClientPoliciesRepresentation>;
|
|
13
20
|
}
|
|
@@ -38,6 +38,14 @@ var ClientPolicies = (function (_super) {
|
|
|
38
38
|
includeGlobalProfiles: 'include-global-profiles'
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
+
_this.createProfiles = _this.makeRequest({
|
|
42
|
+
method: 'PUT',
|
|
43
|
+
path: '/profiles'
|
|
44
|
+
});
|
|
45
|
+
_this.listPolicies = _this.makeRequest({
|
|
46
|
+
method: 'GET',
|
|
47
|
+
path: '/policies'
|
|
48
|
+
});
|
|
41
49
|
return _this;
|
|
42
50
|
}
|
|
43
51
|
return ClientPolicies;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientPolicies.js","sourceRoot":"","sources":["../../src/resources/clientPolicies.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wDAAkC;
|
|
1
|
+
{"version":3,"file":"clientPolicies.js","sourceRoot":"","sources":["../../src/resources/clientPolicies.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wDAAkC;AAQlC;IAAoC,kCAA0B;IAC5D,wBAAY,MAA2B;QAAvC,YACE,kBAAM,MAAM,EAAE;YACZ,IAAI,EAAE,uCAAuC;YAC7C,YAAY,EAAE,cAAM,OAAA,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC,SAAS;aACxB,CAAC,EAFkB,CAElB;YACF,UAAU,EAAE,cAAM,OAAA,MAAM,CAAC,OAAO,EAAd,CAAc;SACjC,CAAC,SACH;QAIM,kBAAY,GAAG,KAAI,CAAC,WAAW,CAGpC;YACA,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,CAAC,yBAAyB,CAAC;YAC3C,YAAY,EAAE;gBACZ,qBAAqB,EAAE,yBAAyB;aACjD;SACF,CAAC,CAAC;QAEI,oBAAc,GAAG,KAAI,CAAC,WAAW,CAAqC;YAC3E,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;QAII,kBAAY,GAAG,KAAI,CAAC,WAAW,CAAqC;YACzE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;;IA1BH,CAAC;IA2BH,qBAAC;AAAD,CAAC,AApCD,CAAoC,qBAAQ,GAoC3C;AApCY,wCAAc"}
|