@keycloak/keycloak-admin-client 26.4.2 → 26.4.5

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.
@@ -430,13 +430,19 @@ export declare class Clients extends Resource<{
430
430
  } & {
431
431
  realm?: string;
432
432
  }, payload: PolicyRepresentation) => Promise<PolicyRepresentation>;
433
- findOnePolicy: (payload?: ({
433
+ findOnePolicyWithType: (payload?: ({
434
434
  id: string;
435
435
  type: string;
436
436
  policyId: string;
437
437
  } & {
438
438
  realm?: string;
439
439
  }) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound">) => Promise<void>;
440
+ findOnePolicy: (payload?: ({
441
+ id: string;
442
+ policyId: string;
443
+ } & {
444
+ realm?: string;
445
+ }) | undefined, options?: Pick<import("./agent.js").RequestArgs, "catchNotFound">) => Promise<void>;
440
446
  listDependentPolicies: (payload?: ({
441
447
  id: string;
442
448
  policyId: string;
@@ -347,12 +347,18 @@ export class Clients extends Resource {
347
347
  path: "/{id}/authz/resource-server/policy/{type}",
348
348
  urlParamKeys: ["id", "type"],
349
349
  });
350
- findOnePolicy = this.makeRequest({
350
+ findOnePolicyWithType = this.makeRequest({
351
351
  method: "GET",
352
352
  path: "/{id}/authz/resource-server/policy/{type}/{policyId}",
353
353
  urlParamKeys: ["id", "type", "policyId"],
354
354
  catchNotFound: true,
355
355
  });
356
+ findOnePolicy = this.makeRequest({
357
+ method: "GET",
358
+ path: "/{id}/authz/resource-server/policy/{policyId}",
359
+ urlParamKeys: ["id", "policyId"],
360
+ catchNotFound: true,
361
+ });
356
362
  listDependentPolicies = this.makeRequest({
357
363
  method: "GET",
358
364
  path: "/{id}/authz/resource-server/policy/{policyId}/dependentPolicies",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keycloak/keycloak-admin-client",
3
- "version": "26.4.2",
3
+ "version": "26.4.5",
4
4
  "description": "A client to interact with Keycloak's Administration API",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",