@keycloak/keycloak-admin-client 17.0.0-dev.8 → 18.0.0-dev.1
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 +104 -70
- package/lib/resources/clients.js +24 -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,6 +16,7 @@ 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
|
+
import PolicyProviderRepresentation from '../defs/policyProviderRepresentation';
|
|
19
20
|
export interface PaginatedQuery {
|
|
20
21
|
first?: number;
|
|
21
22
|
max?: number;
|
|
@@ -25,6 +26,14 @@ export interface ClientQuery extends PaginatedQuery {
|
|
|
25
26
|
viewableOnly?: boolean;
|
|
26
27
|
search?: boolean;
|
|
27
28
|
}
|
|
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
|
+
}
|
|
28
37
|
export interface PolicyQuery extends PaginatedQuery {
|
|
29
38
|
id?: string;
|
|
30
39
|
name?: string;
|
|
@@ -40,17 +49,17 @@ export declare class Clients extends Resource<{
|
|
|
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,34 @@ 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>;
|
|
260
|
+
evaluateGenerateUserInfo: (payload?: ({
|
|
261
|
+
id: string;
|
|
262
|
+
scope: string;
|
|
263
|
+
userId: string;
|
|
264
|
+
} & {
|
|
265
|
+
realm?: string | undefined;
|
|
266
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<object>;
|
|
267
|
+
evaluateGenerateIdToken: (payload?: ({
|
|
268
|
+
id: string;
|
|
269
|
+
scope: string;
|
|
270
|
+
userId: string;
|
|
271
|
+
} & {
|
|
272
|
+
realm?: string | undefined;
|
|
273
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<object>;
|
|
251
274
|
addRealmScopeMappings: (query: {
|
|
252
275
|
id: string;
|
|
253
276
|
} & {
|
|
@@ -257,17 +280,17 @@ export declare class Clients extends Resource<{
|
|
|
257
280
|
id: string;
|
|
258
281
|
} & {
|
|
259
282
|
realm?: string | undefined;
|
|
260
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
283
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
261
284
|
listAvailableRealmScopeMappings: (payload?: ({
|
|
262
285
|
id: string;
|
|
263
286
|
} & {
|
|
264
287
|
realm?: string | undefined;
|
|
265
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
288
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
266
289
|
listCompositeRealmScopeMappings: (payload?: ({
|
|
267
290
|
id: string;
|
|
268
291
|
} & {
|
|
269
292
|
realm?: string | undefined;
|
|
270
|
-
}) | undefined) => Promise<RoleRepresentation[]>;
|
|
293
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
271
294
|
delRealmScopeMappings: (query: {
|
|
272
295
|
id: string;
|
|
273
296
|
} & {
|
|
@@ -279,36 +302,34 @@ export declare class Clients extends Resource<{
|
|
|
279
302
|
max?: number | undefined;
|
|
280
303
|
} & {
|
|
281
304
|
realm?: string | undefined;
|
|
282
|
-
}) | undefined) => Promise<UserSessionRepresentation[]>;
|
|
305
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
283
306
|
listOfflineSessions: (payload?: ({
|
|
284
307
|
id: string;
|
|
285
308
|
first?: number | undefined;
|
|
286
309
|
max?: number | undefined;
|
|
287
310
|
} & {
|
|
288
311
|
realm?: string | undefined;
|
|
289
|
-
}) | undefined) => Promise<UserSessionRepresentation[]>;
|
|
312
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
290
313
|
getSessionCount: (payload?: ({
|
|
291
314
|
id: string;
|
|
292
315
|
} & {
|
|
293
316
|
realm?: string | undefined;
|
|
294
|
-
}) | undefined) => Promise<{
|
|
317
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
295
318
|
count: number;
|
|
296
319
|
}>;
|
|
297
320
|
getResourceServer: (payload?: ({
|
|
298
321
|
id: string;
|
|
299
322
|
} & {
|
|
300
323
|
realm?: string | undefined;
|
|
301
|
-
}) | undefined) => Promise<ResourceServerRepresentation>;
|
|
324
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation>;
|
|
302
325
|
updateResourceServer: (query: {
|
|
303
326
|
id: string;
|
|
304
327
|
} & {
|
|
305
328
|
realm?: string | undefined;
|
|
306
329
|
}, payload: ResourceServerRepresentation) => Promise<void>;
|
|
307
|
-
listResources: (payload?: ({
|
|
308
|
-
id: string;
|
|
309
|
-
} & {
|
|
330
|
+
listResources: (payload?: (ResourceQuery & {
|
|
310
331
|
realm?: string | undefined;
|
|
311
|
-
}) | undefined) => Promise<ResourceRepresentation[]>;
|
|
332
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation[]>;
|
|
312
333
|
createResource: (query: {
|
|
313
334
|
id: string;
|
|
314
335
|
} & {
|
|
@@ -319,7 +340,7 @@ export declare class Clients extends Resource<{
|
|
|
319
340
|
resourceId: string;
|
|
320
341
|
} & {
|
|
321
342
|
realm?: string | undefined;
|
|
322
|
-
}) | undefined) => Promise<ResourceRepresentation>;
|
|
343
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation>;
|
|
323
344
|
updateResource: (query: {
|
|
324
345
|
id: string;
|
|
325
346
|
resourceId: string;
|
|
@@ -331,7 +352,7 @@ export declare class Clients extends Resource<{
|
|
|
331
352
|
resourceId: string;
|
|
332
353
|
} & {
|
|
333
354
|
realm?: string | undefined;
|
|
334
|
-
}) | undefined) => Promise<void>;
|
|
355
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
335
356
|
importResource: (query: {
|
|
336
357
|
id: string;
|
|
337
358
|
} & {
|
|
@@ -341,7 +362,7 @@ export declare class Clients extends Resource<{
|
|
|
341
362
|
id: string;
|
|
342
363
|
} & {
|
|
343
364
|
realm?: string | undefined;
|
|
344
|
-
}) | undefined) => Promise<
|
|
365
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation>;
|
|
345
366
|
evaluateResource: (query: {
|
|
346
367
|
id: string;
|
|
347
368
|
} & {
|
|
@@ -349,13 +370,13 @@ export declare class Clients extends Resource<{
|
|
|
349
370
|
}, payload: ResourceEvaluation) => Promise<any>;
|
|
350
371
|
listPolicies: (payload?: (PolicyQuery & {
|
|
351
372
|
realm?: string | undefined;
|
|
352
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
373
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
353
374
|
findPolicyByName: (payload?: ({
|
|
354
375
|
id: string;
|
|
355
376
|
name: string;
|
|
356
377
|
} & {
|
|
357
378
|
realm?: string | undefined;
|
|
358
|
-
}) | undefined) => Promise<PolicyRepresentation>;
|
|
379
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation>;
|
|
359
380
|
updatePolicy: (query: {
|
|
360
381
|
id: string;
|
|
361
382
|
type: string;
|
|
@@ -375,13 +396,24 @@ export declare class Clients extends Resource<{
|
|
|
375
396
|
policyId: string;
|
|
376
397
|
} & {
|
|
377
398
|
realm?: string | undefined;
|
|
378
|
-
}) | undefined) => Promise<void>;
|
|
399
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
400
|
+
listDependentPolicies: (payload?: ({
|
|
401
|
+
id: string;
|
|
402
|
+
policyId: string;
|
|
403
|
+
} & {
|
|
404
|
+
realm?: string | undefined;
|
|
405
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
379
406
|
delPolicy: (payload?: ({
|
|
380
407
|
id: string;
|
|
381
408
|
policyId: string;
|
|
382
409
|
} & {
|
|
383
410
|
realm?: string | undefined;
|
|
384
|
-
}) | undefined) => Promise<void>;
|
|
411
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
412
|
+
listPolicyProviders: (payload?: ({
|
|
413
|
+
id: string;
|
|
414
|
+
} & {
|
|
415
|
+
realm?: string | undefined;
|
|
416
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyProviderRepresentation[]>;
|
|
385
417
|
createOrUpdatePolicy(payload: {
|
|
386
418
|
id: string;
|
|
387
419
|
policyName: string;
|
|
@@ -389,33 +421,35 @@ export declare class Clients extends Resource<{
|
|
|
389
421
|
}): Promise<PolicyRepresentation>;
|
|
390
422
|
listAllScopes: (payload?: ({
|
|
391
423
|
id: string;
|
|
392
|
-
|
|
424
|
+
name?: string | undefined;
|
|
425
|
+
deep?: boolean | undefined;
|
|
426
|
+
} & PaginatedQuery & {
|
|
393
427
|
realm?: string | undefined;
|
|
394
|
-
}) | undefined) => Promise<ScopeRepresentation[]>;
|
|
428
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ScopeRepresentation[]>;
|
|
395
429
|
listAllResourcesByScope: (payload?: ({
|
|
396
430
|
id: string;
|
|
397
431
|
scopeId: string;
|
|
398
432
|
} & {
|
|
399
433
|
realm?: string | undefined;
|
|
400
|
-
}) | undefined) => Promise<ResourceRepresentation[]>;
|
|
434
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceRepresentation[]>;
|
|
401
435
|
listAllPermissionsByScope: (payload?: ({
|
|
402
436
|
id: string;
|
|
403
437
|
scopeId: string;
|
|
404
438
|
} & {
|
|
405
439
|
realm?: string | undefined;
|
|
406
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
440
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
407
441
|
listPermissionsByResource: (payload?: ({
|
|
408
442
|
id: string;
|
|
409
443
|
resourceId: string;
|
|
410
444
|
} & {
|
|
411
445
|
realm?: string | undefined;
|
|
412
|
-
}) | undefined) => Promise<ResourceServerRepresentation[]>;
|
|
446
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ResourceServerRepresentation[]>;
|
|
413
447
|
listScopesByResource: (payload?: ({
|
|
414
448
|
id: string;
|
|
415
449
|
resourceName: string;
|
|
416
450
|
} & {
|
|
417
451
|
realm?: string | undefined;
|
|
418
|
-
}) | undefined) => Promise<{
|
|
452
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
419
453
|
id: string;
|
|
420
454
|
name: string;
|
|
421
455
|
}[]>;
|
|
@@ -435,13 +469,13 @@ export declare class Clients extends Resource<{
|
|
|
435
469
|
scopeId: string;
|
|
436
470
|
} & {
|
|
437
471
|
realm?: string | undefined;
|
|
438
|
-
}) | undefined) => Promise<ScopeRepresentation>;
|
|
472
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ScopeRepresentation>;
|
|
439
473
|
delAuthorizationScope: (payload?: ({
|
|
440
474
|
id: string;
|
|
441
475
|
scopeId: string;
|
|
442
476
|
} & {
|
|
443
477
|
realm?: string | undefined;
|
|
444
|
-
}) | undefined) => Promise<void>;
|
|
478
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
445
479
|
findPermissions: (payload?: ({
|
|
446
480
|
id: string;
|
|
447
481
|
name?: string | undefined;
|
|
@@ -449,7 +483,7 @@ export declare class Clients extends Resource<{
|
|
|
449
483
|
scope?: string | undefined;
|
|
450
484
|
} & PaginatedQuery & {
|
|
451
485
|
realm?: string | undefined;
|
|
452
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
486
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
453
487
|
createPermission: (query: {
|
|
454
488
|
id: string;
|
|
455
489
|
type: string;
|
|
@@ -469,20 +503,20 @@ export declare class Clients extends Resource<{
|
|
|
469
503
|
permissionId: string;
|
|
470
504
|
} & {
|
|
471
505
|
realm?: string | undefined;
|
|
472
|
-
}) | undefined) => Promise<void>;
|
|
506
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
473
507
|
findOnePermission: (payload?: ({
|
|
474
508
|
id: string;
|
|
475
509
|
type: string;
|
|
476
510
|
permissionId: string;
|
|
477
511
|
} & {
|
|
478
512
|
realm?: string | undefined;
|
|
479
|
-
}) | undefined) => Promise<PolicyRepresentation | undefined>;
|
|
513
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation | undefined>;
|
|
480
514
|
getAssociatedScopes: (payload?: ({
|
|
481
515
|
id: string;
|
|
482
516
|
permissionId: string;
|
|
483
517
|
} & {
|
|
484
518
|
realm?: string | undefined;
|
|
485
|
-
}) | undefined) => Promise<{
|
|
519
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
486
520
|
id: string;
|
|
487
521
|
name: string;
|
|
488
522
|
}[]>;
|
|
@@ -491,7 +525,7 @@ export declare class Clients extends Resource<{
|
|
|
491
525
|
permissionId: string;
|
|
492
526
|
} & {
|
|
493
527
|
realm?: string | undefined;
|
|
494
|
-
}) | undefined) => Promise<{
|
|
528
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
495
529
|
_id: string;
|
|
496
530
|
name: string;
|
|
497
531
|
}[]>;
|
|
@@ -500,12 +534,12 @@ export declare class Clients extends Resource<{
|
|
|
500
534
|
permissionId: string;
|
|
501
535
|
} & {
|
|
502
536
|
realm?: string | undefined;
|
|
503
|
-
}) | undefined) => Promise<PolicyRepresentation[]>;
|
|
537
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<PolicyRepresentation[]>;
|
|
504
538
|
getOfflineSessionCount: (payload?: ({
|
|
505
539
|
id: string;
|
|
506
540
|
} & {
|
|
507
541
|
realm?: string | undefined;
|
|
508
|
-
}) | undefined) => Promise<{
|
|
542
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
509
543
|
count: number;
|
|
510
544
|
}>;
|
|
511
545
|
getInstallationProviders: (payload?: ({
|
|
@@ -513,41 +547,41 @@ export declare class Clients extends Resource<{
|
|
|
513
547
|
providerId: string;
|
|
514
548
|
} & {
|
|
515
549
|
realm?: string | undefined;
|
|
516
|
-
}) | undefined) => Promise<string>;
|
|
550
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
517
551
|
pushRevocation: (payload?: ({
|
|
518
552
|
id: string;
|
|
519
553
|
} & {
|
|
520
554
|
realm?: string | undefined;
|
|
521
|
-
}) | undefined) => Promise<GlobalRequestResult>;
|
|
555
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<GlobalRequestResult>;
|
|
522
556
|
addClusterNode: (payload?: ({
|
|
523
557
|
id: string;
|
|
524
558
|
node: string;
|
|
525
559
|
} & {
|
|
526
560
|
realm?: string | undefined;
|
|
527
|
-
}) | undefined) => Promise<void>;
|
|
561
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
528
562
|
deleteClusterNode: (payload?: ({
|
|
529
563
|
id: string;
|
|
530
564
|
node: string;
|
|
531
565
|
} & {
|
|
532
566
|
realm?: string | undefined;
|
|
533
|
-
}) | undefined) => Promise<void>;
|
|
567
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
534
568
|
testNodesAvailable: (payload?: ({
|
|
535
569
|
id: string;
|
|
536
570
|
} & {
|
|
537
571
|
realm?: string | undefined;
|
|
538
|
-
}) | undefined) => Promise<GlobalRequestResult>;
|
|
572
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<GlobalRequestResult>;
|
|
539
573
|
getKeyInfo: (payload?: ({
|
|
540
574
|
id: string;
|
|
541
575
|
attr: string;
|
|
542
576
|
} & {
|
|
543
577
|
realm?: string | undefined;
|
|
544
|
-
}) | undefined) => Promise<CertificateRepresentation>;
|
|
578
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CertificateRepresentation>;
|
|
545
579
|
generateKey: (payload?: ({
|
|
546
580
|
id: string;
|
|
547
581
|
attr: string;
|
|
548
582
|
} & {
|
|
549
583
|
realm?: string | undefined;
|
|
550
|
-
}) | undefined) => Promise<CertificateRepresentation>;
|
|
584
|
+
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CertificateRepresentation>;
|
|
551
585
|
downloadKey: (query: {
|
|
552
586
|
id: string;
|
|
553
587
|
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({
|
|
@@ -267,6 +267,18 @@ var Clients = (function (_super) {
|
|
|
267
267
|
urlParamKeys: ['id'],
|
|
268
268
|
queryParamKeys: ['scope', 'userId']
|
|
269
269
|
});
|
|
270
|
+
_this.evaluateGenerateUserInfo = _this.makeRequest({
|
|
271
|
+
method: 'GET',
|
|
272
|
+
path: '/{id}/evaluate-scopes/generate-example-userinfo',
|
|
273
|
+
urlParamKeys: ['id'],
|
|
274
|
+
queryParamKeys: ['scope', 'userId']
|
|
275
|
+
});
|
|
276
|
+
_this.evaluateGenerateIdToken = _this.makeRequest({
|
|
277
|
+
method: 'GET',
|
|
278
|
+
path: '/{id}/evaluate-scopes/generate-example-id-token',
|
|
279
|
+
urlParamKeys: ['id'],
|
|
280
|
+
queryParamKeys: ['scope', 'userId']
|
|
281
|
+
});
|
|
270
282
|
_this.addRealmScopeMappings = _this.makeUpdateRequest({
|
|
271
283
|
method: 'POST',
|
|
272
284
|
path: '/{id}/scope-mappings/realm',
|
|
@@ -284,7 +296,7 @@ var Clients = (function (_super) {
|
|
|
284
296
|
});
|
|
285
297
|
_this.listCompositeRealmScopeMappings = _this.makeRequest({
|
|
286
298
|
method: 'GET',
|
|
287
|
-
path: '/{id}/scope-mappings/realm/
|
|
299
|
+
path: '/{id}/scope-mappings/realm/composite',
|
|
288
300
|
urlParamKeys: ['id']
|
|
289
301
|
});
|
|
290
302
|
_this.delRealmScopeMappings = _this.makeUpdateRequest({
|
|
@@ -383,11 +395,21 @@ var Clients = (function (_super) {
|
|
|
383
395
|
urlParamKeys: ['id', 'type', 'policyId'],
|
|
384
396
|
catchNotFound: true
|
|
385
397
|
});
|
|
398
|
+
_this.listDependentPolicies = _this.makeRequest({
|
|
399
|
+
method: 'GET',
|
|
400
|
+
path: '/{id}/authz/resource-server/policy/{policyId}/dependentPolicies',
|
|
401
|
+
urlParamKeys: ['id', 'policyId']
|
|
402
|
+
});
|
|
386
403
|
_this.delPolicy = _this.makeRequest({
|
|
387
404
|
method: 'DELETE',
|
|
388
405
|
path: '{id}/authz/resource-server/policy/{policyId}',
|
|
389
406
|
urlParamKeys: ['id', 'policyId']
|
|
390
407
|
});
|
|
408
|
+
_this.listPolicyProviders = _this.makeRequest({
|
|
409
|
+
method: 'GET',
|
|
410
|
+
path: '/{id}/authz/resource-server/policy/providers',
|
|
411
|
+
urlParamKeys: ['id']
|
|
412
|
+
});
|
|
391
413
|
_this.listAllScopes = _this.makeRequest({
|
|
392
414
|
method: 'GET',
|
|
393
415
|
path: '/{id}/authz/resource-server/scope',
|