@keycloak/keycloak-admin-client 19.0.0-dev.2 → 19.0.0-dev.23
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 +1 -1
- package/lib/client.d.ts +24 -22
- package/lib/client.js +68 -181
- package/lib/client.js.map +1 -1
- package/lib/defs/AccessTokenAccess.js +1 -2
- package/lib/defs/PermissonRepresentation.js +1 -2
- package/lib/defs/accessTokenCertConf.js +1 -2
- package/lib/defs/accessTokenRepresentation.d.ts +4 -4
- package/lib/defs/accessTokenRepresentation.js +1 -2
- package/lib/defs/addressClaimSet.js +1 -2
- package/lib/defs/adminEventRepresentation.d.ts +1 -1
- package/lib/defs/adminEventRepresentation.js +1 -2
- package/lib/defs/authDetailsRepresentation.js +1 -2
- package/lib/defs/authenticationExecutionExportRepresentation.js +1 -2
- package/lib/defs/authenticationExecutionInfoRepresentation.js +1 -2
- package/lib/defs/authenticationFlowRepresentation.d.ts +1 -1
- package/lib/defs/authenticationFlowRepresentation.js +1 -2
- package/lib/defs/authenticatorConfigInfoRepresentation.js +1 -2
- package/lib/defs/authenticatorConfigRepresentation.js +1 -2
- package/lib/defs/certificateRepresentation.js +1 -2
- package/lib/defs/clientInitialAccessPresentation.js +1 -2
- package/lib/defs/clientPoliciesRepresentation.d.ts +1 -1
- package/lib/defs/clientPoliciesRepresentation.js +1 -2
- package/lib/defs/clientPolicyConditionRepresentation.js +1 -2
- package/lib/defs/clientPolicyExecutorRepresentation.js +1 -2
- package/lib/defs/clientPolicyRepresentation.d.ts +1 -1
- package/lib/defs/clientPolicyRepresentation.js +1 -2
- package/lib/defs/clientProfileRepresentation.d.ts +1 -1
- package/lib/defs/clientProfileRepresentation.js +1 -2
- package/lib/defs/clientProfilesRepresentation.d.ts +1 -1
- package/lib/defs/clientProfilesRepresentation.js +1 -2
- package/lib/defs/clientRepresentation.d.ts +2 -2
- package/lib/defs/clientRepresentation.js +1 -2
- package/lib/defs/clientScopeRepresentation.d.ts +1 -1
- package/lib/defs/clientScopeRepresentation.js +1 -2
- package/lib/defs/componentExportRepresentation.js +1 -2
- package/lib/defs/componentRepresentation.js +1 -2
- package/lib/defs/componentTypeRepresentation.d.ts +1 -1
- package/lib/defs/componentTypeRepresentation.js +1 -2
- package/lib/defs/configPropertyRepresentation.js +1 -2
- package/lib/defs/credentialRepresentation.js +1 -2
- package/lib/defs/evaluationResultRepresentation.d.ts +4 -4
- package/lib/defs/evaluationResultRepresentation.js +1 -2
- package/lib/defs/eventRepresentation.d.ts +1 -1
- package/lib/defs/eventRepresentation.js +1 -2
- package/lib/defs/eventTypes.js +1 -2
- package/lib/defs/federatedIdentityRepresentation.js +1 -2
- package/lib/defs/globalRequestResult.js +1 -2
- package/lib/defs/groupRepresentation.js +1 -2
- package/lib/defs/identityProviderMapperRepresentation.js +1 -2
- package/lib/defs/identityProviderMapperTypeRepresentation.d.ts +1 -1
- package/lib/defs/identityProviderMapperTypeRepresentation.js +1 -2
- package/lib/defs/identityProviderRepresentation.js +1 -2
- package/lib/defs/keyMetadataRepresentation.js +1 -2
- package/lib/defs/keystoreConfig.js +1 -2
- package/lib/defs/managementPermissionReference.js +1 -2
- package/lib/defs/mappingsRepresentation.d.ts +1 -1
- package/lib/defs/mappingsRepresentation.js +1 -2
- package/lib/defs/passwordPolicyTypeRepresentation.js +1 -2
- package/lib/defs/policyEvaluationResponse.d.ts +3 -3
- package/lib/defs/policyEvaluationResponse.js +1 -2
- package/lib/defs/policyProviderRepresentation.js +1 -2
- package/lib/defs/policyRepresentation.js +6 -9
- package/lib/defs/policyRepresentation.js.map +1 -1
- package/lib/defs/policyResultRepresentation.d.ts +2 -1
- package/lib/defs/policyResultRepresentation.js +1 -2
- package/lib/defs/profileInfoRepresentation.js +1 -2
- package/lib/defs/protocolMapperRepresentation.js +1 -2
- package/lib/defs/realmEventsConfigRepresentation.js +1 -2
- package/lib/defs/realmRepresentation.d.ts +10 -10
- package/lib/defs/realmRepresentation.js +1 -2
- package/lib/defs/requiredActionProviderRepresentation.js +2 -5
- package/lib/defs/requiredActionProviderRepresentation.js.map +1 -1
- package/lib/defs/requiredActionProviderSimpleRepresentation.js +1 -2
- package/lib/defs/resourceEvaluation.d.ts +1 -1
- package/lib/defs/resourceEvaluation.js +1 -2
- package/lib/defs/resourceRepresentation.d.ts +2 -2
- package/lib/defs/resourceRepresentation.js +1 -2
- package/lib/defs/resourceServerRepresentation.d.ts +3 -3
- package/lib/defs/resourceServerRepresentation.js +1 -2
- package/lib/defs/roleRepresentation.js +1 -2
- package/lib/defs/rolesRepresentation.d.ts +1 -1
- package/lib/defs/rolesRepresentation.js +1 -2
- package/lib/defs/scopeRepresentation.d.ts +2 -2
- package/lib/defs/scopeRepresentation.js +1 -2
- package/lib/defs/serverInfoRepesentation.d.ts +6 -6
- package/lib/defs/serverInfoRepesentation.js +1 -2
- package/lib/defs/synchronizationResultRepresentation.js +1 -2
- package/lib/defs/systemInfoRepersantation.js +1 -2
- package/lib/defs/testLdapConnection.js +1 -2
- package/lib/defs/userConsentRepresentation.js +1 -2
- package/lib/defs/userProfileConfig.js +1 -2
- package/lib/defs/userRepresentation.d.ts +5 -5
- package/lib/defs/userRepresentation.js +1 -2
- package/lib/defs/userSessionRepresentation.js +1 -2
- package/lib/defs/whoAmIRepresentation.js +1 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +4 -7
- package/lib/index.js.map +1 -1
- package/lib/resources/agent.d.ts +2 -2
- package/lib/resources/agent.js +115 -193
- package/lib/resources/agent.js.map +1 -1
- package/lib/resources/attackDetection.d.ts +5 -5
- package/lib/resources/attackDetection.js +16 -41
- package/lib/resources/attackDetection.js.map +1 -1
- package/lib/resources/authenticationManagement.d.ts +36 -35
- package/lib/resources/authenticationManagement.js +72 -97
- package/lib/resources/authenticationManagement.js.map +1 -1
- package/lib/resources/cache.d.ts +3 -3
- package/lib/resources/cache.js +12 -37
- package/lib/resources/cache.js.map +1 -1
- package/lib/resources/clientPolicies.d.ts +9 -9
- package/lib/resources/clientPolicies.js +19 -44
- package/lib/resources/clientPolicies.js.map +1 -1
- package/lib/resources/clientScopes.d.ts +27 -27
- package/lib/resources/clientScopes.js +91 -185
- package/lib/resources/clientScopes.js.map +1 -1
- package/lib/resources/clients.d.ts +98 -92
- package/lib/resources/clients.js +228 -309
- package/lib/resources/clients.js.map +1 -1
- package/lib/resources/components.d.ts +9 -9
- package/lib/resources/components.js +22 -47
- package/lib/resources/components.js.map +1 -1
- package/lib/resources/groups.d.ts +26 -25
- package/lib/resources/groups.js +53 -78
- package/lib/resources/groups.js.map +1 -1
- package/lib/resources/identityProviders.d.ts +28 -17
- package/lib/resources/identityProviders.js +46 -61
- package/lib/resources/identityProviders.js.map +1 -1
- package/lib/resources/realms.d.ts +40 -39
- package/lib/resources/realms.js +73 -98
- package/lib/resources/realms.js.map +1 -1
- package/lib/resources/resource.d.ts +3 -3
- package/lib/resources/resource.js +12 -26
- package/lib/resources/resource.js.map +1 -1
- package/lib/resources/roles.d.ts +16 -16
- package/lib/resources/roles.js +42 -67
- package/lib/resources/roles.js.map +1 -1
- package/lib/resources/serverInfo.d.ts +4 -4
- package/lib/resources/serverInfo.js +9 -34
- package/lib/resources/serverInfo.js.map +1 -1
- package/lib/resources/sessions.d.ts +3 -3
- package/lib/resources/sessions.js +12 -37
- package/lib/resources/sessions.js.map +1 -1
- package/lib/resources/userStorageProvider.d.ts +8 -8
- package/lib/resources/userStorageProvider.js +20 -45
- package/lib/resources/userStorageProvider.js.map +1 -1
- package/lib/resources/users.d.ts +51 -51
- package/lib/resources/users.js +95 -120
- package/lib/resources/users.js.map +1 -1
- package/lib/resources/whoAmI.d.ts +4 -4
- package/lib/resources/whoAmI.js +12 -37
- package/lib/resources/whoAmI.js.map +1 -1
- package/lib/utils/auth.js +30 -82
- package/lib/utils/auth.js.map +1 -1
- package/lib/utils/constants.js +2 -5
- package/lib/utils/constants.js.map +1 -1
- package/package.json +17 -16
- package/lib/defs/accessTokenAuthorization.d.ts +0 -4
- package/lib/defs/accessTokenAuthorization.js +0 -3
- package/lib/defs/accessTokenAuthorization.js.map +0 -1
|
@@ -1,189 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
exports.__esModule = true;
|
|
21
|
-
exports.AuthenticationManagement = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var AuthenticationManagement = (function (_super) {
|
|
24
|
-
__extends(AuthenticationManagement, _super);
|
|
25
|
-
function AuthenticationManagement(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class AuthenticationManagement extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/realms/{realm}/authentication',
|
|
28
|
-
getUrlParams:
|
|
29
|
-
realm: client.realmName
|
|
30
|
-
})
|
|
31
|
-
getBaseUrl:
|
|
32
|
-
})
|
|
33
|
-
|
|
6
|
+
getUrlParams: () => ({
|
|
7
|
+
realm: client.realmName,
|
|
8
|
+
}),
|
|
9
|
+
getBaseUrl: () => client.baseUrl,
|
|
10
|
+
});
|
|
11
|
+
this.registerRequiredAction = this.makeRequest({
|
|
34
12
|
method: 'POST',
|
|
35
|
-
path: '/register-required-action'
|
|
13
|
+
path: '/register-required-action',
|
|
36
14
|
});
|
|
37
|
-
|
|
15
|
+
this.getRequiredActions = this.makeRequest({
|
|
38
16
|
method: 'GET',
|
|
39
|
-
path: '/required-actions'
|
|
17
|
+
path: '/required-actions',
|
|
40
18
|
});
|
|
41
|
-
|
|
19
|
+
this.getRequiredActionForAlias = this.makeRequest({
|
|
42
20
|
method: 'GET',
|
|
43
21
|
path: '/required-actions/{alias}',
|
|
44
22
|
urlParamKeys: ['alias'],
|
|
45
|
-
catchNotFound: true
|
|
23
|
+
catchNotFound: true,
|
|
46
24
|
});
|
|
47
|
-
|
|
25
|
+
this.getClientAuthenticatorProviders = this.makeRequest({
|
|
48
26
|
method: 'GET',
|
|
49
|
-
path: '/client-authenticator-providers'
|
|
27
|
+
path: '/client-authenticator-providers',
|
|
50
28
|
});
|
|
51
|
-
|
|
29
|
+
this.getAuthenticatorProviders = this.makeRequest({
|
|
52
30
|
method: 'GET',
|
|
53
|
-
path: '/authenticator-providers'
|
|
31
|
+
path: '/authenticator-providers',
|
|
54
32
|
});
|
|
55
|
-
|
|
33
|
+
this.getFormActionProviders = this.makeRequest({
|
|
56
34
|
method: 'GET',
|
|
57
|
-
path: '/form-action-providers'
|
|
35
|
+
path: '/form-action-providers',
|
|
58
36
|
});
|
|
59
|
-
|
|
37
|
+
this.updateRequiredAction = this.makeUpdateRequest({
|
|
60
38
|
method: 'PUT',
|
|
61
39
|
path: '/required-actions/{alias}',
|
|
62
|
-
urlParamKeys: ['alias']
|
|
40
|
+
urlParamKeys: ['alias'],
|
|
63
41
|
});
|
|
64
|
-
|
|
42
|
+
this.deleteRequiredAction = this.makeRequest({
|
|
65
43
|
method: 'DELETE',
|
|
66
44
|
path: '/required-actions/{alias}',
|
|
67
|
-
urlParamKeys: ['alias']
|
|
45
|
+
urlParamKeys: ['alias'],
|
|
68
46
|
});
|
|
69
|
-
|
|
47
|
+
this.lowerRequiredActionPriority = this.makeRequest({
|
|
70
48
|
method: 'POST',
|
|
71
49
|
path: '/required-actions/{alias}/lower-priority',
|
|
72
|
-
urlParamKeys: ['alias']
|
|
50
|
+
urlParamKeys: ['alias'],
|
|
73
51
|
});
|
|
74
|
-
|
|
52
|
+
this.raiseRequiredActionPriority = this.makeRequest({
|
|
75
53
|
method: 'POST',
|
|
76
54
|
path: '/required-actions/{alias}/raise-priority',
|
|
77
|
-
urlParamKeys: ['alias']
|
|
55
|
+
urlParamKeys: ['alias'],
|
|
78
56
|
});
|
|
79
|
-
|
|
57
|
+
this.getUnregisteredRequiredActions = this.makeRequest({
|
|
80
58
|
method: 'GET',
|
|
81
|
-
path: '/unregistered-required-actions'
|
|
59
|
+
path: '/unregistered-required-actions',
|
|
82
60
|
});
|
|
83
|
-
|
|
61
|
+
this.getFlows = this.makeRequest({
|
|
84
62
|
method: 'GET',
|
|
85
|
-
path: '/flows'
|
|
63
|
+
path: '/flows',
|
|
86
64
|
});
|
|
87
|
-
|
|
65
|
+
this.getFlow = this.makeRequest({
|
|
88
66
|
method: 'GET',
|
|
89
67
|
path: '/flows/{flowId}',
|
|
90
|
-
urlParamKeys: ['flowId']
|
|
68
|
+
urlParamKeys: ['flowId'],
|
|
91
69
|
});
|
|
92
|
-
|
|
70
|
+
this.getFormProviders = this.makeRequest({
|
|
93
71
|
method: 'GET',
|
|
94
|
-
path: '/form-providers'
|
|
72
|
+
path: '/form-providers',
|
|
95
73
|
});
|
|
96
|
-
|
|
74
|
+
this.createFlow = this.makeRequest({
|
|
97
75
|
method: 'POST',
|
|
98
76
|
path: '/flows',
|
|
99
|
-
returnResourceIdInLocationHeader: { field: 'id' }
|
|
77
|
+
returnResourceIdInLocationHeader: { field: 'id' },
|
|
100
78
|
});
|
|
101
|
-
|
|
79
|
+
this.copyFlow = this.makeRequest({
|
|
102
80
|
method: 'POST',
|
|
103
81
|
path: '/flows/{flow}/copy',
|
|
104
|
-
urlParamKeys: ['flow']
|
|
82
|
+
urlParamKeys: ['flow'],
|
|
105
83
|
});
|
|
106
|
-
|
|
84
|
+
this.deleteFlow = this.makeRequest({
|
|
107
85
|
method: 'DELETE',
|
|
108
86
|
path: '/flows/{flowId}',
|
|
109
|
-
urlParamKeys: ['flowId']
|
|
87
|
+
urlParamKeys: ['flowId'],
|
|
110
88
|
});
|
|
111
|
-
|
|
89
|
+
this.updateFlow = this.makeUpdateRequest({
|
|
112
90
|
method: 'PUT',
|
|
113
91
|
path: '/flows/{flowId}',
|
|
114
|
-
urlParamKeys: ['flowId']
|
|
92
|
+
urlParamKeys: ['flowId'],
|
|
115
93
|
});
|
|
116
|
-
|
|
94
|
+
this.getExecutions = this.makeRequest({
|
|
117
95
|
method: 'GET',
|
|
118
96
|
path: '/flows/{flow}/executions',
|
|
119
|
-
urlParamKeys: ['flow']
|
|
97
|
+
urlParamKeys: ['flow'],
|
|
120
98
|
});
|
|
121
|
-
|
|
99
|
+
this.addExecution = this.makeUpdateRequest({
|
|
122
100
|
method: 'POST',
|
|
123
101
|
path: '/flows/{flow}/executions',
|
|
124
|
-
urlParamKeys: ['flow']
|
|
102
|
+
urlParamKeys: ['flow'],
|
|
125
103
|
});
|
|
126
|
-
|
|
104
|
+
this.addExecutionToFlow = this.makeRequest({
|
|
127
105
|
method: 'POST',
|
|
128
106
|
path: '/flows/{flow}/executions/execution',
|
|
129
107
|
urlParamKeys: ['flow'],
|
|
130
|
-
returnResourceIdInLocationHeader: { field: 'id' }
|
|
108
|
+
returnResourceIdInLocationHeader: { field: 'id' },
|
|
131
109
|
});
|
|
132
|
-
|
|
110
|
+
this.addFlowToFlow = this.makeRequest({
|
|
133
111
|
method: 'POST',
|
|
134
112
|
path: '/flows/{flow}/executions/flow',
|
|
135
113
|
urlParamKeys: ['flow'],
|
|
136
|
-
returnResourceIdInLocationHeader: { field: 'id' }
|
|
114
|
+
returnResourceIdInLocationHeader: { field: 'id' },
|
|
137
115
|
});
|
|
138
|
-
|
|
116
|
+
this.updateExecution = this.makeUpdateRequest({
|
|
139
117
|
method: 'PUT',
|
|
140
118
|
path: '/flows/{flow}/executions',
|
|
141
|
-
urlParamKeys: ['flow']
|
|
119
|
+
urlParamKeys: ['flow'],
|
|
142
120
|
});
|
|
143
|
-
|
|
121
|
+
this.delExecution = this.makeRequest({
|
|
144
122
|
method: 'DELETE',
|
|
145
123
|
path: '/executions/{id}',
|
|
146
|
-
urlParamKeys: ['id']
|
|
124
|
+
urlParamKeys: ['id'],
|
|
147
125
|
});
|
|
148
|
-
|
|
126
|
+
this.lowerPriorityExecution = this.makeRequest({
|
|
149
127
|
method: 'POST',
|
|
150
128
|
path: '/executions/{id}/lower-priority',
|
|
151
|
-
urlParamKeys: ['id']
|
|
129
|
+
urlParamKeys: ['id'],
|
|
152
130
|
});
|
|
153
|
-
|
|
131
|
+
this.raisePriorityExecution = this.makeRequest({
|
|
154
132
|
method: 'POST',
|
|
155
133
|
path: '/executions/{id}/raise-priority',
|
|
156
|
-
urlParamKeys: ['id']
|
|
134
|
+
urlParamKeys: ['id'],
|
|
157
135
|
});
|
|
158
|
-
|
|
136
|
+
this.getConfigDescription = this.makeRequest({
|
|
159
137
|
method: 'GET',
|
|
160
138
|
path: 'config-description/{providerId}',
|
|
161
|
-
urlParamKeys: ['providerId']
|
|
139
|
+
urlParamKeys: ['providerId'],
|
|
162
140
|
});
|
|
163
|
-
|
|
141
|
+
this.createConfig = this.makeRequest({
|
|
164
142
|
method: 'POST',
|
|
165
143
|
path: '/executions/{id}/config',
|
|
166
144
|
urlParamKeys: ['id'],
|
|
167
|
-
returnResourceIdInLocationHeader: { field: 'id' }
|
|
145
|
+
returnResourceIdInLocationHeader: { field: 'id' },
|
|
168
146
|
});
|
|
169
|
-
|
|
147
|
+
this.updateConfig = this.makeRequest({
|
|
170
148
|
method: 'PUT',
|
|
171
149
|
path: '/config/{id}',
|
|
172
|
-
urlParamKeys: ['id']
|
|
150
|
+
urlParamKeys: ['id'],
|
|
173
151
|
});
|
|
174
|
-
|
|
152
|
+
this.getConfig = this.makeRequest({
|
|
175
153
|
method: 'GET',
|
|
176
154
|
path: '/config/{id}',
|
|
177
|
-
urlParamKeys: ['id']
|
|
155
|
+
urlParamKeys: ['id'],
|
|
178
156
|
});
|
|
179
|
-
|
|
157
|
+
this.delConfig = this.makeRequest({
|
|
180
158
|
method: 'DELETE',
|
|
181
159
|
path: '/config/{id}',
|
|
182
|
-
urlParamKeys: ['id']
|
|
160
|
+
urlParamKeys: ['id'],
|
|
183
161
|
});
|
|
184
|
-
return _this;
|
|
185
162
|
}
|
|
186
|
-
|
|
187
|
-
}(resource_1["default"]));
|
|
188
|
-
exports.AuthenticationManagement = AuthenticationManagement;
|
|
163
|
+
}
|
|
189
164
|
//# sourceMappingURL=authenticationManagement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationManagement.js","sourceRoot":"","sources":["../../src/resources/authenticationManagement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authenticationManagement.js","sourceRoot":"","sources":["../../src/resources/authenticationManagement.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAUrC,MAAM,OAAO,wBAAyB,SAAQ,QAAQ;IA0QpD,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,sCAAsC;YAC5C,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC,SAAS;aACxB,CAAC;YACF,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO;SACjC,CAAC,CAAC;QA1QE,2BAAsB,GAAG,IAAI,CAAC,WAAW,CAAsB;YACpE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,2BAA2B;SAClC,CAAC,CAAC;QAGI,uBAAkB,GAAG,IAAI,CAAC,WAAW,CAG1C;YACA,MAAM,EAAE,KAAK;YACb,IAAI,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AW,CAGpC;YACA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,yBAAyB;YAC/B,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,gCAAgC,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC;SAChD,CAAC,CAAC;QAEI,iBAAY,GAAG,IAAI,CAAC,WAAW,CAGpC;YACA,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;QAEI,cAAS,GAAG,IAAI,CAAC,WAAW,CAGjC;YACA,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;QAEI,cAAS,GAAG,IAAI,CAAC,WAAW,CAAe;YAChD,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;IAUH,CAAC;CACF"}
|
package/lib/resources/cache.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Resource from './resource';
|
|
2
|
-
import { KeycloakAdminClient } from '../client';
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
import type { KeycloakAdminClient } from '../client.js';
|
|
3
3
|
export declare class Cache extends Resource<{
|
|
4
4
|
realm?: string;
|
|
5
5
|
}> {
|
|
6
6
|
clearUserCache: (payload?: {
|
|
7
7
|
realm?: string | undefined;
|
|
8
|
-
} | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
8
|
+
} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
9
9
|
constructor(client: KeycloakAdminClient);
|
|
10
10
|
}
|
package/lib/resources/cache.js
CHANGED
|
@@ -1,42 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
exports.__esModule = true;
|
|
21
|
-
exports.Cache = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var Cache = (function (_super) {
|
|
24
|
-
__extends(Cache, _super);
|
|
25
|
-
function Cache(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class Cache extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/realms/{realm}',
|
|
28
|
-
getUrlParams:
|
|
29
|
-
realm: client.realmName
|
|
30
|
-
})
|
|
31
|
-
getBaseUrl:
|
|
32
|
-
})
|
|
33
|
-
|
|
6
|
+
getUrlParams: () => ({
|
|
7
|
+
realm: client.realmName,
|
|
8
|
+
}),
|
|
9
|
+
getBaseUrl: () => client.baseUrl,
|
|
10
|
+
});
|
|
11
|
+
this.clearUserCache = this.makeRequest({
|
|
34
12
|
method: 'POST',
|
|
35
|
-
path: '/clear-user-cache'
|
|
13
|
+
path: '/clear-user-cache',
|
|
36
14
|
});
|
|
37
|
-
return _this;
|
|
38
15
|
}
|
|
39
|
-
|
|
40
|
-
}(resource_1["default"]));
|
|
41
|
-
exports.Cache = Cache;
|
|
16
|
+
}
|
|
42
17
|
//# sourceMappingURL=cache.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/resources/cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/resources/cache.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAGrC,MAAM,OAAO,KAAM,SAAQ,QAA0B;IAOnD,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,uBAAuB;YAC7B,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC,SAAS;aACxB,CAAC;YACF,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO;SACjC,CAAC,CAAC;QAZE,mBAAc,GAAG,IAAI,CAAC,WAAW,CAAW;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB;SAC1B,CAAC,CAAC;IAUH,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Resource from './resource';
|
|
2
|
-
import { KeycloakAdminClient } from '../client';
|
|
3
|
-
import ClientProfilesRepresentation from '../defs/clientProfilesRepresentation';
|
|
4
|
-
import ClientPoliciesRepresentation from '../defs/clientPoliciesRepresentation';
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
import type { KeycloakAdminClient } from '../client.js';
|
|
3
|
+
import type ClientProfilesRepresentation from '../defs/clientProfilesRepresentation.js';
|
|
4
|
+
import type ClientPoliciesRepresentation from '../defs/clientPoliciesRepresentation.js';
|
|
5
5
|
export declare class ClientPolicies extends Resource<{
|
|
6
6
|
realm?: string;
|
|
7
7
|
}> {
|
|
@@ -10,14 +10,14 @@ export declare class ClientPolicies extends Resource<{
|
|
|
10
10
|
includeGlobalProfiles?: boolean | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
realm?: string | undefined;
|
|
13
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientProfilesRepresentation>;
|
|
13
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientProfilesRepresentation>;
|
|
14
14
|
createProfiles: (payload?: (ClientProfilesRepresentation & {
|
|
15
15
|
realm?: string | undefined;
|
|
16
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
17
|
-
listPolicies: (payload?:
|
|
16
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
17
|
+
listPolicies: (payload?: {
|
|
18
18
|
realm?: string | undefined;
|
|
19
|
-
}
|
|
19
|
+
} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientPoliciesRepresentation>;
|
|
20
20
|
updatePolicy: (payload?: (ClientPoliciesRepresentation & {
|
|
21
21
|
realm?: string | undefined;
|
|
22
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
22
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
23
23
|
}
|
|
@@ -1,58 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
exports.__esModule = true;
|
|
21
|
-
exports.ClientPolicies = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var ClientPolicies = (function (_super) {
|
|
24
|
-
__extends(ClientPolicies, _super);
|
|
25
|
-
function ClientPolicies(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class ClientPolicies extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/realms/{realm}/client-policies',
|
|
28
|
-
getUrlParams:
|
|
29
|
-
realm: client.realmName
|
|
30
|
-
})
|
|
31
|
-
getBaseUrl:
|
|
32
|
-
})
|
|
33
|
-
|
|
6
|
+
getUrlParams: () => ({
|
|
7
|
+
realm: client.realmName,
|
|
8
|
+
}),
|
|
9
|
+
getBaseUrl: () => client.baseUrl,
|
|
10
|
+
});
|
|
11
|
+
this.listProfiles = this.makeRequest({
|
|
34
12
|
method: 'GET',
|
|
35
13
|
path: '/profiles',
|
|
36
14
|
queryParamKeys: ['include-global-profiles'],
|
|
37
15
|
keyTransform: {
|
|
38
|
-
includeGlobalProfiles: 'include-global-profiles'
|
|
39
|
-
}
|
|
16
|
+
includeGlobalProfiles: 'include-global-profiles',
|
|
17
|
+
},
|
|
40
18
|
});
|
|
41
|
-
|
|
19
|
+
this.createProfiles = this.makeRequest({
|
|
42
20
|
method: 'PUT',
|
|
43
|
-
path: '/profiles'
|
|
21
|
+
path: '/profiles',
|
|
44
22
|
});
|
|
45
|
-
|
|
23
|
+
this.listPolicies = this.makeRequest({
|
|
46
24
|
method: 'GET',
|
|
47
|
-
path: '/policies'
|
|
25
|
+
path: '/policies',
|
|
48
26
|
});
|
|
49
|
-
|
|
27
|
+
this.updatePolicy = this.makeRequest({
|
|
50
28
|
method: 'PUT',
|
|
51
|
-
path: '/policies'
|
|
29
|
+
path: '/policies',
|
|
52
30
|
});
|
|
53
|
-
return _this;
|
|
54
31
|
}
|
|
55
|
-
|
|
56
|
-
}(resource_1["default"]));
|
|
57
|
-
exports.ClientPolicies = ClientPolicies;
|
|
32
|
+
}
|
|
58
33
|
//# sourceMappingURL=clientPolicies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientPolicies.js","sourceRoot":"","sources":["../../src/resources/clientPolicies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clientPolicies.js","sourceRoot":"","sources":["../../src/resources/clientPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAQrC,MAAM,OAAO,cAAe,SAAQ,QAA0B;IAC5D,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,uCAAuC;YAC7C,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC,SAAS;aACxB,CAAC;YACF,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO;SACjC,CAAC,CAAC;QAKE,iBAAY,GAAG,IAAI,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,mBAAc,GAAG,IAAI,CAAC,WAAW,CAAqC;YAC3E,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;QAII,iBAAY,GAAG,IAAI,CAAC,WAAW,CAAmC;YACvE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;QAEI,iBAAY,GAAG,IAAI,CAAC,WAAW,CAAqC;YACzE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC;IA/BH,CAAC;CAgCF"}
|