@keycloak/keycloak-admin-client 19.0.0-dev.4 → 19.0.0-dev.41

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.
Files changed (165) hide show
  1. package/README.md +11 -11
  2. package/lib/client.d.ts +24 -22
  3. package/lib/client.js +68 -181
  4. package/lib/client.js.map +1 -1
  5. package/lib/defs/AccessTokenAccess.js +1 -2
  6. package/lib/defs/PermissonRepresentation.js +1 -2
  7. package/lib/defs/accessTokenCertConf.js +1 -2
  8. package/lib/defs/accessTokenRepresentation.d.ts +4 -4
  9. package/lib/defs/accessTokenRepresentation.js +1 -2
  10. package/lib/defs/addressClaimSet.js +1 -2
  11. package/lib/defs/adminEventRepresentation.d.ts +1 -1
  12. package/lib/defs/adminEventRepresentation.js +1 -2
  13. package/lib/defs/authDetailsRepresentation.js +1 -2
  14. package/lib/defs/authenticationExecutionExportRepresentation.js +1 -2
  15. package/lib/defs/authenticationExecutionInfoRepresentation.js +1 -2
  16. package/lib/defs/authenticationFlowRepresentation.d.ts +1 -1
  17. package/lib/defs/authenticationFlowRepresentation.js +1 -2
  18. package/lib/defs/authenticatorConfigInfoRepresentation.js +1 -2
  19. package/lib/defs/authenticatorConfigRepresentation.js +1 -2
  20. package/lib/defs/certificateRepresentation.js +1 -2
  21. package/lib/defs/clientInitialAccessPresentation.js +1 -2
  22. package/lib/defs/clientPoliciesRepresentation.d.ts +1 -1
  23. package/lib/defs/clientPoliciesRepresentation.js +1 -2
  24. package/lib/defs/clientPolicyConditionRepresentation.js +1 -2
  25. package/lib/defs/clientPolicyExecutorRepresentation.js +1 -2
  26. package/lib/defs/clientPolicyRepresentation.d.ts +1 -1
  27. package/lib/defs/clientPolicyRepresentation.js +1 -2
  28. package/lib/defs/clientProfileRepresentation.d.ts +1 -1
  29. package/lib/defs/clientProfileRepresentation.js +1 -2
  30. package/lib/defs/clientProfilesRepresentation.d.ts +1 -1
  31. package/lib/defs/clientProfilesRepresentation.js +1 -2
  32. package/lib/defs/clientRepresentation.d.ts +3 -2
  33. package/lib/defs/clientRepresentation.js +1 -2
  34. package/lib/defs/clientScopeRepresentation.d.ts +1 -1
  35. package/lib/defs/clientScopeRepresentation.js +1 -2
  36. package/lib/defs/componentExportRepresentation.js +1 -2
  37. package/lib/defs/componentRepresentation.js +1 -2
  38. package/lib/defs/componentTypeRepresentation.d.ts +1 -1
  39. package/lib/defs/componentTypeRepresentation.js +1 -2
  40. package/lib/defs/configPropertyRepresentation.js +1 -2
  41. package/lib/defs/credentialRepresentation.js +1 -2
  42. package/lib/defs/evaluationResultRepresentation.d.ts +4 -4
  43. package/lib/defs/evaluationResultRepresentation.js +1 -2
  44. package/lib/defs/eventRepresentation.d.ts +1 -1
  45. package/lib/defs/eventRepresentation.js +1 -2
  46. package/lib/defs/eventTypes.js +1 -2
  47. package/lib/defs/federatedIdentityRepresentation.js +1 -2
  48. package/lib/defs/globalRequestResult.js +1 -2
  49. package/lib/defs/groupRepresentation.js +1 -2
  50. package/lib/defs/identityProviderMapperRepresentation.js +1 -2
  51. package/lib/defs/identityProviderMapperTypeRepresentation.d.ts +1 -1
  52. package/lib/defs/identityProviderMapperTypeRepresentation.js +1 -2
  53. package/lib/defs/identityProviderRepresentation.js +1 -2
  54. package/lib/defs/keyMetadataRepresentation.js +1 -2
  55. package/lib/defs/keystoreConfig.js +1 -2
  56. package/lib/defs/managementPermissionReference.js +1 -2
  57. package/lib/defs/mappingsRepresentation.d.ts +1 -1
  58. package/lib/defs/mappingsRepresentation.js +1 -2
  59. package/lib/defs/passwordPolicyTypeRepresentation.js +1 -2
  60. package/lib/defs/policyEvaluationResponse.d.ts +3 -3
  61. package/lib/defs/policyEvaluationResponse.js +1 -2
  62. package/lib/defs/policyProviderRepresentation.js +1 -2
  63. package/lib/defs/policyRepresentation.js +6 -9
  64. package/lib/defs/policyRepresentation.js.map +1 -1
  65. package/lib/defs/policyResultRepresentation.d.ts +2 -1
  66. package/lib/defs/policyResultRepresentation.js +1 -2
  67. package/lib/defs/profileInfoRepresentation.js +1 -2
  68. package/lib/defs/protocolMapperRepresentation.js +1 -2
  69. package/lib/defs/realmEventsConfigRepresentation.js +1 -2
  70. package/lib/defs/realmRepresentation.d.ts +15 -10
  71. package/lib/defs/realmRepresentation.js +1 -2
  72. package/lib/defs/requiredActionProviderRepresentation.js +2 -5
  73. package/lib/defs/requiredActionProviderRepresentation.js.map +1 -1
  74. package/lib/defs/requiredActionProviderSimpleRepresentation.js +1 -2
  75. package/lib/defs/resourceEvaluation.d.ts +1 -1
  76. package/lib/defs/resourceEvaluation.js +1 -2
  77. package/lib/defs/resourceRepresentation.d.ts +2 -2
  78. package/lib/defs/resourceRepresentation.js +1 -2
  79. package/lib/defs/resourceServerRepresentation.d.ts +3 -3
  80. package/lib/defs/resourceServerRepresentation.js +1 -2
  81. package/lib/defs/roleRepresentation.js +1 -2
  82. package/lib/defs/rolesRepresentation.d.ts +1 -1
  83. package/lib/defs/rolesRepresentation.js +1 -2
  84. package/lib/defs/scopeRepresentation.d.ts +2 -2
  85. package/lib/defs/scopeRepresentation.js +1 -2
  86. package/lib/defs/serverInfoRepesentation.d.ts +7 -7
  87. package/lib/defs/serverInfoRepesentation.js +1 -2
  88. package/lib/defs/synchronizationResultRepresentation.js +1 -2
  89. package/lib/defs/systemInfoRepersantation.js +1 -2
  90. package/lib/defs/testLdapConnection.js +1 -2
  91. package/lib/defs/userConsentRepresentation.js +1 -2
  92. package/lib/defs/userProfileConfig.js +1 -2
  93. package/lib/defs/userRepresentation.d.ts +5 -5
  94. package/lib/defs/userRepresentation.js +1 -2
  95. package/lib/defs/userSessionRepresentation.js +1 -2
  96. package/lib/defs/whoAmIRepresentation.js +1 -2
  97. package/lib/index.d.ts +2 -2
  98. package/lib/index.js +4 -7
  99. package/lib/index.js.map +1 -1
  100. package/lib/resources/agent.d.ts +2 -2
  101. package/lib/resources/agent.js +115 -193
  102. package/lib/resources/agent.js.map +1 -1
  103. package/lib/resources/attackDetection.d.ts +5 -5
  104. package/lib/resources/attackDetection.js +16 -41
  105. package/lib/resources/attackDetection.js.map +1 -1
  106. package/lib/resources/authenticationManagement.d.ts +36 -35
  107. package/lib/resources/authenticationManagement.js +72 -97
  108. package/lib/resources/authenticationManagement.js.map +1 -1
  109. package/lib/resources/cache.d.ts +3 -3
  110. package/lib/resources/cache.js +12 -37
  111. package/lib/resources/cache.js.map +1 -1
  112. package/lib/resources/clientPolicies.d.ts +9 -9
  113. package/lib/resources/clientPolicies.js +19 -44
  114. package/lib/resources/clientPolicies.js.map +1 -1
  115. package/lib/resources/clientScopes.d.ts +29 -27
  116. package/lib/resources/clientScopes.js +92 -185
  117. package/lib/resources/clientScopes.js.map +1 -1
  118. package/lib/resources/clients.d.ts +98 -92
  119. package/lib/resources/clients.js +228 -309
  120. package/lib/resources/clients.js.map +1 -1
  121. package/lib/resources/components.d.ts +9 -9
  122. package/lib/resources/components.js +22 -47
  123. package/lib/resources/components.js.map +1 -1
  124. package/lib/resources/groups.d.ts +26 -25
  125. package/lib/resources/groups.js +53 -78
  126. package/lib/resources/groups.js.map +1 -1
  127. package/lib/resources/identityProviders.d.ts +19 -19
  128. package/lib/resources/identityProviders.js +40 -65
  129. package/lib/resources/identityProviders.js.map +1 -1
  130. package/lib/resources/realms.d.ts +44 -39
  131. package/lib/resources/realms.js +78 -98
  132. package/lib/resources/realms.js.map +1 -1
  133. package/lib/resources/resource.d.ts +3 -3
  134. package/lib/resources/resource.js +12 -26
  135. package/lib/resources/resource.js.map +1 -1
  136. package/lib/resources/roles.d.ts +16 -16
  137. package/lib/resources/roles.js +42 -67
  138. package/lib/resources/roles.js.map +1 -1
  139. package/lib/resources/serverInfo.d.ts +4 -4
  140. package/lib/resources/serverInfo.js +9 -34
  141. package/lib/resources/serverInfo.js.map +1 -1
  142. package/lib/resources/sessions.d.ts +3 -3
  143. package/lib/resources/sessions.js +12 -37
  144. package/lib/resources/sessions.js.map +1 -1
  145. package/lib/resources/userStorageProvider.d.ts +8 -8
  146. package/lib/resources/userStorageProvider.js +20 -45
  147. package/lib/resources/userStorageProvider.js.map +1 -1
  148. package/lib/resources/users.d.ts +56 -51
  149. package/lib/resources/users.js +100 -120
  150. package/lib/resources/users.js.map +1 -1
  151. package/lib/resources/whoAmI.d.ts +4 -4
  152. package/lib/resources/whoAmI.js +12 -37
  153. package/lib/resources/whoAmI.js.map +1 -1
  154. package/lib/utils/auth.js +30 -82
  155. package/lib/utils/auth.js.map +1 -1
  156. package/lib/utils/constants.d.ts +1 -1
  157. package/lib/utils/constants.js +2 -5
  158. package/lib/utils/constants.js.map +1 -1
  159. package/lib/utils/stringifyQueryParams.d.ts +1 -0
  160. package/lib/utils/stringifyQueryParams.js +5 -0
  161. package/lib/utils/stringifyQueryParams.js.map +1 -0
  162. package/package.json +25 -19
  163. package/lib/defs/accessTokenAuthorization.d.ts +0 -4
  164. package/lib/defs/accessTokenAuthorization.js +0 -3
  165. package/lib/defs/accessTokenAuthorization.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import ProtocolMapperRepresentation from './protocolMapperRepresentation';
1
+ import type ProtocolMapperRepresentation from './protocolMapperRepresentation.js';
2
2
  export default interface ClientScopeRepresentation {
3
3
  attributes?: Record<string, any>;
4
4
  description?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=clientScopeRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=componentExportRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=componentRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import { ConfigPropertyRepresentation } from './configPropertyRepresentation';
1
+ import type { ConfigPropertyRepresentation } from './configPropertyRepresentation.js';
2
2
  export default interface ComponentTypeRepresentation {
3
3
  id: string;
4
4
  helpText: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=componentTypeRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=configPropertyRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=credentialRepresentation.js.map
@@ -1,7 +1,7 @@
1
- import { DecisionEffect } from './policyRepresentation';
2
- import PolicyResultRepresentation from './policyResultRepresentation';
3
- import ResourceRepresentation from './resourceRepresentation';
4
- import ScopeRepresentation from './scopeRepresentation';
1
+ import type { DecisionEffect } from './policyRepresentation.js';
2
+ import type PolicyResultRepresentation from './policyResultRepresentation.js';
3
+ import type ResourceRepresentation from './resourceRepresentation.js';
4
+ import type ScopeRepresentation from './scopeRepresentation.js';
5
5
  export default interface EvaluationResultRepresentation {
6
6
  resource?: ResourceRepresentation;
7
7
  scopes?: ScopeRepresentation[];
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=evaluationResultRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import EventType from './eventTypes';
1
+ import type EventType from './eventTypes.js';
2
2
  export default interface EventRepresentation {
3
3
  clientId?: string;
4
4
  details?: Record<string, any>;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=eventRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=eventTypes.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=federatedIdentityRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=globalRequestResult.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=groupRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=identityProviderMapperRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import { ConfigPropertyRepresentation } from './configPropertyRepresentation';
1
+ import type { ConfigPropertyRepresentation } from './configPropertyRepresentation.js';
2
2
  export interface IdentityProviderMapperTypeRepresentation {
3
3
  id?: string;
4
4
  name?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=identityProviderMapperTypeRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=identityProviderRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=keyMetadataRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=keystoreConfig.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=managementPermissionReference.js.map
@@ -1,4 +1,4 @@
1
- import RoleRepresentation from './roleRepresentation';
1
+ import type RoleRepresentation from './roleRepresentation.js';
2
2
  export default interface MappingsRepresentation {
3
3
  clientMappings?: Record<string, any>;
4
4
  realmMappings?: RoleRepresentation[];
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=mappingsRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=passwordPolicyTypeRepresentation.js.map
@@ -1,6 +1,6 @@
1
- import AccessTokenRepresentation from './accessTokenRepresentation';
2
- import EvaluationResultRepresentation from './evaluationResultRepresentation';
3
- import { DecisionEffect } from './policyRepresentation';
1
+ import type AccessTokenRepresentation from './accessTokenRepresentation.js';
2
+ import type EvaluationResultRepresentation from './evaluationResultRepresentation.js';
3
+ import type { DecisionEffect } from './policyRepresentation.js';
4
4
  export default interface PolicyEvaluationResponse {
5
5
  results?: EvaluationResultRepresentation[];
6
6
  entitlements?: boolean;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=policyEvaluationResponse.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=policyProviderRepresentation.js.map
@@ -1,20 +1,17 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.Logic = exports.DecisionEffect = exports.DecisionStrategy = void 0;
4
- var DecisionStrategy;
1
+ export var DecisionStrategy;
5
2
  (function (DecisionStrategy) {
6
3
  DecisionStrategy["AFFIRMATIVE"] = "AFFIRMATIVE";
7
4
  DecisionStrategy["UNANIMOUS"] = "UNANIMOUS";
8
5
  DecisionStrategy["CONSENSUS"] = "CONSENSUS";
9
- })(DecisionStrategy = exports.DecisionStrategy || (exports.DecisionStrategy = {}));
10
- var DecisionEffect;
6
+ })(DecisionStrategy = DecisionStrategy || (DecisionStrategy = {}));
7
+ export var DecisionEffect;
11
8
  (function (DecisionEffect) {
12
9
  DecisionEffect["Permit"] = "PERMIT";
13
10
  DecisionEffect["Deny"] = "DENY";
14
- })(DecisionEffect = exports.DecisionEffect || (exports.DecisionEffect = {}));
15
- var Logic;
11
+ })(DecisionEffect = DecisionEffect || (DecisionEffect = {}));
12
+ export var Logic;
16
13
  (function (Logic) {
17
14
  Logic["POSITIVE"] = "POSITIVE";
18
15
  Logic["NEGATIVE"] = "NEGATIVE";
19
- })(Logic = exports.Logic || (exports.Logic = {}));
16
+ })(Logic = Logic || (Logic = {}));
20
17
  //# sourceMappingURL=policyRepresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"policyRepresentation.js","sourceRoot":"","sources":["../../src/defs/policyRepresentation.ts"],"names":[],"mappings":";;;AAIA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,8BAAqB,CAAA;IACrB,8BAAqB,CAAA;AACvB,CAAC,EAHW,KAAK,GAAL,aAAK,KAAL,aAAK,QAGhB"}
1
+ {"version":3,"file":"policyRepresentation.js","sourceRoot":"","sources":["../../src/defs/policyRepresentation.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,GAAhB,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,GAAd,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,8BAAqB,CAAA;IACrB,8BAAqB,CAAA;AACvB,CAAC,EAHW,KAAK,GAAL,KAAK,KAAL,KAAK,QAGhB"}
@@ -1,4 +1,5 @@
1
- import PolicyRepresentation, { DecisionEffect } from './policyRepresentation';
1
+ import type PolicyRepresentation from './policyRepresentation.js';
2
+ import type { DecisionEffect } from './policyRepresentation.js';
2
3
  export default interface PolicyResultRepresentation {
3
4
  policy?: PolicyRepresentation;
4
5
  status?: DecisionEffect;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=policyResultRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=profileInfoRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=protocolMapperRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=realmEventsConfigRepresentation.js.map
@@ -1,13 +1,13 @@
1
- import ClientRepresentation from './clientRepresentation';
2
- import ComponentExportRepresentation from './componentExportRepresentation';
3
- import UserRepresentation from './userRepresentation';
4
- import GroupRepresentation from './groupRepresentation';
5
- import IdentityProviderRepresentation from './identityProviderRepresentation';
6
- import RequiredActionProviderRepresentation from './requiredActionProviderRepresentation';
7
- import RolesRepresentation from './rolesRepresentation';
8
- import ClientProfilesRepresentation from './clientProfilesRepresentation';
9
- import ClientPoliciesRepresentation from './clientPoliciesRepresentation';
10
- import RoleRepresentation from './roleRepresentation';
1
+ import type ClientRepresentation from './clientRepresentation.js';
2
+ import type ComponentExportRepresentation from './componentExportRepresentation.js';
3
+ import type UserRepresentation from './userRepresentation.js';
4
+ import type GroupRepresentation from './groupRepresentation.js';
5
+ import type IdentityProviderRepresentation from './identityProviderRepresentation.js';
6
+ import type RequiredActionProviderRepresentation from './requiredActionProviderRepresentation.js';
7
+ import type RolesRepresentation from './rolesRepresentation.js';
8
+ import type ClientProfilesRepresentation from './clientProfilesRepresentation.js';
9
+ import type ClientPoliciesRepresentation from './clientPoliciesRepresentation.js';
10
+ import type RoleRepresentation from './roleRepresentation.js';
11
11
  export default interface RealmRepresentation {
12
12
  accessCodeLifespan?: number;
13
13
  accessCodeLifespanLogin?: number;
@@ -41,6 +41,7 @@ export default interface RealmRepresentation {
41
41
  defaultOptionalClientScopes?: string[];
42
42
  defaultRoles?: string[];
43
43
  defaultRole?: RoleRepresentation;
44
+ defaultSignatureAlgorithm?: string;
44
45
  directGrantFlow?: string;
45
46
  displayName?: string;
46
47
  displayNameHtml?: string;
@@ -96,7 +97,11 @@ export default interface RealmRepresentation {
96
97
  smtpServer?: Record<string, any>;
97
98
  sslRequired?: string;
98
99
  ssoSessionIdleTimeout?: number;
100
+ ssoSessionIdleTimeoutRememberMe?: number;
99
101
  ssoSessionMaxLifespan?: number;
102
+ ssoSessionMaxLifespanRememberMe?: number;
103
+ clientSessionIdleTimeout?: number;
104
+ clientSessionMaxLifespan?: number;
100
105
  supportedLocales?: string[];
101
106
  userFederationMappers?: any[];
102
107
  userFederationProviders?: any[];
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=realmRepresentation.js.map
@@ -1,12 +1,9 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.RequiredActionAlias = void 0;
4
- var RequiredActionAlias;
1
+ export var RequiredActionAlias;
5
2
  (function (RequiredActionAlias) {
6
3
  RequiredActionAlias["VERIFY_EMAIL"] = "VERIFY_EMAIL";
7
4
  RequiredActionAlias["UPDATE_PROFILE"] = "UPDATE_PROFILE";
8
5
  RequiredActionAlias["CONFIGURE_TOTP"] = "CONFIGURE_TOTP";
9
6
  RequiredActionAlias["UPDATE_PASSWORD"] = "UPDATE_PASSWORD";
10
7
  RequiredActionAlias["terms_and_conditions"] = "terms_and_conditions";
11
- })(RequiredActionAlias = exports.RequiredActionAlias || (exports.RequiredActionAlias = {}));
8
+ })(RequiredActionAlias = RequiredActionAlias || (RequiredActionAlias = {}));
12
9
  //# sourceMappingURL=requiredActionProviderRepresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requiredActionProviderRepresentation.js","sourceRoot":"","sources":["../../src/defs/requiredActionProviderRepresentation.ts"],"names":[],"mappings":";;;AAIA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,0DAAmC,CAAA;IACnC,oEAA6C,CAAA;AAC/C,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"}
1
+ {"version":3,"file":"requiredActionProviderRepresentation.js","sourceRoot":"","sources":["../../src/defs/requiredActionProviderRepresentation.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,wDAAiC,CAAA;IACjC,wDAAiC,CAAA;IACjC,0DAAmC,CAAA;IACnC,oEAA6C,CAAA;AAC/C,CAAC,EANW,mBAAmB,GAAnB,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=requiredActionProviderSimpleRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import ResourceRepresentation from './resourceRepresentation';
1
+ import type ResourceRepresentation from './resourceRepresentation.js';
2
2
  export default interface ResourceEvaluation {
3
3
  roleIds?: string[];
4
4
  clientId: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=resourceEvaluation.js.map
@@ -1,5 +1,5 @@
1
- import { ResourceOwnerRepresentation } from './resourceServerRepresentation';
2
- import ScopeRepresentation from './scopeRepresentation';
1
+ import type { ResourceOwnerRepresentation } from './resourceServerRepresentation.js';
2
+ import type ScopeRepresentation from './scopeRepresentation.js';
3
3
  export default interface ResourceRepresentation {
4
4
  name?: string;
5
5
  type?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=resourceRepresentation.js.map
@@ -1,6 +1,6 @@
1
- import PolicyRepresentation from './policyRepresentation';
2
- import ResourceRepresentation from './resourceRepresentation';
3
- import ScopeRepresentation from './scopeRepresentation';
1
+ import type PolicyRepresentation from './policyRepresentation.js';
2
+ import type ResourceRepresentation from './resourceRepresentation.js';
3
+ import type ScopeRepresentation from './scopeRepresentation.js';
4
4
  export default interface ResourceServerRepresentation {
5
5
  id?: string;
6
6
  clientId?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=resourceServerRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=roleRepresentation.js.map
@@ -1,4 +1,4 @@
1
- import RoleRepresentation from './roleRepresentation';
1
+ import type RoleRepresentation from './roleRepresentation.js';
2
2
  export default interface RolesRepresentation {
3
3
  realm?: RoleRepresentation[];
4
4
  client?: {
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=rolesRepresentation.js.map
@@ -1,5 +1,5 @@
1
- import PolicyRepresentation from './policyRepresentation';
2
- import ResourceRepresentation from './resourceRepresentation';
1
+ import type PolicyRepresentation from './policyRepresentation.js';
2
+ import type ResourceRepresentation from './resourceRepresentation.js';
3
3
  export default interface ScopeRepresentation {
4
4
  displayName?: string;
5
5
  iconUri?: string;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=scopeRepresentation.js.map
@@ -1,9 +1,9 @@
1
- import ComponentTypeRepresentation from './componentTypeRepresentation';
2
- import { ConfigPropertyRepresentation } from './configPropertyRepresentation';
3
- import PasswordPolicyTypeRepresentation from './passwordPolicyTypeRepresentation';
4
- import ProfileInfoRepresentation from './profileInfoRepresentation';
5
- import ProtocolMapperRepresentation from './protocolMapperRepresentation';
6
- import SystemInfoRepresentation from './systemInfoRepersantation';
1
+ import type ComponentTypeRepresentation from './componentTypeRepresentation.js';
2
+ import type { ConfigPropertyRepresentation } from './configPropertyRepresentation.js';
3
+ import type PasswordPolicyTypeRepresentation from './passwordPolicyTypeRepresentation.js';
4
+ import type ProfileInfoRepresentation from './profileInfoRepresentation.js';
5
+ import type ProtocolMapperRepresentation from './protocolMapperRepresentation.js';
6
+ import type SystemInfoRepresentation from './systemInfoRepersantation.js';
7
7
  export interface ServerInfoRepresentation {
8
8
  systemInfo?: SystemInfoRepresentation;
9
9
  memoryInfo?: MemoryInfoRepresentation;
@@ -42,7 +42,7 @@ export interface ServerInfoRepresentation {
42
42
  }
43
43
  export interface ThemeInfoRepresentation {
44
44
  name: string;
45
- locales: string[];
45
+ locales?: string[];
46
46
  }
47
47
  export interface SpiInfoRepresentation {
48
48
  internal: boolean;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=serverInfoRepesentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=synchronizationResultRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=systemInfoRepersantation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=testLdapConnection.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=userConsentRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=userProfileConfig.js.map
@@ -1,7 +1,7 @@
1
- import UserConsentRepresentation from './userConsentRepresentation';
2
- import CredentialRepresentation from './credentialRepresentation';
3
- import FederatedIdentityRepresentation from './federatedIdentityRepresentation';
4
- import { RequiredActionAlias } from './requiredActionProviderRepresentation';
1
+ import type UserConsentRepresentation from './userConsentRepresentation.js';
2
+ import type CredentialRepresentation from './credentialRepresentation.js';
3
+ import type FederatedIdentityRepresentation from './federatedIdentityRepresentation.js';
4
+ import type { RequiredActionAlias } from './requiredActionProviderRepresentation.js';
5
5
  export default interface UserRepresentation {
6
6
  id?: string;
7
7
  createdTimestamp?: number;
@@ -10,7 +10,7 @@ export default interface UserRepresentation {
10
10
  totp?: boolean;
11
11
  emailVerified?: boolean;
12
12
  disableableCredentialTypes?: string[];
13
- requiredActions?: RequiredActionAlias[];
13
+ requiredActions?: (RequiredActionAlias | string)[];
14
14
  notBefore?: number;
15
15
  access?: Record<string, boolean>;
16
16
  attributes?: Record<string, any>;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=userRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=userSessionRepresentation.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- exports.__esModule = true;
1
+ export {};
3
2
  //# sourceMappingURL=whoAmIRepresentation.js.map
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RequiredActionAlias } from './defs/requiredActionProviderRepresentation';
2
- import { KeycloakAdminClient } from './client';
1
+ import { RequiredActionAlias } from './defs/requiredActionProviderRepresentation.js';
2
+ import { KeycloakAdminClient } from './client.js';
3
3
  export declare const requiredAction: typeof RequiredActionAlias;
4
4
  export default KeycloakAdminClient;
package/lib/index.js CHANGED
@@ -1,8 +1,5 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.requiredAction = void 0;
4
- var requiredActionProviderRepresentation_1 = require("./defs/requiredActionProviderRepresentation");
5
- var client_1 = require("./client");
6
- exports.requiredAction = requiredActionProviderRepresentation_1.RequiredActionAlias;
7
- exports["default"] = client_1.KeycloakAdminClient;
1
+ import { RequiredActionAlias } from './defs/requiredActionProviderRepresentation.js';
2
+ import { KeycloakAdminClient } from './client.js';
3
+ export const requiredAction = RequiredActionAlias;
4
+ export default KeycloakAdminClient;
8
5
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oGAAgF;AAChF,mCAA6C;AAEhC,QAAA,cAAc,GAAG,0DAAmB,CAAC;AAClD,qBAAe,4BAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAClD,eAAe,mBAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestHeaders, Method } from 'axios';
2
- import { KeycloakAdminClient } from '../client';
2
+ import type { KeycloakAdminClient } from '../client.js';
3
3
  export interface RequestArgs {
4
4
  method: Method;
5
5
  path?: string;
@@ -25,7 +25,7 @@ export declare class Agent {
25
25
  getUrlParams?: () => Record<string, any>;
26
26
  getBaseUrl?: () => string;
27
27
  });
28
- request({ method, path, urlParamKeys, queryParamKeys, catchNotFound, keyTransform, payloadKey, returnResourceIdInLocationHeader, ignoredKeys, headers, }: RequestArgs): (payload?: any, options?: Pick<RequestArgs, "catchNotFound"> | undefined) => Promise<any>;
28
+ request({ method, path, urlParamKeys, queryParamKeys, catchNotFound, keyTransform, payloadKey, returnResourceIdInLocationHeader, ignoredKeys, headers, }: RequestArgs): (payload?: any, options?: Pick<RequestArgs, 'catchNotFound'>) => Promise<any>;
29
29
  updateRequest({ method, path, urlParamKeys, queryParamKeys, catchNotFound, keyTransform, payloadKey, returnResourceIdInLocationHeader, headers }: RequestArgs): (query?: any, payload?: any) => Promise<any>;
30
30
  private requestWithParams;
31
31
  private transformKey;