@keycloak/keycloak-admin-client 19.0.0-dev.2 → 19.0.0-dev.20
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 +4 -4
- 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 -50
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/resources/roles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/resources/roles.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Resource from './resource';
|
|
2
|
-
import { ServerInfoRepresentation } from '../defs/serverInfoRepesentation';
|
|
3
|
-
import KeycloakAdminClient from '
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
import type { ServerInfoRepresentation } from '../defs/serverInfoRepesentation.js';
|
|
3
|
+
import type KeycloakAdminClient from '../index.js';
|
|
4
4
|
export declare class ServerInfo extends Resource {
|
|
5
5
|
constructor(client: KeycloakAdminClient);
|
|
6
|
-
find: (payload?: {} | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<ServerInfoRepresentation>;
|
|
6
|
+
find: (payload?: {} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<ServerInfoRepresentation>;
|
|
7
7
|
}
|
|
@@ -1,39 +1,14 @@
|
|
|
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.ServerInfo = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var ServerInfo = (function (_super) {
|
|
24
|
-
__extends(ServerInfo, _super);
|
|
25
|
-
function ServerInfo(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class ServerInfo extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/serverinfo',
|
|
28
|
-
getBaseUrl:
|
|
29
|
-
})
|
|
30
|
-
|
|
6
|
+
getBaseUrl: () => client.baseUrl,
|
|
7
|
+
});
|
|
8
|
+
this.find = this.makeRequest({
|
|
31
9
|
method: 'GET',
|
|
32
|
-
path: '/'
|
|
10
|
+
path: '/',
|
|
33
11
|
});
|
|
34
|
-
return _this;
|
|
35
12
|
}
|
|
36
|
-
|
|
37
|
-
}(resource_1["default"]));
|
|
38
|
-
exports.ServerInfo = ServerInfo;
|
|
13
|
+
}
|
|
39
14
|
//# sourceMappingURL=serverInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverInfo.js","sourceRoot":"","sources":["../../src/resources/serverInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serverInfo.js","sourceRoot":"","sources":["../../src/resources/serverInfo.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAIrC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,mBAAmB;YACzB,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO;SACjC,CAAC,CAAC;QAGE,SAAI,GAAG,IAAI,CAAC,WAAW,CAA+B;YAC3D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,GAAG;SACV,CAAC,CAAC;IALH,CAAC;CAMF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Resource from './resource';
|
|
2
|
-
import KeycloakAdminClient from '
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
import type KeycloakAdminClient from '../index.js';
|
|
3
3
|
export declare class Sessions extends Resource<{
|
|
4
4
|
realm?: string;
|
|
5
5
|
}> {
|
|
6
6
|
find: (payload?: {
|
|
7
7
|
realm?: string | undefined;
|
|
8
|
-
} | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<Record<string, any>[]>;
|
|
8
|
+
} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<Record<string, any>[]>;
|
|
9
9
|
constructor(client: KeycloakAdminClient);
|
|
10
10
|
}
|
|
@@ -1,41 +1,16 @@
|
|
|
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.Sessions = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var Sessions = (function (_super) {
|
|
24
|
-
__extends(Sessions, _super);
|
|
25
|
-
function Sessions(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class Sessions extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/realms/{realm}/client-session-stats',
|
|
28
|
-
getUrlParams:
|
|
29
|
-
realm: client.realmName
|
|
30
|
-
})
|
|
31
|
-
getBaseUrl:
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
method: 'GET'
|
|
6
|
+
getUrlParams: () => ({
|
|
7
|
+
realm: client.realmName,
|
|
8
|
+
}),
|
|
9
|
+
getBaseUrl: () => client.baseUrl,
|
|
10
|
+
});
|
|
11
|
+
this.find = this.makeRequest({
|
|
12
|
+
method: 'GET',
|
|
35
13
|
});
|
|
36
|
-
return _this;
|
|
37
14
|
}
|
|
38
|
-
|
|
39
|
-
}(resource_1["default"]));
|
|
40
|
-
exports.Sessions = Sessions;
|
|
15
|
+
}
|
|
41
16
|
//# sourceMappingURL=sessions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/resources/sessions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/resources/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAGrC,MAAM,OAAO,QAAS,SAAQ,QAA0B;IAMtD,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,4CAA4C;YAClD,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;QAXE,SAAI,GAAG,IAAI,CAAC,WAAW,CAA4B;YACxD,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IAUH,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KeycloakAdminClient } from '../client';
|
|
2
|
-
import SynchronizationResultRepresentation from '../defs/synchronizationResultRepresentation';
|
|
3
|
-
import Resource from './resource';
|
|
1
|
+
import type { KeycloakAdminClient } from '../client.js';
|
|
2
|
+
import type SynchronizationResultRepresentation from '../defs/synchronizationResultRepresentation.js';
|
|
3
|
+
import Resource from './resource.js';
|
|
4
4
|
declare type ActionType = 'triggerFullSync' | 'triggerChangedUsersSync';
|
|
5
5
|
declare type DirectionType = 'fedToKeycloak' | 'keycloakToFed';
|
|
6
6
|
declare type NameResponse = {
|
|
@@ -14,30 +14,30 @@ export declare class UserStorageProvider extends Resource<{
|
|
|
14
14
|
id: string;
|
|
15
15
|
} & {
|
|
16
16
|
realm?: string | undefined;
|
|
17
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<NameResponse>;
|
|
17
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<NameResponse>;
|
|
18
18
|
removeImportedUsers: (payload?: ({
|
|
19
19
|
id: string;
|
|
20
20
|
} & {
|
|
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
|
sync: (payload?: ({
|
|
24
24
|
id: string;
|
|
25
25
|
action?: ActionType | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
realm?: string | undefined;
|
|
28
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<SynchronizationResultRepresentation>;
|
|
28
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<SynchronizationResultRepresentation>;
|
|
29
29
|
unlinkUsers: (payload?: ({
|
|
30
30
|
id: string;
|
|
31
31
|
} & {
|
|
32
32
|
realm?: string | undefined;
|
|
33
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
33
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
34
34
|
mappersSync: (payload?: ({
|
|
35
35
|
id: string;
|
|
36
36
|
parentId: string;
|
|
37
37
|
direction?: DirectionType | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
realm?: string | undefined;
|
|
40
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<SynchronizationResultRepresentation>;
|
|
40
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<SynchronizationResultRepresentation>;
|
|
41
41
|
constructor(client: KeycloakAdminClient);
|
|
42
42
|
}
|
|
43
43
|
export {};
|
|
@@ -1,65 +1,40 @@
|
|
|
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.UserStorageProvider = void 0;
|
|
22
|
-
var resource_1 = __importDefault(require("./resource"));
|
|
23
|
-
var UserStorageProvider = (function (_super) {
|
|
24
|
-
__extends(UserStorageProvider, _super);
|
|
25
|
-
function UserStorageProvider(client) {
|
|
26
|
-
var _this = _super.call(this, client, {
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
export class UserStorageProvider extends Resource {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client, {
|
|
27
5
|
path: '/admin/realms/{realm}/user-storage',
|
|
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.name = this.makeRequest({
|
|
34
12
|
method: 'GET',
|
|
35
13
|
path: '/{id}/name',
|
|
36
|
-
urlParamKeys: ['id']
|
|
14
|
+
urlParamKeys: ['id'],
|
|
37
15
|
});
|
|
38
|
-
|
|
16
|
+
this.removeImportedUsers = this.makeRequest({
|
|
39
17
|
method: 'POST',
|
|
40
18
|
path: '/{id}/remove-imported-users',
|
|
41
|
-
urlParamKeys: ['id']
|
|
19
|
+
urlParamKeys: ['id'],
|
|
42
20
|
});
|
|
43
|
-
|
|
21
|
+
this.sync = this.makeRequest({
|
|
44
22
|
method: 'POST',
|
|
45
23
|
path: '/{id}/sync',
|
|
46
24
|
urlParamKeys: ['id'],
|
|
47
|
-
queryParamKeys: ['action']
|
|
25
|
+
queryParamKeys: ['action'],
|
|
48
26
|
});
|
|
49
|
-
|
|
27
|
+
this.unlinkUsers = this.makeRequest({
|
|
50
28
|
method: 'POST',
|
|
51
29
|
path: '/{id}/unlink-users',
|
|
52
|
-
urlParamKeys: ['id']
|
|
30
|
+
urlParamKeys: ['id'],
|
|
53
31
|
});
|
|
54
|
-
|
|
32
|
+
this.mappersSync = this.makeRequest({
|
|
55
33
|
method: 'POST',
|
|
56
34
|
path: '/{parentId}/mappers/{id}/sync',
|
|
57
35
|
urlParamKeys: ['id', 'parentId'],
|
|
58
|
-
queryParamKeys: ['direction']
|
|
36
|
+
queryParamKeys: ['direction'],
|
|
59
37
|
});
|
|
60
|
-
return _this;
|
|
61
38
|
}
|
|
62
|
-
|
|
63
|
-
}(resource_1["default"]));
|
|
64
|
-
exports.UserStorageProvider = UserStorageProvider;
|
|
39
|
+
}
|
|
65
40
|
//# sourceMappingURL=userStorageProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userStorageProvider.js","sourceRoot":"","sources":["../../src/resources/userStorageProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"userStorageProvider.js","sourceRoot":"","sources":["../../src/resources/userStorageProvider.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,eAAe,CAAC;AASrC,MAAM,OAAO,mBAAoB,SAAQ,QAA0B;IAuCjE,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,EAAE;YACZ,IAAI,EAAE,oCAAoC;YAC1C,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;QA7CE,SAAI,GAAG,IAAI,CAAC,WAAW,CAA6B;YACzD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,YAAY;YAClB,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;QAEI,wBAAmB,GAAG,IAAI,CAAC,WAAW,CAAqB;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,6BAA6B;YACnC,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;QAEI,SAAI,GAAG,IAAI,CAAC,WAAW,CAG5B;YACA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,YAAY,EAAE,CAAC,IAAI,CAAC;YACpB,cAAc,EAAE,CAAC,QAAQ,CAAC;SAC3B,CAAC,CAAC;QAEI,gBAAW,GAAG,IAAI,CAAC,WAAW,CAAqB;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,oBAAoB;YAC1B,YAAY,EAAE,CAAC,IAAI,CAAC;SACrB,CAAC,CAAC;QAEI,gBAAW,GAAG,IAAI,CAAC,WAAW,CAGnC;YACA,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,+BAA+B;YACrC,YAAY,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC;YAChC,cAAc,EAAE,CAAC,WAAW,CAAC;SAC9B,CAAC,CAAC;IAUH,CAAC;CACF"}
|
package/lib/resources/users.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import Resource from './resource';
|
|
2
|
-
import UserRepresentation from '../defs/userRepresentation';
|
|
3
|
-
import UserConsentRepresentation from '../defs/userConsentRepresentation';
|
|
4
|
-
import UserSessionRepresentation from '../defs/userSessionRepresentation';
|
|
5
|
-
import { KeycloakAdminClient } from '../client';
|
|
6
|
-
import MappingsRepresentation from '../defs/mappingsRepresentation';
|
|
7
|
-
import RoleRepresentation
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
1
|
+
import Resource from './resource.js';
|
|
2
|
+
import type UserRepresentation from '../defs/userRepresentation.js';
|
|
3
|
+
import type UserConsentRepresentation from '../defs/userConsentRepresentation.js';
|
|
4
|
+
import type UserSessionRepresentation from '../defs/userSessionRepresentation.js';
|
|
5
|
+
import type { KeycloakAdminClient } from '../client.js';
|
|
6
|
+
import type MappingsRepresentation from '../defs/mappingsRepresentation.js';
|
|
7
|
+
import type RoleRepresentation from '../defs/roleRepresentation.js';
|
|
8
|
+
import type { RoleMappingPayload } from '../defs/roleRepresentation.js';
|
|
9
|
+
import type { RequiredActionAlias } from '../defs/requiredActionProviderRepresentation.js';
|
|
10
|
+
import type FederatedIdentityRepresentation from '../defs/federatedIdentityRepresentation.js';
|
|
11
|
+
import type GroupRepresentation from '../defs/groupRepresentation.js';
|
|
12
|
+
import type CredentialRepresentation from '../defs/credentialRepresentation.js';
|
|
13
|
+
import type UserProfileConfig from '../defs/userProfileConfig.js';
|
|
13
14
|
export interface UserQuery {
|
|
14
15
|
email?: string;
|
|
15
16
|
first?: number;
|
|
@@ -26,17 +27,17 @@ export declare class Users extends Resource<{
|
|
|
26
27
|
}> {
|
|
27
28
|
find: (payload?: (UserQuery & {
|
|
28
29
|
realm?: string | undefined;
|
|
29
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation[]>;
|
|
30
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation[]>;
|
|
30
31
|
create: (payload?: (UserRepresentation & {
|
|
31
32
|
realm?: string | undefined;
|
|
32
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
33
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
33
34
|
id: string;
|
|
34
35
|
}>;
|
|
35
36
|
findOne: (payload?: ({
|
|
36
37
|
id: string;
|
|
37
38
|
} & {
|
|
38
39
|
realm?: string | undefined;
|
|
39
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation | undefined>;
|
|
40
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserRepresentation | undefined>;
|
|
40
41
|
update: (query: {
|
|
41
42
|
id: string;
|
|
42
43
|
} & {
|
|
@@ -46,80 +47,80 @@ export declare class Users extends Resource<{
|
|
|
46
47
|
id: string;
|
|
47
48
|
} & {
|
|
48
49
|
realm?: string | undefined;
|
|
49
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
50
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
50
51
|
count: (payload?: (UserQuery & {
|
|
51
52
|
realm?: string | undefined;
|
|
52
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<number>;
|
|
53
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<number>;
|
|
53
54
|
getProfile: (payload?: {
|
|
54
55
|
realm?: string | undefined;
|
|
55
|
-
} | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileConfig>;
|
|
56
|
+
} | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileConfig>;
|
|
56
57
|
updateProfile: (payload?: (UserProfileConfig & {
|
|
57
58
|
realm?: string | undefined;
|
|
58
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileConfig>;
|
|
59
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserProfileConfig>;
|
|
59
60
|
listRoleMappings: (payload?: ({
|
|
60
61
|
id: string;
|
|
61
62
|
} & {
|
|
62
63
|
realm?: string | undefined;
|
|
63
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<MappingsRepresentation>;
|
|
64
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<MappingsRepresentation>;
|
|
64
65
|
addRealmRoleMappings: (payload?: ({
|
|
65
66
|
id: string;
|
|
66
67
|
roles: RoleMappingPayload[];
|
|
67
68
|
} & {
|
|
68
69
|
realm?: string | undefined;
|
|
69
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
70
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
70
71
|
listRealmRoleMappings: (payload?: ({
|
|
71
72
|
id: string;
|
|
72
73
|
} & {
|
|
73
74
|
realm?: string | undefined;
|
|
74
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
75
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
75
76
|
delRealmRoleMappings: (payload?: ({
|
|
76
77
|
id: string;
|
|
77
78
|
roles: RoleMappingPayload[];
|
|
78
79
|
} & {
|
|
79
80
|
realm?: string | undefined;
|
|
80
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
81
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
81
82
|
listAvailableRealmRoleMappings: (payload?: ({
|
|
82
83
|
id: string;
|
|
83
84
|
} & {
|
|
84
85
|
realm?: string | undefined;
|
|
85
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
86
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
86
87
|
listCompositeRealmRoleMappings: (payload?: ({
|
|
87
88
|
id: string;
|
|
88
89
|
} & {
|
|
89
90
|
realm?: string | undefined;
|
|
90
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
91
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
91
92
|
listClientRoleMappings: (payload?: ({
|
|
92
93
|
id: string;
|
|
93
94
|
clientUniqueId: string;
|
|
94
95
|
} & {
|
|
95
96
|
realm?: string | undefined;
|
|
96
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
97
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
97
98
|
addClientRoleMappings: (payload?: ({
|
|
98
99
|
id: string;
|
|
99
100
|
clientUniqueId: string;
|
|
100
101
|
roles: RoleMappingPayload[];
|
|
101
102
|
} & {
|
|
102
103
|
realm?: string | undefined;
|
|
103
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
104
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
104
105
|
delClientRoleMappings: (payload?: ({
|
|
105
106
|
id: string;
|
|
106
107
|
clientUniqueId: string;
|
|
107
108
|
roles: RoleMappingPayload[];
|
|
108
109
|
} & {
|
|
109
110
|
realm?: string | undefined;
|
|
110
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
111
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
111
112
|
listAvailableClientRoleMappings: (payload?: ({
|
|
112
113
|
id: string;
|
|
113
114
|
clientUniqueId: string;
|
|
114
115
|
} & {
|
|
115
116
|
realm?: string | undefined;
|
|
116
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
117
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
117
118
|
listCompositeClientRoleMappings: (payload?: ({
|
|
118
119
|
id: string;
|
|
119
120
|
clientUniqueId: string;
|
|
120
121
|
} & {
|
|
121
122
|
realm?: string | undefined;
|
|
122
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
123
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<RoleRepresentation[]>;
|
|
123
124
|
executeActionsEmail: (payload?: ({
|
|
124
125
|
id: string;
|
|
125
126
|
clientId?: string | undefined;
|
|
@@ -128,73 +129,73 @@ export declare class Users extends Resource<{
|
|
|
128
129
|
actions?: RequiredActionAlias[] | undefined;
|
|
129
130
|
} & {
|
|
130
131
|
realm?: string | undefined;
|
|
131
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
132
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
132
133
|
listGroups: (payload?: ({
|
|
133
134
|
id: string;
|
|
134
135
|
briefRepresentation?: boolean | undefined;
|
|
135
136
|
} & {
|
|
136
137
|
realm?: string | undefined;
|
|
137
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<GroupRepresentation[]>;
|
|
138
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<GroupRepresentation[]>;
|
|
138
139
|
addToGroup: (payload?: ({
|
|
139
140
|
id: string;
|
|
140
141
|
groupId: string;
|
|
141
142
|
} & {
|
|
142
143
|
realm?: string | undefined;
|
|
143
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
144
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
144
145
|
delFromGroup: (payload?: ({
|
|
145
146
|
id: string;
|
|
146
147
|
groupId: string;
|
|
147
148
|
} & {
|
|
148
149
|
realm?: string | undefined;
|
|
149
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
150
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<string>;
|
|
150
151
|
countGroups: (payload?: ({
|
|
151
152
|
id: string;
|
|
152
153
|
search?: string | undefined;
|
|
153
154
|
} & {
|
|
154
155
|
realm?: string | undefined;
|
|
155
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
156
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<{
|
|
156
157
|
count: number;
|
|
157
158
|
}>;
|
|
158
159
|
listFederatedIdentities: (payload?: ({
|
|
159
160
|
id: string;
|
|
160
161
|
} & {
|
|
161
162
|
realm?: string | undefined;
|
|
162
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<FederatedIdentityRepresentation[]>;
|
|
163
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<FederatedIdentityRepresentation[]>;
|
|
163
164
|
addToFederatedIdentity: (payload?: ({
|
|
164
165
|
id: string;
|
|
165
166
|
federatedIdentityId: string;
|
|
166
167
|
federatedIdentity: FederatedIdentityRepresentation;
|
|
167
168
|
} & {
|
|
168
169
|
realm?: string | undefined;
|
|
169
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
170
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
170
171
|
delFromFederatedIdentity: (payload?: ({
|
|
171
172
|
id: string;
|
|
172
173
|
federatedIdentityId: string;
|
|
173
174
|
} & {
|
|
174
175
|
realm?: string | undefined;
|
|
175
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
176
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
176
177
|
removeTotp: (payload?: ({
|
|
177
178
|
id: string;
|
|
178
179
|
} & {
|
|
179
180
|
realm?: string | undefined;
|
|
180
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
181
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
181
182
|
resetPassword: (payload?: ({
|
|
182
183
|
id: string;
|
|
183
184
|
credential: CredentialRepresentation;
|
|
184
185
|
} & {
|
|
185
186
|
realm?: string | undefined;
|
|
186
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
187
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
187
188
|
getCredentials: (payload?: ({
|
|
188
189
|
id: string;
|
|
189
190
|
} & {
|
|
190
191
|
realm?: string | undefined;
|
|
191
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<CredentialRepresentation[]>;
|
|
192
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<CredentialRepresentation[]>;
|
|
192
193
|
deleteCredential: (payload?: ({
|
|
193
194
|
id: string;
|
|
194
195
|
credentialId: string;
|
|
195
196
|
} & {
|
|
196
197
|
realm?: string | undefined;
|
|
197
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
198
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
198
199
|
updateCredentialLabel: (query: {
|
|
199
200
|
id: string;
|
|
200
201
|
credentialId: string;
|
|
@@ -207,41 +208,41 @@ export declare class Users extends Resource<{
|
|
|
207
208
|
newPreviousCredentialId: string;
|
|
208
209
|
} & {
|
|
209
210
|
realm?: string | undefined;
|
|
210
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
211
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
211
212
|
moveCredentialPositionUp: (payload?: ({
|
|
212
213
|
id: string;
|
|
213
214
|
credentialId: string;
|
|
214
215
|
} & {
|
|
215
216
|
realm?: string | undefined;
|
|
216
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
217
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
217
218
|
sendVerifyEmail: (payload?: ({
|
|
218
219
|
id: string;
|
|
219
220
|
clientId?: string | undefined;
|
|
220
221
|
redirectUri?: string | undefined;
|
|
221
222
|
} & {
|
|
222
223
|
realm?: string | undefined;
|
|
223
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
224
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
224
225
|
listSessions: (payload?: ({
|
|
225
226
|
id: string;
|
|
226
227
|
} & {
|
|
227
228
|
realm?: string | undefined;
|
|
228
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
229
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
229
230
|
listOfflineSessions: (payload?: ({
|
|
230
231
|
id: string;
|
|
231
232
|
clientId: string;
|
|
232
233
|
} & {
|
|
233
234
|
realm?: string | undefined;
|
|
234
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
235
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserSessionRepresentation[]>;
|
|
235
236
|
logout: (payload?: ({
|
|
236
237
|
id: string;
|
|
237
238
|
} & {
|
|
238
239
|
realm?: string | undefined;
|
|
239
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
240
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
240
241
|
listConsents: (payload?: ({
|
|
241
242
|
id: string;
|
|
242
243
|
} & {
|
|
243
244
|
realm?: string | undefined;
|
|
244
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<UserConsentRepresentation[]>;
|
|
245
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<UserConsentRepresentation[]>;
|
|
245
246
|
impersonation: (query: {
|
|
246
247
|
id: string;
|
|
247
248
|
} & {
|
|
@@ -255,6 +256,6 @@ export declare class Users extends Resource<{
|
|
|
255
256
|
clientId: string;
|
|
256
257
|
} & {
|
|
257
258
|
realm?: string | undefined;
|
|
258
|
-
}) | undefined, options?: Pick<import("./agent").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
259
|
+
}) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound"> | undefined) => Promise<void>;
|
|
259
260
|
constructor(client: KeycloakAdminClient);
|
|
260
261
|
}
|