@keycloak/keycloak-admin-client 17.0.0-dev.7 → 18.0.0-dev.0
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/client.d.ts +4 -0
- package/lib/client.js +4 -0
- package/lib/client.js.map +1 -1
- package/lib/defs/AccessTokenAccess.d.ts +4 -0
- package/lib/defs/AccessTokenAccess.js +3 -0
- package/lib/defs/AccessTokenAccess.js.map +1 -0
- package/lib/defs/PermissonRepresentation.d.ts +8 -0
- package/lib/defs/PermissonRepresentation.js +3 -0
- package/lib/defs/PermissonRepresentation.js.map +1 -0
- package/lib/defs/accessTokenAuthorization.d.ts +4 -0
- package/lib/defs/accessTokenAuthorization.js +3 -0
- package/lib/defs/accessTokenAuthorization.js.map +1 -0
- package/lib/defs/accessTokenCertConf.d.ts +3 -0
- package/lib/defs/accessTokenCertConf.js +3 -0
- package/lib/defs/accessTokenCertConf.js.map +1 -0
- package/lib/defs/accessTokenRepresentation.d.ts +51 -0
- package/lib/defs/accessTokenRepresentation.js +3 -0
- package/lib/defs/accessTokenRepresentation.js.map +1 -0
- package/lib/defs/addressClaimSet.d.ts +8 -0
- package/lib/defs/addressClaimSet.js +3 -0
- package/lib/defs/addressClaimSet.js.map +1 -0
- package/lib/defs/evaluationResultRepresentation.d.ts +11 -0
- package/lib/defs/evaluationResultRepresentation.js +3 -0
- package/lib/defs/evaluationResultRepresentation.js.map +1 -0
- package/lib/defs/policyEvaluationResponse.d.ts +9 -0
- package/lib/defs/policyEvaluationResponse.js +3 -0
- package/lib/defs/policyEvaluationResponse.js.map +1 -0
- package/lib/defs/policyProviderRepresentation.d.ts +5 -0
- package/lib/defs/policyProviderRepresentation.js +3 -0
- package/lib/defs/policyProviderRepresentation.js.map +1 -0
- package/lib/defs/policyRepresentation.d.ts +4 -0
- package/lib/defs/policyRepresentation.js +6 -1
- package/lib/defs/policyRepresentation.js.map +1 -1
- package/lib/defs/policyResultRepresentation.d.ts +7 -0
- package/lib/defs/policyResultRepresentation.js +3 -0
- package/lib/defs/policyResultRepresentation.js.map +1 -0
- package/lib/defs/resourceEvaluation.d.ts +2 -1
- package/lib/defs/resourceServerRepresentation.d.ts +1 -0
- package/lib/defs/userProfileConfig.d.ts +1 -1
- package/lib/resources/agent.d.ts +1 -1
- package/lib/resources/agent.js +4 -14
- package/lib/resources/agent.js.map +1 -1
- package/lib/resources/attackDetection.d.ts +3 -3
- package/lib/resources/authenticationManagement.d.ts +27 -27
- package/lib/resources/cache.d.ts +1 -1
- package/lib/resources/clientPolicies.d.ts +4 -4
- package/lib/resources/clientScopes.d.ts +21 -21
- package/lib/resources/clients.d.ts +103 -75
- package/lib/resources/clients.js +17 -2
- package/lib/resources/clients.js.map +1 -1
- package/lib/resources/components.d.ts +5 -5
- package/lib/resources/groups.d.ts +18 -18
- package/lib/resources/identityProviders.d.ts +11 -11
- package/lib/resources/realms.d.ts +35 -23
- package/lib/resources/realms.js +15 -0
- package/lib/resources/realms.js.map +1 -1
- package/lib/resources/resource.d.ts +1 -1
- package/lib/resources/roles.d.ts +10 -10
- package/lib/resources/serverInfo.d.ts +1 -1
- package/lib/resources/sessions.d.ts +1 -1
- package/lib/resources/userStorageProvider.d.ts +5 -5
- package/lib/resources/users.d.ts +38 -38
- package/lib/resources/users.js +1 -0
- package/lib/resources/users.js.map +1 -1
- package/lib/resources/whoAmI.d.ts +1 -1
- package/lib/utils/auth.d.ts +1 -1
- package/package.json +4 -4
|
@@ -16,14 +16,25 @@ import CertificateRepresentation from '../defs/certificateRepresentation';
|
|
|
16
16
|
import KeyStoreConfig from '../defs/keystoreConfig';
|
|
17
17
|
import ResourceServerRepresentation from '../defs/resourceServerRepresentation';
|
|
18
18
|
import ScopeRepresentation from '../defs/scopeRepresentation';
|
|
19
|
-
|
|
19
|
+
import PolicyProviderRepresentation from '../defs/policyProviderRepresentation';
|
|
20
|
+
export interface PaginatedQuery {
|
|
20
21
|
first?: number;
|
|
21
22
|
max?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface ClientQuery extends PaginatedQuery {
|
|
22
25
|
clientId?: string;
|
|
23
26
|
viewableOnly?: boolean;
|
|
24
27
|
search?: boolean;
|
|
25
28
|
}
|
|
26
|
-
export interface
|
|
29
|
+
export interface ResourceQuery extends PaginatedQuery {
|
|
30
|
+
id?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
type?: string;
|
|
33
|
+
owner?: string;
|
|
34
|
+
uri?: string;
|
|
35
|
+
deep?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface PolicyQuery extends PaginatedQuery {
|
|
27
38
|
id?: string;
|
|
28
39
|
name?: string;
|
|
29
40
|
type?: string;
|
|
@@ -32,25 +43,23 @@ export interface PolicyQuery {
|
|
|
32
43
|
permission?: string;
|
|
33
44
|
owner?: string;
|
|
34
45
|
fields?: string;
|
|
35
|
-
first?: number;
|
|
36
|
-
max?: number;
|
|
37
46
|
}
|
|
38
47
|
export declare class Clients extends Resource<{
|
|
39
48
|
realm?: string;
|
|
40
49
|
}> {
|
|
41
50
|
find: (payload?: (ClientQuery & {
|
|
42
51
|
realm?: string | undefined;
|
|
43
|
-
}) | undefined) => Promise<ClientRepresentation[]>;
|
|
52
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientRepresentation[]>;
|
|
44
53
|
create: (payload?: (ClientRepresentation & {
|
|
45
54
|
realm?: string | undefined;
|
|
46
|
-
}) | undefined) => Promise<{
|
|
55
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
47
56
|
id: string;
|
|
48
57
|
}>;
|
|
49
58
|
findOne: (payload?: ({
|
|
50
59
|
id: string;
|
|
51
60
|
} & {
|
|
52
61
|
realm?: string | undefined;
|
|
53
|
-
}) | undefined) => Promise<ClientRepresentation | undefined>;
|
|
62
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientRepresentation | undefined>;
|
|
54
63
|
update: (query: {
|
|
55
64
|
id: string;
|
|
56
65
|
} & {
|
|
@@ -60,23 +69,23 @@ export declare class Clients extends Resource<{
|
|
|
60
69
|
id: string;
|
|
61
70
|
} & {
|
|
62
71
|
realm?: string | undefined;
|
|
63
|
-
}) | undefined) => Promise<void>;
|
|
72
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
64
73
|
createRole: (payload?: (RoleRepresentation & {
|
|
65
74
|
realm?: string | undefined;
|
|
66
|
-
}) | undefined) => Promise<{
|
|
75
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
67
76
|
roleName: string;
|
|
68
77
|
}>;
|
|
69
78
|
listRoles: (payload?: ({
|
|
70
79
|
id: string;
|
|
71
80
|
} & {
|
|
72
81
|
realm?: string | undefined;
|
|
73
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
82
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
74
83
|
findRole: (payload?: ({
|
|
75
84
|
id: string;
|
|
76
85
|
roleName: string;
|
|
77
86
|
} & {
|
|
78
87
|
realm?: string | undefined;
|
|
79
|
-
}) | undefined) => Promise<RoleRepresentation>;
|
|
88
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation>;
|
|
80
89
|
updateRole: (query: {
|
|
81
90
|
id: string;
|
|
82
91
|
roleName: string;
|
|
@@ -88,7 +97,7 @@ export declare class Clients extends Resource<{
|
|
|
88
97
|
roleName: string;
|
|
89
98
|
} & {
|
|
90
99
|
realm?: string | undefined;
|
|
91
|
-
}) | undefined) => Promise<void>;
|
|
100
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
92
101
|
findUsersWithRole: (payload?: ({
|
|
93
102
|
id: string;
|
|
94
103
|
roleName: string;
|
|
@@ -96,63 +105,63 @@ export declare class Clients extends Resource<{
|
|
|
96
105
|
max?: number | undefined;
|
|
97
106
|
} & {
|
|
98
107
|
realm?: string | undefined;
|
|
99
|
-
}) | undefined) => Promise<UserRepresentation[]>;
|
|
108
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation[]>;
|
|
100
109
|
getServiceAccountUser: (payload?: ({
|
|
101
110
|
id: string;
|
|
102
111
|
} & {
|
|
103
112
|
realm?: string | undefined;
|
|
104
|
-
}) | undefined) => Promise<UserRepresentation>;
|
|
113
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation>;
|
|
105
114
|
generateNewClientSecret: (payload?: ({
|
|
106
115
|
id: string;
|
|
107
116
|
} & {
|
|
108
117
|
realm?: string | undefined;
|
|
109
|
-
}) | undefined) => Promise<CredentialRepresentation>;
|
|
118
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CredentialRepresentation>;
|
|
110
119
|
generateRegistrationAccessToken: (payload?: ({
|
|
111
120
|
id: string;
|
|
112
121
|
} & {
|
|
113
122
|
realm?: string | undefined;
|
|
114
|
-
}) | undefined) => Promise<{
|
|
123
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
115
124
|
registrationAccessToken: string;
|
|
116
125
|
}>;
|
|
117
126
|
getClientSecret: (payload?: ({
|
|
118
127
|
id: string;
|
|
119
128
|
} & {
|
|
120
129
|
realm?: string | undefined;
|
|
121
|
-
}) | undefined) => Promise<CredentialRepresentation>;
|
|
130
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CredentialRepresentation>;
|
|
122
131
|
listDefaultClientScopes: (payload?: ({
|
|
123
132
|
id: string;
|
|
124
133
|
} & {
|
|
125
134
|
realm?: string | undefined;
|
|
126
|
-
}) | undefined) => Promise<ClientScopeRepresentation[]>;
|
|
135
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientScopeRepresentation[]>;
|
|
127
136
|
addDefaultClientScope: (payload?: ({
|
|
128
137
|
id: string;
|
|
129
138
|
clientScopeId: string;
|
|
130
139
|
} & {
|
|
131
140
|
realm?: string | undefined;
|
|
132
|
-
}) | undefined) => Promise<void>;
|
|
141
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
133
142
|
delDefaultClientScope: (payload?: ({
|
|
134
143
|
id: string;
|
|
135
144
|
clientScopeId: string;
|
|
136
145
|
} & {
|
|
137
146
|
realm?: string | undefined;
|
|
138
|
-
}) | undefined) => Promise<void>;
|
|
147
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
139
148
|
listOptionalClientScopes: (payload?: ({
|
|
140
149
|
id: string;
|
|
141
150
|
} & {
|
|
142
151
|
realm?: string | undefined;
|
|
143
|
-
}) | undefined) => Promise<ClientScopeRepresentation[]>;
|
|
152
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ClientScopeRepresentation[]>;
|
|
144
153
|
addOptionalClientScope: (payload?: ({
|
|
145
154
|
id: string;
|
|
146
155
|
clientScopeId: string;
|
|
147
156
|
} & {
|
|
148
157
|
realm?: string | undefined;
|
|
149
|
-
}) | undefined) => Promise<void>;
|
|
158
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
150
159
|
delOptionalClientScope: (payload?: ({
|
|
151
160
|
id: string;
|
|
152
161
|
clientScopeId: string;
|
|
153
162
|
} & {
|
|
154
163
|
realm?: string | undefined;
|
|
155
|
-
}) | undefined) => Promise<void>;
|
|
164
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
156
165
|
addMultipleProtocolMappers: (query: {
|
|
157
166
|
id: string;
|
|
158
167
|
} & {
|
|
@@ -167,19 +176,19 @@ export declare class Clients extends Resource<{
|
|
|
167
176
|
id: string;
|
|
168
177
|
} & {
|
|
169
178
|
realm?: string | undefined;
|
|
170
|
-
}) | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
179
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
171
180
|
findProtocolMapperById: (payload?: ({
|
|
172
181
|
id: string;
|
|
173
182
|
mapperId: string;
|
|
174
183
|
} & {
|
|
175
184
|
realm?: string | undefined;
|
|
176
|
-
}) | undefined) => Promise<ProtocolMapperRepresentation>;
|
|
185
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ProtocolMapperRepresentation>;
|
|
177
186
|
findProtocolMappersByProtocol: (payload?: ({
|
|
178
187
|
id: string;
|
|
179
188
|
protocol: string;
|
|
180
189
|
} & {
|
|
181
190
|
realm?: string | undefined;
|
|
182
|
-
}) | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
191
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
183
192
|
updateProtocolMapper: (query: {
|
|
184
193
|
id: string;
|
|
185
194
|
mapperId: string;
|
|
@@ -191,12 +200,12 @@ export declare class Clients extends Resource<{
|
|
|
191
200
|
mapperId: string;
|
|
192
201
|
} & {
|
|
193
202
|
realm?: string | undefined;
|
|
194
|
-
}) | undefined) => Promise<void>;
|
|
203
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
195
204
|
listScopeMappings: (payload?: ({
|
|
196
205
|
id: string;
|
|
197
206
|
} & {
|
|
198
207
|
realm?: string | undefined;
|
|
199
|
-
}) | undefined) => Promise<MappingsRepresentation>;
|
|
208
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<MappingsRepresentation>;
|
|
200
209
|
addClientScopeMappings: (query: {
|
|
201
210
|
id: string;
|
|
202
211
|
client: string;
|
|
@@ -208,19 +217,19 @@ export declare class Clients extends Resource<{
|
|
|
208
217
|
client: string;
|
|
209
218
|
} & {
|
|
210
219
|
realm?: string | undefined;
|
|
211
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
220
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
212
221
|
listAvailableClientScopeMappings: (payload?: ({
|
|
213
222
|
id: string;
|
|
214
223
|
client: string;
|
|
215
224
|
} & {
|
|
216
225
|
realm?: string | undefined;
|
|
217
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
226
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
218
227
|
listCompositeClientScopeMappings: (payload?: ({
|
|
219
228
|
id: string;
|
|
220
229
|
client: string;
|
|
221
230
|
} & {
|
|
222
231
|
realm?: string | undefined;
|
|
223
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
232
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
224
233
|
delClientScopeMappings: (query: {
|
|
225
234
|
id: string;
|
|
226
235
|
client: string;
|
|
@@ -234,20 +243,20 @@ export declare class Clients extends Resource<{
|
|
|
234
243
|
scope: string;
|
|
235
244
|
} & {
|
|
236
245
|
realm?: string | undefined;
|
|
237
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
246
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
238
247
|
evaluateListProtocolMapper: (payload?: ({
|
|
239
248
|
id: string;
|
|
240
249
|
scope: string;
|
|
241
250
|
} & {
|
|
242
251
|
realm?: string | undefined;
|
|
243
|
-
}) | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
252
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ProtocolMapperRepresentation[]>;
|
|
244
253
|
evaluateGenerateAccessToken: (payload?: ({
|
|
245
254
|
id: string;
|
|
246
255
|
scope: string;
|
|
247
256
|
userId: string;
|
|
248
257
|
} & {
|
|
249
258
|
realm?: string | undefined;
|
|
250
|
-
}) | undefined) => Promise<object>;
|
|
259
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<object>;
|
|
251
260
|
addRealmScopeMappings: (query: {
|
|
252
261
|
id: string;
|
|
253
262
|
} & {
|
|
@@ -257,17 +266,17 @@ export declare class Clients extends Resource<{
|
|
|
257
266
|
id: string;
|
|
258
267
|
} & {
|
|
259
268
|
realm?: string | undefined;
|
|
260
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
269
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
261
270
|
listAvailableRealmScopeMappings: (payload?: ({
|
|
262
271
|
id: string;
|
|
263
272
|
} & {
|
|
264
273
|
realm?: string | undefined;
|
|
265
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
274
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
266
275
|
listCompositeRealmScopeMappings: (payload?: ({
|
|
267
276
|
id: string;
|
|
268
277
|
} & {
|
|
269
278
|
realm?: string | undefined;
|
|
270
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
279
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
271
280
|
delRealmScopeMappings: (query: {
|
|
272
281
|
id: string;
|
|
273
282
|
} & {
|
|
@@ -279,36 +288,34 @@ export declare class Clients extends Resource<{
|
|
|
279
288
|
max?: number | undefined;
|
|
280
289
|
} & {
|
|
281
290
|
realm?: string | undefined;
|
|
282
|
-
}) | undefined) => Promise<UserSessionRepresentation[]>;
|
|
291
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
283
292
|
listOfflineSessions: (payload?: ({
|
|
284
293
|
id: string;
|
|
285
294
|
first?: number | undefined;
|
|
286
295
|
max?: number | undefined;
|
|
287
296
|
} & {
|
|
288
297
|
realm?: string | undefined;
|
|
289
|
-
}) | undefined) => Promise<UserSessionRepresentation[]>;
|
|
298
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
290
299
|
getSessionCount: (payload?: ({
|
|
291
300
|
id: string;
|
|
292
301
|
} & {
|
|
293
302
|
realm?: string | undefined;
|
|
294
|
-
}) | undefined) => Promise<{
|
|
303
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
295
304
|
count: number;
|
|
296
305
|
}>;
|
|
297
306
|
getResourceServer: (payload?: ({
|
|
298
307
|
id: string;
|
|
299
308
|
} & {
|
|
300
309
|
realm?: string | undefined;
|
|
301
|
-
}) | undefined) => Promise<ResourceServerRepresentation>;
|
|
310
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation>;
|
|
302
311
|
updateResourceServer: (query: {
|
|
303
312
|
id: string;
|
|
304
313
|
} & {
|
|
305
314
|
realm?: string | undefined;
|
|
306
315
|
}, payload: ResourceServerRepresentation) => Promise<void>;
|
|
307
|
-
listResources: (payload?: ({
|
|
308
|
-
id: string;
|
|
309
|
-
} & {
|
|
316
|
+
listResources: (payload?: (ResourceQuery & {
|
|
310
317
|
realm?: string | undefined;
|
|
311
|
-
}) | undefined) => Promise<ResourceRepresentation[]>;
|
|
318
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation[]>;
|
|
312
319
|
createResource: (query: {
|
|
313
320
|
id: string;
|
|
314
321
|
} & {
|
|
@@ -319,7 +326,7 @@ export declare class Clients extends Resource<{
|
|
|
319
326
|
resourceId: string;
|
|
320
327
|
} & {
|
|
321
328
|
realm?: string | undefined;
|
|
322
|
-
}) | undefined) => Promise<ResourceRepresentation>;
|
|
329
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation>;
|
|
323
330
|
updateResource: (query: {
|
|
324
331
|
id: string;
|
|
325
332
|
resourceId: string;
|
|
@@ -331,7 +338,7 @@ export declare class Clients extends Resource<{
|
|
|
331
338
|
resourceId: string;
|
|
332
339
|
} & {
|
|
333
340
|
realm?: string | undefined;
|
|
334
|
-
}) | undefined) => Promise<void>;
|
|
341
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
335
342
|
importResource: (query: {
|
|
336
343
|
id: string;
|
|
337
344
|
} & {
|
|
@@ -341,7 +348,7 @@ export declare class Clients extends Resource<{
|
|
|
341
348
|
id: string;
|
|
342
349
|
} & {
|
|
343
350
|
realm?: string | undefined;
|
|
344
|
-
}) | undefined) => Promise<
|
|
351
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation>;
|
|
345
352
|
evaluateResource: (query: {
|
|
346
353
|
id: string;
|
|
347
354
|
} & {
|
|
@@ -349,13 +356,13 @@ export declare class Clients extends Resource<{
|
|
|
349
356
|
}, payload: ResourceEvaluation) => Promise<any>;
|
|
350
357
|
listPolicies: (payload?: (PolicyQuery & {
|
|
351
358
|
realm?: string | undefined;
|
|
352
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
359
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
353
360
|
findPolicyByName: (payload?: ({
|
|
354
361
|
id: string;
|
|
355
362
|
name: string;
|
|
356
363
|
} & {
|
|
357
364
|
realm?: string | undefined;
|
|
358
|
-
}) | undefined) => Promise<PolicyRepresentation>;
|
|
365
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation>;
|
|
359
366
|
updatePolicy: (query: {
|
|
360
367
|
id: string;
|
|
361
368
|
type: string;
|
|
@@ -375,13 +382,24 @@ export declare class Clients extends Resource<{
|
|
|
375
382
|
policyId: string;
|
|
376
383
|
} & {
|
|
377
384
|
realm?: string | undefined;
|
|
378
|
-
}) | undefined) => Promise<void>;
|
|
385
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
386
|
+
listDependentPolicies: (payload?: ({
|
|
387
|
+
id: string;
|
|
388
|
+
policyId: string;
|
|
389
|
+
} & {
|
|
390
|
+
realm?: string | undefined;
|
|
391
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
379
392
|
delPolicy: (payload?: ({
|
|
380
393
|
id: string;
|
|
381
394
|
policyId: string;
|
|
382
395
|
} & {
|
|
383
396
|
realm?: string | undefined;
|
|
384
|
-
}) | undefined) => Promise<void>;
|
|
397
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
398
|
+
listPolicyProviders: (payload?: ({
|
|
399
|
+
id: string;
|
|
400
|
+
} & {
|
|
401
|
+
realm?: string | undefined;
|
|
402
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyProviderRepresentation[]>;
|
|
385
403
|
createOrUpdatePolicy(payload: {
|
|
386
404
|
id: string;
|
|
387
405
|
policyName: string;
|
|
@@ -389,33 +407,35 @@ export declare class Clients extends Resource<{
|
|
|
389
407
|
}): Promise<PolicyRepresentation>;
|
|
390
408
|
listAllScopes: (payload?: ({
|
|
391
409
|
id: string;
|
|
392
|
-
|
|
410
|
+
name?: string | undefined;
|
|
411
|
+
deep?: boolean | undefined;
|
|
412
|
+
} & PaginatedQuery & {
|
|
393
413
|
realm?: string | undefined;
|
|
394
|
-
}) | undefined) => Promise<ScopeRepresentation[]>;
|
|
414
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ScopeRepresentation[]>;
|
|
395
415
|
listAllResourcesByScope: (payload?: ({
|
|
396
416
|
id: string;
|
|
397
417
|
scopeId: string;
|
|
398
418
|
} & {
|
|
399
419
|
realm?: string | undefined;
|
|
400
|
-
}) | undefined) => Promise<ResourceRepresentation[]>;
|
|
420
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation[]>;
|
|
401
421
|
listAllPermissionsByScope: (payload?: ({
|
|
402
422
|
id: string;
|
|
403
423
|
scopeId: string;
|
|
404
424
|
} & {
|
|
405
425
|
realm?: string | undefined;
|
|
406
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
426
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
407
427
|
listPermissionsByResource: (payload?: ({
|
|
408
428
|
id: string;
|
|
409
429
|
resourceId: string;
|
|
410
430
|
} & {
|
|
411
431
|
realm?: string | undefined;
|
|
412
|
-
}) | undefined) => Promise<ResourceServerRepresentation[]>;
|
|
432
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation[]>;
|
|
413
433
|
listScopesByResource: (payload?: ({
|
|
414
434
|
id: string;
|
|
415
435
|
resourceName: string;
|
|
416
436
|
} & {
|
|
417
437
|
realm?: string | undefined;
|
|
418
|
-
}) | undefined) => Promise<{
|
|
438
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
419
439
|
id: string;
|
|
420
440
|
name: string;
|
|
421
441
|
}[]>;
|
|
@@ -435,19 +455,21 @@ export declare class Clients extends Resource<{
|
|
|
435
455
|
scopeId: string;
|
|
436
456
|
} & {
|
|
437
457
|
realm?: string | undefined;
|
|
438
|
-
}) | undefined) => Promise<ScopeRepresentation>;
|
|
458
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ScopeRepresentation>;
|
|
439
459
|
delAuthorizationScope: (payload?: ({
|
|
440
460
|
id: string;
|
|
441
461
|
scopeId: string;
|
|
442
462
|
} & {
|
|
443
463
|
realm?: string | undefined;
|
|
444
|
-
}) | undefined) => Promise<void>;
|
|
464
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
445
465
|
findPermissions: (payload?: ({
|
|
446
466
|
id: string;
|
|
447
|
-
name
|
|
448
|
-
|
|
467
|
+
name?: string | undefined;
|
|
468
|
+
resource?: string | undefined;
|
|
469
|
+
scope?: string | undefined;
|
|
470
|
+
} & PaginatedQuery & {
|
|
449
471
|
realm?: string | undefined;
|
|
450
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
472
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
451
473
|
createPermission: (query: {
|
|
452
474
|
id: string;
|
|
453
475
|
type: string;
|
|
@@ -467,20 +489,20 @@ export declare class Clients extends Resource<{
|
|
|
467
489
|
permissionId: string;
|
|
468
490
|
} & {
|
|
469
491
|
realm?: string | undefined;
|
|
470
|
-
}) | undefined) => Promise<void>;
|
|
492
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
471
493
|
findOnePermission: (payload?: ({
|
|
472
494
|
id: string;
|
|
473
495
|
type: string;
|
|
474
496
|
permissionId: string;
|
|
475
497
|
} & {
|
|
476
498
|
realm?: string | undefined;
|
|
477
|
-
}) | undefined) => Promise<PolicyRepresentation | undefined>;
|
|
499
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation | undefined>;
|
|
478
500
|
getAssociatedScopes: (payload?: ({
|
|
479
501
|
id: string;
|
|
480
502
|
permissionId: string;
|
|
481
503
|
} & {
|
|
482
504
|
realm?: string | undefined;
|
|
483
|
-
}) | undefined) => Promise<{
|
|
505
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
484
506
|
id: string;
|
|
485
507
|
name: string;
|
|
486
508
|
}[]>;
|
|
@@ -489,15 +511,21 @@ export declare class Clients extends Resource<{
|
|
|
489
511
|
permissionId: string;
|
|
490
512
|
} & {
|
|
491
513
|
realm?: string | undefined;
|
|
492
|
-
}) | undefined) => Promise<{
|
|
514
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
493
515
|
_id: string;
|
|
494
516
|
name: string;
|
|
495
517
|
}[]>;
|
|
518
|
+
getAssociatedPolicies: (payload?: ({
|
|
519
|
+
id: string;
|
|
520
|
+
permissionId: string;
|
|
521
|
+
} & {
|
|
522
|
+
realm?: string | undefined;
|
|
523
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
496
524
|
getOfflineSessionCount: (payload?: ({
|
|
497
525
|
id: string;
|
|
498
526
|
} & {
|
|
499
527
|
realm?: string | undefined;
|
|
500
|
-
}) | undefined) => Promise<{
|
|
528
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
501
529
|
count: number;
|
|
502
530
|
}>;
|
|
503
531
|
getInstallationProviders: (payload?: ({
|
|
@@ -505,41 +533,41 @@ export declare class Clients extends Resource<{
|
|
|
505
533
|
providerId: string;
|
|
506
534
|
} & {
|
|
507
535
|
realm?: string | undefined;
|
|
508
|
-
}) | undefined) => Promise<string>;
|
|
536
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
509
537
|
pushRevocation: (payload?: ({
|
|
510
538
|
id: string;
|
|
511
539
|
} & {
|
|
512
540
|
realm?: string | undefined;
|
|
513
|
-
}) | undefined) => Promise<GlobalRequestResult>;
|
|
541
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<GlobalRequestResult>;
|
|
514
542
|
addClusterNode: (payload?: ({
|
|
515
543
|
id: string;
|
|
516
544
|
node: string;
|
|
517
545
|
} & {
|
|
518
546
|
realm?: string | undefined;
|
|
519
|
-
}) | undefined) => Promise<void>;
|
|
547
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
520
548
|
deleteClusterNode: (payload?: ({
|
|
521
549
|
id: string;
|
|
522
550
|
node: string;
|
|
523
551
|
} & {
|
|
524
552
|
realm?: string | undefined;
|
|
525
|
-
}) | undefined) => Promise<void>;
|
|
553
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
526
554
|
testNodesAvailable: (payload?: ({
|
|
527
555
|
id: string;
|
|
528
556
|
} & {
|
|
529
557
|
realm?: string | undefined;
|
|
530
|
-
}) | undefined) => Promise<GlobalRequestResult>;
|
|
558
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<GlobalRequestResult>;
|
|
531
559
|
getKeyInfo: (payload?: ({
|
|
532
560
|
id: string;
|
|
533
561
|
attr: string;
|
|
534
562
|
} & {
|
|
535
563
|
realm?: string | undefined;
|
|
536
|
-
}) | undefined) => Promise<CertificateRepresentation>;
|
|
564
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CertificateRepresentation>;
|
|
537
565
|
generateKey: (payload?: ({
|
|
538
566
|
id: string;
|
|
539
567
|
attr: string;
|
|
540
568
|
} & {
|
|
541
569
|
realm?: string | undefined;
|
|
542
|
-
}) | undefined) => Promise<CertificateRepresentation>;
|
|
570
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CertificateRepresentation>;
|
|
543
571
|
downloadKey: (query: {
|
|
544
572
|
id: string;
|
|
545
573
|
attr: string;
|
package/lib/resources/clients.js
CHANGED
|
@@ -241,7 +241,7 @@ var Clients = (function (_super) {
|
|
|
241
241
|
});
|
|
242
242
|
_this.listCompositeClientScopeMappings = _this.makeRequest({
|
|
243
243
|
method: 'GET',
|
|
244
|
-
path: '/{id}/scope-mappings/clients/{client}/
|
|
244
|
+
path: '/{id}/scope-mappings/clients/{client}/composite',
|
|
245
245
|
urlParamKeys: ['id', 'client']
|
|
246
246
|
});
|
|
247
247
|
_this.delClientScopeMappings = _this.makeUpdateRequest({
|
|
@@ -284,7 +284,7 @@ var Clients = (function (_super) {
|
|
|
284
284
|
});
|
|
285
285
|
_this.listCompositeRealmScopeMappings = _this.makeRequest({
|
|
286
286
|
method: 'GET',
|
|
287
|
-
path: '/{id}/scope-mappings/realm/
|
|
287
|
+
path: '/{id}/scope-mappings/realm/composite',
|
|
288
288
|
urlParamKeys: ['id']
|
|
289
289
|
});
|
|
290
290
|
_this.delRealmScopeMappings = _this.makeUpdateRequest({
|
|
@@ -383,11 +383,21 @@ var Clients = (function (_super) {
|
|
|
383
383
|
urlParamKeys: ['id', 'type', 'policyId'],
|
|
384
384
|
catchNotFound: true
|
|
385
385
|
});
|
|
386
|
+
_this.listDependentPolicies = _this.makeRequest({
|
|
387
|
+
method: 'GET',
|
|
388
|
+
path: '/{id}/authz/resource-server/policy/{policyId}/dependentPolicies',
|
|
389
|
+
urlParamKeys: ['id', 'policyId']
|
|
390
|
+
});
|
|
386
391
|
_this.delPolicy = _this.makeRequest({
|
|
387
392
|
method: 'DELETE',
|
|
388
393
|
path: '{id}/authz/resource-server/policy/{policyId}',
|
|
389
394
|
urlParamKeys: ['id', 'policyId']
|
|
390
395
|
});
|
|
396
|
+
_this.listPolicyProviders = _this.makeRequest({
|
|
397
|
+
method: 'GET',
|
|
398
|
+
path: '/{id}/authz/resource-server/policy/providers',
|
|
399
|
+
urlParamKeys: ['id']
|
|
400
|
+
});
|
|
391
401
|
_this.listAllScopes = _this.makeRequest({
|
|
392
402
|
method: 'GET',
|
|
393
403
|
path: '/{id}/authz/resource-server/scope',
|
|
@@ -468,6 +478,11 @@ var Clients = (function (_super) {
|
|
|
468
478
|
path: '/{id}/authz/resource-server/policy/{permissionId}/resources',
|
|
469
479
|
urlParamKeys: ['id', 'permissionId']
|
|
470
480
|
});
|
|
481
|
+
_this.getAssociatedPolicies = _this.makeRequest({
|
|
482
|
+
method: 'GET',
|
|
483
|
+
path: '/{id}/authz/resource-server/policy/{permissionId}/associatedPolicies',
|
|
484
|
+
urlParamKeys: ['id', 'permissionId']
|
|
485
|
+
});
|
|
471
486
|
_this.getOfflineSessionCount = _this.makeRequest({
|
|
472
487
|
method: 'GET',
|
|
473
488
|
path: '/{id}/offline-session-count',
|