diff --git a/Cargo.toml b/Cargo.toml index 92ea723..f33a476 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "keycloak" -version = "22.0.501" +version = "23.0.0" authors = ["Alexander Korolev "] edition = "2021" categories = ["api-bindings", "asynchronous"] diff --git a/README.md b/README.md index 4b5093a..e9d7833 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 22.0.5](https://www.keycloak.org/docs-api/22.0.5/rest-api/index.html). +Implements [Keycloak Admin REST API version 23.0.0](https://www.keycloak.org/docs-api/23.0.0/rest-api/index.html). ### Feature flags @@ -24,7 +24,7 @@ Add dependency to Cargo.toml: ```toml [dependencies] -keycloak = "22.0" +keycloak = "23.0" ``` ```rust diff --git a/docs/openapi.json b/docs/openapi.json index 7f9166e..ed63c93 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -63,7 +63,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RealmRepresentation" + } } } } @@ -233,7 +236,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/AdminEventRepresentation" + } } } } @@ -298,9 +304,7 @@ "application/json" : { "schema" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } } } @@ -344,7 +348,11 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { } + } } } } @@ -371,7 +379,11 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { } + } } } } @@ -760,7 +772,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/AuthenticationFlowRepresentation" + } } } } @@ -1064,7 +1079,11 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { } + } } } } @@ -1091,7 +1110,11 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { } + } } } } @@ -1183,7 +1206,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RequiredActionProviderRepresentation" + } } } } @@ -1349,7 +1375,13 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } } } } @@ -1515,7 +1547,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ComponentTypeRepresentation" + } } } } @@ -1542,7 +1577,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -1687,7 +1725,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -1828,7 +1869,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -1897,7 +1941,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -1980,7 +2027,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2030,7 +2080,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2071,7 +2124,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2147,7 +2203,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2191,7 +2250,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2226,7 +2288,13 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } } } } @@ -2253,7 +2321,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -2398,7 +2469,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -2539,7 +2613,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -2608,7 +2685,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2691,7 +2771,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2741,7 +2824,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2782,7 +2868,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2858,7 +2947,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2902,7 +2994,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -2983,7 +3078,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientRepresentation" + } } } } @@ -3027,7 +3125,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientInitialAccessPresentation" + } } } } @@ -3526,7 +3627,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -3718,9 +3822,7 @@ "application/json" : { "schema" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } } } @@ -3762,7 +3864,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperEvaluationRepresentation" + } } } } @@ -3797,7 +3902,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -3846,7 +3954,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -4116,7 +4227,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserSessionRepresentation" + } } } } @@ -4150,7 +4264,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -4273,7 +4390,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -4414,7 +4534,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ProtocolMapperRepresentation" + } } } } @@ -4545,7 +4668,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -4694,7 +4820,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -4804,7 +4933,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -4847,7 +4979,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -4914,7 +5049,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } } } } @@ -5048,7 +5186,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserRepresentation" + } } } } @@ -5117,7 +5258,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5200,7 +5344,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5250,7 +5397,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5291,7 +5441,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5367,7 +5520,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5411,7 +5567,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -5568,7 +5727,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserSessionRepresentation" + } } } } @@ -5620,7 +5782,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ComponentRepresentation" + } } } } @@ -5753,7 +5918,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ComponentTypeRepresentation" + } } } } @@ -5779,7 +5947,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "string" + } } } } @@ -5806,7 +5977,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -5876,7 +6050,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } } } } @@ -5946,7 +6123,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ClientScopeRepresentation" + } } } } @@ -6078,7 +6258,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/EventRepresentation" + } } } } @@ -6242,7 +6425,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } } } } @@ -6383,6 +6569,49 @@ } ] }, "/admin/realms/{realm}/groups/{id}/children" : { + "get" : { + "tags" : [ "Groups" ], + "summary" : "Return a paginated list of subgroups that have a parent group corresponding to the group on the URL", + "parameters" : [ { + "name" : "briefRepresentation", + "in" : "query", + "schema" : { + "default" : "false", + "type" : "boolean" + } + }, { + "name" : "first", + "in" : "query", + "schema" : { + "format" : "int32", + "default" : "0", + "type" : "integer" + } + }, { + "name" : "max", + "in" : "query", + "schema" : { + "format" : "int32", + "default" : "10", + "type" : "integer" + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } + } + } + } + } + } + }, "post" : { "tags" : [ "Groups" ], "summary" : "Set or create child.", @@ -6512,7 +6741,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserRepresentation" + } } } } @@ -6580,7 +6812,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6663,7 +6898,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6713,7 +6951,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6754,7 +6995,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6830,7 +7074,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6873,7 +7120,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -6907,9 +7157,7 @@ "application/json" : { "schema" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } } } @@ -6943,14 +7191,48 @@ "/admin/realms/{realm}/identity-provider/instances" : { "get" : { "tags" : [ "Identity Providers" ], - "summary" : "Get identity providers", + "summary" : "List identity providers", + "parameters" : [ { + "name" : "briefRepresentation", + "in" : "query", + "description" : "Boolean which defines whether brief representations are returned (default: false)", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "first", + "in" : "query", + "description" : "Pagination offset", + "schema" : { + "format" : "int32", + "type" : "integer" + } + }, { + "name" : "max", + "in" : "query", + "description" : "Maximum results size (defaults to 100)", + "schema" : { + "format" : "int32", + "type" : "integer" + } + }, { + "name" : "search", + "in" : "query", + "description" : "Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact (\"name\"). Default prefixed.", + "schema" : { + "type" : "string" + } + } ], "responses" : { "200" : { "description" : "OK", "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/IdentityProviderRepresentation" + } } } } @@ -7187,7 +7469,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/IdentityProviderMapperRepresentation" + } } } } @@ -7319,11 +7604,11 @@ "/admin/realms/{realm}/identity-provider/providers/{provider_id}" : { "get" : { "tags" : [ "Identity Providers" ], - "summary" : "Get identity providers", + "summary" : "Get the identity provider factory for that provider id", "parameters" : [ { "name" : "provider_id", "in" : "path", - "description" : "Provider id", + "description" : "The provider id to get the factory", "required" : true, "schema" : { "type" : "string" @@ -7331,7 +7616,14 @@ } ], "responses" : { "200" : { - "description" : "OK" + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "object" + } + } + } } } }, @@ -7380,7 +7672,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "string" + } } } } @@ -7739,7 +8034,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -7893,7 +8191,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -7994,7 +8295,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -8029,7 +8333,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -8214,7 +8521,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -8317,7 +8627,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -8353,7 +8666,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -8413,7 +8729,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } } } } @@ -8533,7 +8852,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserRepresentation" + } } } } @@ -8733,7 +9055,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserRepresentation" + } } } } @@ -8905,13 +9230,14 @@ "/admin/realms/{realm}/users/profile" : { "get" : { "tags" : [ "Users" ], + "description" : "Get the configuration for the user profile", "responses" : { "200" : { "description" : "OK", "content" : { "application/json" : { "schema" : { - "type" : "string" + "$ref" : "#/components/schemas/UPConfig" } } } @@ -8920,24 +9246,32 @@ }, "put" : { "tags" : [ "Users" ], + "description" : "Set the configuration for the user profile", "requestBody" : { "content" : { "application/json" : { "schema" : { - "type" : "string" + "$ref" : "#/components/schemas/UPConfig" } } } }, "responses" : { "200" : { - "description" : "OK" - } - } - }, - "parameters" : [ { - "name" : "realm", - "in" : "path", + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UPConfig" + } + } + } + } + } + }, + "parameters" : [ { + "name" : "realm", + "in" : "path", "description" : "realm name (not id!)", "required" : true, "schema" : { @@ -8948,6 +9282,7 @@ "/admin/realms/{realm}/users/profile/metadata" : { "get" : { "tags" : [ "Users" ], + "description" : "Get the UserProfileMetadata from the configuration", "responses" : { "200" : { "description" : "OK", @@ -9051,7 +9386,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "string" + } } } } @@ -9085,7 +9423,11 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "type" : "object", + "additionalProperties" : { } + } } } } @@ -9154,7 +9496,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/CredentialRepresentation" + } } } } @@ -9449,7 +9794,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FederatedIdentityRepresentation" + } } } } @@ -9564,7 +9912,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } } } } @@ -9693,9 +10044,7 @@ "application/json" : { "schema" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } } } @@ -9764,7 +10113,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserSessionRepresentation" + } } } } @@ -9912,7 +10264,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -9995,7 +10350,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -10045,7 +10403,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -10086,7 +10447,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -10162,7 +10526,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -10205,7 +10572,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/RoleRepresentation" + } } } } @@ -10282,7 +10652,10 @@ "content" : { "application/json" : { "schema" : { - "type" : "object" + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UserSessionRepresentation" + } } } } @@ -10356,9 +10729,7 @@ }, "otherClaims" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } }, "nonce" : { "type" : "string" @@ -10480,7 +10851,7 @@ "$ref" : "#/components/schemas/Authorization" }, "cnf" : { - "$ref" : "#/components/schemas/CertConf" + "$ref" : "#/components/schemas/Confirmation" }, "scope" : { "type" : "string" @@ -10510,6 +10881,36 @@ } } }, + "AdminEventRepresentation" : { + "type" : "object", + "properties" : { + "time" : { + "format" : "int64", + "type" : "integer" + }, + "realmId" : { + "type" : "string" + }, + "authDetails" : { + "$ref" : "#/components/schemas/AuthDetailsRepresentation" + }, + "operationType" : { + "type" : "string" + }, + "resourceType" : { + "type" : "string" + }, + "resourcePath" : { + "type" : "string" + }, + "representation" : { + "type" : "string" + }, + "error" : { + "type" : "string" + } + } + }, "ApplicationRepresentation" : { "type" : "object", "properties" : { @@ -10694,6 +11095,23 @@ }, "deprecated" : true }, + "AuthDetailsRepresentation" : { + "type" : "object", + "properties" : { + "realmId" : { + "type" : "string" + }, + "clientId" : { + "type" : "string" + }, + "userId" : { + "type" : "string" + }, + "ipAddress" : { + "type" : "string" + } + } + }, "AuthenticationExecutionExportRepresentation" : { "type" : "object", "properties" : { @@ -10885,14 +11303,6 @@ } } }, - "CertConf" : { - "type" : "object", - "properties" : { - "x5t#S256" : { - "type" : "string" - } - } - }, "CertificateRepresentation" : { "type" : "object", "properties" : { @@ -11406,6 +11816,27 @@ } } }, + "ComponentTypeRepresentation" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "helpText" : { + "type" : "string" + }, + "properties" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigPropertyRepresentation" + } + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { } + } + } + }, "Composites" : { "type" : "object", "properties" : { @@ -11452,9 +11883,7 @@ "type" : { "type" : "string" }, - "defaultValue" : { - "type" : "object" - }, + "defaultValue" : { }, "options" : { "type" : "array", "items" : { @@ -11464,11 +11893,25 @@ "secret" : { "type" : "boolean" }, + "required" : { + "type" : "boolean" + }, "readOnly" : { "type" : "boolean" } } }, + "Confirmation" : { + "type" : "object", + "properties" : { + "x5t#S256" : { + "type" : "string" + }, + "jkt" : { + "type" : "string" + } + } + }, "CredentialRepresentation" : { "type" : "object", "properties" : { @@ -11554,6 +11997,42 @@ "enum" : [ "PERMISSIVE", "ENFORCING", "DISABLED" ], "type" : "string" }, + "EventRepresentation" : { + "type" : "object", + "properties" : { + "time" : { + "format" : "int64", + "type" : "integer" + }, + "type" : { + "type" : "string" + }, + "realmId" : { + "type" : "string" + }, + "clientId" : { + "type" : "string" + }, + "userId" : { + "type" : "string" + }, + "sessionId" : { + "type" : "string" + }, + "ipAddress" : { + "type" : "string" + }, + "error" : { + "type" : "string" + }, + "details" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + }, "FederatedIdentityRepresentation" : { "type" : "object", "properties" : { @@ -11597,6 +12076,19 @@ "path" : { "type" : "string" }, + "parentId" : { + "type" : "string" + }, + "subGroupCount" : { + "format" : "int64", + "type" : "integer" + }, + "subGroups" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GroupRepresentation" + } + }, "attributes" : { "type" : "object", "additionalProperties" : { @@ -11621,12 +12113,6 @@ } } }, - "subGroups" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GroupRepresentation" - } - }, "access" : { "type" : "object", "additionalProperties" : { @@ -11667,9 +12153,7 @@ }, "otherClaims" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } }, "nonce" : { "type" : "string" @@ -11895,9 +12379,7 @@ }, "credentials" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } }, "use-resource-role-mappings" : { "type" : "boolean" @@ -11941,6 +12423,10 @@ }, "use" : { "$ref" : "#/components/schemas/KeyUse" + }, + "validTo" : { + "format" : "int64", + "type" : "integer" } } }, @@ -12061,15 +12547,6 @@ } } }, - "MultivaluedMapStringString" : { - "type" : "object", - "additionalProperties" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - }, "OAuthClientRepresentation" : { "type" : "object", "properties" : { @@ -12301,9 +12778,7 @@ "type" : "object", "additionalProperties" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } }, "invalidated" : { @@ -12377,9 +12852,7 @@ "type" : "object", "additionalProperties" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } }, "http-method-as-scope" : { @@ -12393,9 +12866,7 @@ }, "credentials" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } }, "resource" : { "type" : "string" @@ -12469,6 +12940,29 @@ } } }, + "ProtocolMapperEvaluationRepresentation" : { + "type" : "object", + "properties" : { + "mapperId" : { + "type" : "string" + }, + "mapperName" : { + "type" : "string" + }, + "containerId" : { + "type" : "string" + }, + "containerName" : { + "type" : "string" + }, + "containerType" : { + "type" : "string" + }, + "protocolMapper" : { + "type" : "string" + } + } + }, "ProtocolMapperRepresentation" : { "type" : "object", "properties" : { @@ -12814,6 +13308,15 @@ "type" : "string" } }, + "localizationTexts" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + }, "webAuthnPolicyRpEntityName" : { "type" : "string" }, @@ -12851,6 +13354,12 @@ "type" : "string" } }, + "webAuthnPolicyExtraOrigins" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, "webAuthnPolicyPasswordlessRpEntityName" : { "type" : "string" }, @@ -12888,11 +13397,17 @@ "type" : "string" } }, + "webAuthnPolicyPasswordlessExtraOrigins" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, "clientProfiles" : { - "type" : "array" + "$ref" : "#/components/schemas/ClientProfilesRepresentation" }, "clientPolicies" : { - "type" : "array" + "$ref" : "#/components/schemas/ClientPoliciesRepresentation" }, "users" : { "type" : "array", @@ -13432,6 +13947,125 @@ } } }, + "UPAttribute" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "displayName" : { + "type" : "string" + }, + "validations" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "additionalProperties" : { } + } + }, + "annotations" : { + "type" : "object", + "additionalProperties" : { } + }, + "required" : { + "$ref" : "#/components/schemas/UPAttributeRequired" + }, + "permissions" : { + "$ref" : "#/components/schemas/UPAttributePermissions" + }, + "selector" : { + "$ref" : "#/components/schemas/UPAttributeSelector" + }, + "group" : { + "type" : "string" + } + } + }, + "UPAttributePermissions" : { + "type" : "object", + "properties" : { + "view" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + }, + "edit" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "UPAttributeRequired" : { + "type" : "object", + "properties" : { + "roles" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + }, + "scopes" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "UPAttributeSelector" : { + "type" : "object", + "properties" : { + "scopes" : { + "uniqueItems" : true, + "type" : "array", + "items" : { + "type" : "string" + } + } + } + }, + "UPConfig" : { + "type" : "object", + "properties" : { + "attributes" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UPAttribute" + } + }, + "groups" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/UPGroup" + } + } + } + }, + "UPGroup" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string" + }, + "displayHeader" : { + "type" : "string" + }, + "displayDescription" : { + "type" : "string" + }, + "annotations" : { + "type" : "object", + "additionalProperties" : { } + } + } + }, "UserConsentRepresentation" : { "type" : "object", "properties" : { @@ -13537,9 +14171,7 @@ }, "annotations" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } } }, @@ -13560,17 +14192,13 @@ }, "annotations" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } }, "validators" : { "type" : "object", "additionalProperties" : { "type" : "object", - "additionalProperties" : { - "type" : "object" - } + "additionalProperties" : { } } }, "group" : { @@ -13730,6 +14358,40 @@ "$ref" : "#/components/schemas/UserProfileMetadata" } } + }, + "UserSessionRepresentation" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "username" : { + "type" : "string" + }, + "userId" : { + "type" : "string" + }, + "ipAddress" : { + "type" : "string" + }, + "start" : { + "format" : "int64", + "type" : "integer" + }, + "lastAccess" : { + "format" : "int64", + "type" : "integer" + }, + "rememberMe" : { + "type" : "boolean" + }, + "clients" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } } } } diff --git a/docs/rest-api.html b/docs/rest-api.html index e976ae4..0033f1c 100644 --- a/docs/rest-api.html +++ b/docs/rest-api.html @@ -472,8 +472,10 @@

Keycloak Admin REST API

  • Access
  • AccessToken
  • AddressClaimSet
  • +
  • AdminEventRepresentation
  • ApplicationRepresentation
  • ApplicationRepresentationClaims
  • +
  • AuthDetailsRepresentation
  • AuthenticationExecutionExportRepresentation
  • AuthenticationExecutionInfoRepresentation
  • AuthenticationExecutionRepresentation
  • @@ -481,7 +483,6 @@

    Keycloak Admin REST API

  • AuthenticatorConfigInfoRepresentation
  • AuthenticatorConfigRepresentation
  • Authorization
  • -
  • CertConf
  • CertificateRepresentation
  • ClaimRepresentation
  • ClientInitialAccessCreatePresentation
  • @@ -498,11 +499,14 @@

    Keycloak Admin REST API

  • ClientTemplateRepresentation
  • ComponentExportRepresentation
  • ComponentRepresentation
  • +
  • ComponentTypeRepresentation
  • Composites
  • ConfigPropertyRepresentation
  • +
  • Confirmation
  • CredentialRepresentation
  • DecisionStrategy
  • EnforcementMode
  • +
  • EventRepresentation
  • FederatedIdentityRepresentation
  • GlobalRequestResult
  • GroupRepresentation
  • @@ -526,6 +530,7 @@

    Keycloak Admin REST API

  • PolicyEnforcementMode
  • PolicyEnforcerConfig
  • PolicyRepresentation
  • +
  • ProtocolMapperEvaluationRepresentation
  • ProtocolMapperRepresentation
  • PublishedRealmRepresentation
  • RealmEventsConfigRepresentation
  • @@ -541,6 +546,12 @@

    Keycloak Admin REST API

  • ScopeMappingRepresentation
  • ScopeRepresentation
  • SocialLinkRepresentation
  • +
  • UPAttribute
  • +
  • UPAttributePermissions
  • +
  • UPAttributeRequired
  • +
  • UPAttributeSelector
  • +
  • UPConfig
  • +
  • UPGroup
  • UserConsentRepresentation
  • UserFederationMapperRepresentation
  • UserFederationProviderRepresentation
  • @@ -548,6 +559,7 @@

    Keycloak Admin REST API

  • UserProfileAttributeMetadata
  • UserProfileMetadata
  • UserRepresentation
  • +
  • UserSessionRepresentation
  • @@ -859,7 +871,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[[AnyType]]

    @@ -930,7 +942,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[[AnyType]]

    @@ -2404,7 +2416,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[AuthenticationFlowRepresentation]

    @@ -2806,7 +2818,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[[AnyType]]

    @@ -2877,7 +2889,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[[AnyType]]

    @@ -3486,7 +3498,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RequiredActionProviderRepresentation]

    @@ -3557,7 +3569,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[[string]]

    @@ -4197,7 +4209,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientInitialAccessPresentation]

    @@ -4435,7 +4447,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ComponentTypeRepresentation]

    @@ -4523,7 +4535,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -4636,7 +4648,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -4824,7 +4836,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -5012,7 +5024,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -5125,7 +5137,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -5313,7 +5325,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -5490,7 +5502,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientScopeRepresentation]

    @@ -5892,7 +5904,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientScopeRepresentation]

    @@ -6366,7 +6378,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientRepresentation]

    @@ -6890,7 +6902,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientScopeRepresentation]

    @@ -7409,7 +7421,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ProtocolMapperEvaluationRepresentation]

    @@ -7528,7 +7540,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -7647,7 +7659,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[RoleRepresentation]

    @@ -8343,7 +8355,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[UserSessionRepresentation]

    @@ -8565,7 +8577,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ClientScopeRepresentation]

    @@ -9164,7 +9176,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[UserSessionRepresentation]

    @@ -9366,7 +9378,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ComponentRepresentation]

    @@ -9705,7 +9717,7 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[ComponentTypeRepresentation]

    @@ -10041,7 +10053,127 @@
    Responses

    200

    OK

    -

    [Object]

    +

    List[GroupRepresentation]

    + + + + + +
    +

    GET /admin/realms/{realm}/groups/{id}/children

    +
    +

    Return a paginated list of subgroups that have a parent group corresponding to the group on the URL

    +
    +
    +
    Parameters
    +
    +
    Path Parameters
    + ++++++ + + + + + + + + + + + + + + + + + + + + + + +
    NameDescriptionDefaultPattern

    realm
    +required

    realm name (not id!)

    null

    id
    +required

    null

    +
    +
    +
    Query Parameters
    + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescriptionDefaultPattern

    briefRepresentation
    +optional

    false

    first
    +optional

    null

    max
    +optional

    null

    +
    +
    +
    +
    Content Type
    +
    +
      +
    • +

      application/json

      +
    • +
    +
    +
    +
    +
    Responses
    + +++++ + + + + + + + + + + + +
    CodeMessageDatatype

    200

    OK

    List[GroupRepresentation]

    @@ -10059,9 +10191,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10125,7 +10257,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -10152,9 +10284,9 @@
    Responses

    DELETE /admin/realms/{realm}/groups/{id}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10190,7 +10322,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -10217,9 +10349,9 @@
    Responses

    GET /admin/realms/{realm}/groups/{id}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10255,7 +10387,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -10265,7 +10397,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -10295,9 +10427,9 @@

    GET /admin/realms/{r

    Return object stating whether client Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -10333,7 +10465,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -10343,7 +10475,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -10373,9 +10505,9 @@

    PUT /admin/realms/{r

    Return object stating whether client Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -10439,7 +10571,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -10449,7 +10581,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -10479,9 +10611,9 @@

    GET /admin/realms/{realm}/groups/{

    Get users Returns a stream of users, filtered according to query parameters

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -10516,7 +10648,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -10559,7 +10691,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -10569,7 +10701,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -10587,7 +10719,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserRepresentation]

    @@ -10599,9 +10731,9 @@

    PUT /admin/realms/{realm}/groups/{id}

    Update group, ignores subgroups.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10665,7 +10797,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -10701,9 +10833,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10760,7 +10892,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -10799,9 +10931,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -10849,7 +10981,7 @@
    Body Parameter
    - + @@ -10858,7 +10990,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -10868,7 +11000,7 @@
      Content Type
    -
    Responses
    +
    Responses

    request_body
    optional

    [object]

    [AnyType]

    @@ -10898,9 +11030,9 @@

    DELETE /admin/r

    Delete the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -10936,7 +11068,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -10966,9 +11098,9 @@

    GET /admin/r

    Export public broker configuration for identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11003,7 +11135,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -11032,7 +11164,7 @@
    Query Parameters
    -
    Responses
    +
    Responses
    @@ -11062,9 +11194,9 @@

    GET /admin/realms/

    Get the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11100,7 +11232,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -11110,7 +11242,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11140,9 +11272,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -11178,7 +11310,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -11188,7 +11320,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11218,9 +11350,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -11284,7 +11416,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -11294,7 +11426,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11324,9 +11456,9 @@

    GET /a

    Get mapper types for identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11362,7 +11494,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -11372,7 +11504,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11402,9 +11534,9 @@

    GET /admin/

    Get mappers for identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11440,7 +11572,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -11450,7 +11582,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11468,7 +11600,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[IdentityProviderMapperRepresentation]

    @@ -11480,9 +11612,9 @@

    DELETE

    Delete a mapper for the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -11525,7 +11657,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -11555,9 +11687,9 @@

    GET /admi

    Get mapper by id for the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11600,7 +11732,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -11610,7 +11742,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11640,9 +11772,9 @@

    PUT /admi

    Update a mapper for the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11713,7 +11845,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -11743,9 +11875,9 @@

    POST /admi

    Add a mapper to identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11809,7 +11941,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -11839,9 +11971,9 @@

    PUT /admin/realms/

    Update the identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -11905,7 +12037,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -11932,12 +12064,12 @@
    Responses

    GET /admin/realms/{realm}/identity-provider/instances

    -

    Get identity providers

    +

    List identity providers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -11964,9 +12096,58 @@
    Path Parameters
    +
    +
    Query Parameters
    + ++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescriptionDefaultPattern

    briefRepresentation
    +optional

    Boolean which defines whether brief representations are returned (default: false)

    null

    first
    +optional

    Pagination offset

    null

    max
    +optional

    Maximum results size (defaults to 100)

    null

    search
    +optional

    Filter specific providers by name. Search can be prefix (name*), contains (name) or exact ("name"). Default prefixed.

    null

    +
    -
    Content Type
    +
    Content Type
    • @@ -11976,7 +12157,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -11994,7 +12175,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[IdentityProviderRepresentation]

    @@ -12006,9 +12187,9 @@

    POST /admin/realms/{re

    Create a new identity provider

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -12065,7 +12246,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -12092,12 +12273,12 @@
    Responses

    GET /admin/realms/{realm}/identity-provider/providers/{provider_id}

    -

    Get identity providers

    +

    Get the identity provider factory for that provider id

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -12124,7 +12305,7 @@
    Path Parameters
    - + @@ -12133,7 +12314,17 @@
    Path Parameters
    -
    Responses
    +
    Content Type
    +
    +
      +
    • +

      application/json

      +
    • +
    +
    +
    +
    +
    Responses

    provider_id
    required

    Provider id

    The provider id to get the factory

    null

    @@ -12151,7 +12342,7 @@
    Responses
    - +

    200

    OK

    <<>>

    [Object]

    @@ -12163,9 +12354,9 @@

    Key

    GET /admin/realms/{realm}/keys

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -12194,7 +12385,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -12204,7 +12395,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -12237,9 +12428,9 @@

    POST /a

    Create multiple mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12303,7 +12494,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -12333,9 +12524,9 @@

    GET /admin/r

    Get mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12371,7 +12562,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -12381,7 +12572,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -12399,7 +12590,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -12411,9 +12602,9 @@

    DELETE

    Delete the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -12449,7 +12640,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -12479,9 +12670,9 @@

    GET /admin

    Get mapper by id

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12517,7 +12708,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -12527,7 +12718,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -12557,9 +12748,9 @@

    PUT /admin

    Update the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12623,7 +12814,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -12653,9 +12844,9 @@

    POST /admin

    Create a mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12719,7 +12910,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -12749,9 +12940,9 @@

    GE

    Get mappers by name for a specific protocol

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12794,7 +12985,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -12804,7 +12995,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -12822,7 +13013,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -12834,9 +13025,9 @@

    POST

    Create multiple mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -12900,7 +13091,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -12930,9 +13121,9 @@

    GET /admi

    Get mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -12968,7 +13159,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -12978,7 +13169,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -12996,7 +13187,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -13008,9 +13199,9 @@

    DELE

    Delete the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -13046,7 +13237,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -13076,9 +13267,9 @@

    GET /ad

    Get mapper by id

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13114,7 +13305,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -13124,7 +13315,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -13154,9 +13345,9 @@

    PUT /ad

    Update the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13220,7 +13411,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -13250,9 +13441,9 @@

    POST /ad

    Create a mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13316,7 +13507,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -13346,9 +13537,9 @@

    Get mappers by name for a specific protocol

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13391,7 +13582,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -13401,7 +13592,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -13419,7 +13610,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -13431,9 +13622,9 @@

    POST /admin/r

    Create multiple mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -13497,7 +13688,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -13527,9 +13718,9 @@

    GET /admin/realms/

    Get mappers

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13565,7 +13756,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -13575,7 +13766,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -13593,7 +13784,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -13605,9 +13796,9 @@

    DELETE /admin

    Delete the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -13643,7 +13834,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -13673,9 +13864,9 @@

    GET /admin/realm

    Get mapper by id

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13711,7 +13902,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -13721,7 +13912,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -13751,9 +13942,9 @@

    PUT /admin/realm

    Update the mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13817,7 +14008,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -13847,9 +14038,9 @@

    POST /admin/realm

    Create a mapper

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13913,7 +14104,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -13943,9 +14134,9 @@

    GET /adm

    Get mappers by name for a specific protocol

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -13988,7 +14179,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -13998,7 +14189,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14016,7 +14207,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ProtocolMapperRepresentation]

    @@ -14031,9 +14222,9 @@

    GET /admin/realms

    Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.

    -
    Parameters
    +
    Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -14062,7 +14253,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14072,7 +14263,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14090,7 +14281,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RealmRepresentation]

    @@ -14108,7 +14299,7 @@
    Description
    -
    Parameters
    +
    Parameters
    Body Parameter
    @@ -14139,7 +14330,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -14169,9 +14360,9 @@

    DELETE /admin/realms/{realm}/admin

    Delete all admin events

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -14200,7 +14391,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -14230,9 +14421,9 @@

    GET /admin/realms/{realm}/admin-event

    Get admin events Returns all admin events, or filters events based on URL query parameters listed here

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -14260,7 +14451,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -14359,7 +14550,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14369,7 +14560,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14387,7 +14578,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[AdminEventRepresentation]

    @@ -14399,9 +14590,9 @@

    POST /admin/realms/{

    Base path for importing clients under this realm.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14458,7 +14649,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -14468,7 +14659,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14495,9 +14686,9 @@
    Responses

    GET /admin/realms/{realm}/client-policies/policies

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14526,7 +14717,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14536,7 +14727,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14563,9 +14754,9 @@
    Responses

    PUT /admin/realms/{realm}/client-policies/policies

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14622,7 +14813,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -14649,9 +14840,9 @@
    Responses

    GET /admin/realms/{realm}/client-policies/profiles

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14679,7 +14870,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -14708,7 +14899,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14718,7 +14909,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14745,9 +14936,9 @@
    Responses

    PUT /admin/realms/{realm}/client-policies/profiles

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14804,7 +14995,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -14840,9 +15031,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14871,7 +15062,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14881,7 +15072,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14899,7 +15090,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[[string]]

    @@ -14908,9 +15099,9 @@
    Responses

    GET /admin/realms/{realm}/credential-registrators

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -14939,7 +15130,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -14949,7 +15140,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -14967,7 +15158,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[[string]]

    @@ -14976,9 +15167,9 @@
    Responses

    DELETE /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15014,7 +15205,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15041,9 +15232,9 @@
    Responses

    PUT /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15079,7 +15270,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15109,9 +15300,9 @@

    GET /admin/realms/{r

    Get realm default client scopes. Only name and ids are returned.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -15140,7 +15331,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -15150,7 +15341,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -15168,7 +15359,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ClientScopeRepresentation]

    @@ -15180,9 +15371,9 @@

    GET /admin/realms/{realm}/default-g

    Get group hierarchy. Only name and ids are returned.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15211,7 +15402,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -15221,7 +15412,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -15239,7 +15430,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[GroupRepresentation]

    @@ -15248,9 +15439,9 @@
    Responses

    DELETE /admin/realms/{realm}/default-groups/{groupId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15286,7 +15477,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15313,9 +15504,9 @@
    Responses

    PUT /admin/realms/{realm}/default-groups/{groupId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15351,7 +15542,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15378,9 +15569,9 @@
    Responses

    DELETE /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15416,7 +15607,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15443,9 +15634,9 @@
    Responses

    PUT /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15481,7 +15672,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15511,9 +15702,9 @@

    GET /admin/realms/{

    Get realm optional client scopes. Only name and ids are returned.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -15542,7 +15733,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -15552,7 +15743,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -15570,7 +15761,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[ClientScopeRepresentation]

    @@ -15582,9 +15773,9 @@

    DELETE /admin/realms/{realm}

    Delete the realm

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15613,7 +15804,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15643,9 +15834,9 @@

    GET /admin/realms/{realm}/events/conf

    Get the events provider configuration Returns JSON object with events provider configuration

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -15674,7 +15865,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -15684,7 +15875,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -15717,9 +15908,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15776,7 +15967,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -15806,9 +15997,9 @@

    DELETE /admin/realms/{realm}/events

    Delete all events

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15837,7 +16028,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -15867,9 +16058,9 @@

    GET /admin/realms/{realm}/events

    Get events Returns all events, or filters them based on URL query parameters listed here

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -15897,7 +16088,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -15975,7 +16166,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -15985,7 +16176,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16003,7 +16194,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[EventRepresentation]

    @@ -16015,9 +16206,9 @@

    GET /admin/realms/{realm}

    Get the top-level representation of the realm It will not include nested information like User and Client representations.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16046,7 +16237,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16056,7 +16247,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16083,9 +16274,9 @@
    Responses

    GET /admin/realms/{realm}/group-by-path/{path}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16121,7 +16312,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16131,7 +16322,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16158,9 +16349,9 @@
    Responses

    GET /admin/realms/{realm}/localization

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16189,7 +16380,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16199,7 +16390,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16217,7 +16408,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[[string]]

    @@ -16226,9 +16417,9 @@
    Responses

    DELETE /admin/realms/{realm}/localization/{locale}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16264,7 +16455,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -16291,9 +16482,9 @@
    Responses

    GET /admin/realms/{realm}/localization/{locale}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16328,7 +16519,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -16357,7 +16548,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16367,7 +16558,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16394,9 +16585,9 @@
    Responses

    DELETE /admin/realms/{realm}/localization/{locale}/{key}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16439,7 +16630,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -16466,9 +16657,9 @@
    Responses

    GET /admin/realms/{realm}/localization/{locale}/{key}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16511,7 +16702,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16521,7 +16712,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16548,9 +16739,9 @@
    Responses

    PUT /admin/realms/{realm}/localization/{locale}/{key}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16621,7 +16812,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -16651,9 +16842,9 @@

    POST /admin/realms/{realm}/loc

    Import localization from uploaded JSON file

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -16717,7 +16908,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -16753,9 +16944,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -16784,7 +16975,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -16794,7 +16985,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -16824,9 +17015,9 @@

    POST /admin/realms/{realm}/partial

    Partial export of existing realm into a JSON file.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -16854,7 +17045,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -16890,7 +17081,7 @@
    Query Parameters
    -
    Responses
    +
    Responses
    @@ -16920,9 +17111,9 @@

    POST /admin/realms/{realm}/partialI

    Partial import from a JSON file to an existing realm.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -16979,7 +17170,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -17009,9 +17200,9 @@

    POST /admin/realms/{realm}/push-r

    Push the realm’s revocation policy to any client that has an admin url associated with it.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -17040,7 +17231,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17050,7 +17241,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17086,9 +17277,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17145,7 +17336,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -17181,9 +17372,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17219,7 +17410,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -17249,9 +17440,9 @@

    POST /admin/realms/{realm}/tes

    Test SMTP connection with current logged in user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -17308,7 +17499,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -17335,9 +17526,9 @@
    Responses

    GET /admin/realms/{realm}/users-management-permissions

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17366,7 +17557,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17376,7 +17567,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17403,9 +17594,9 @@
    Responses

    PUT /admin/realms/{realm}/users-management-permissions

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17462,7 +17653,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -17472,7 +17663,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17505,9 +17696,9 @@

    GET /admin/realms/{realm}/gr

    Get role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -17543,7 +17734,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17553,7 +17744,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17583,9 +17774,9 @@

    GET /admin/rea

    Get realm-level roles that can be mapped

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -17621,7 +17812,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17631,7 +17822,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17649,7 +17840,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -17661,9 +17852,9 @@

    GET /admin/rea

    Get effective realm-level role mappings This will recurse all composite roles to get the result.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17698,7 +17889,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -17727,7 +17918,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17737,7 +17928,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17755,7 +17946,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -17767,9 +17958,9 @@

    DELETE /admin/realms

    Delete realm-level role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -17833,7 +18024,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -17863,9 +18054,9 @@

    GET /admin/realms/{real

    Get realm-level role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -17901,7 +18092,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -17911,7 +18102,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -17929,7 +18120,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -17941,9 +18132,9 @@

    POST /admin/realms/{re

    Add realm-level role mappings to the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18007,7 +18198,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -18037,9 +18228,9 @@

    GET /admin/realms/{realm}/use

    Get role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -18075,7 +18266,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18085,7 +18276,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18115,9 +18306,9 @@

    GET /admin/real

    Get realm-level roles that can be mapped

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -18153,7 +18344,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18163,7 +18354,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18181,7 +18372,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -18193,9 +18384,9 @@

    GET /admin/real

    Get effective realm-level role mappings This will recurse all composite roles to get the result.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18230,7 +18421,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -18259,7 +18450,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18269,7 +18460,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18287,7 +18478,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -18299,9 +18490,9 @@

    DELETE /admin/realms/

    Delete realm-level role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18365,7 +18556,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -18395,9 +18586,9 @@

    GET /admin/realms/{realm

    Get realm-level role mappings

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -18433,7 +18624,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18443,7 +18634,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18461,7 +18652,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -18473,9 +18664,9 @@

    POST /admin/realms/{rea

    Add realm-level role mappings to the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18539,7 +18730,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -18572,9 +18763,9 @@

    GET /admin/realms/{realm}/clients/{

    Get all roles for the realm or client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -18609,7 +18800,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -18659,7 +18850,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18669,7 +18860,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18687,7 +18878,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -18699,9 +18890,9 @@

    POST /admin/realms/{realm}/clients

    Create a new role for the realm or client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18765,7 +18956,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -18795,9 +18986,9 @@

    Get client-level roles for the client that are in the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -18847,7 +19038,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -18857,7 +19048,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -18875,7 +19066,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -18887,9 +19078,9 @@

    DELETE /admin

    Remove roles from the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -18960,7 +19151,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -18990,9 +19181,9 @@

    GET /admin/realm

    Get composites of the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19035,7 +19226,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19045,7 +19236,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19063,7 +19254,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -19075,9 +19266,9 @@

    POST /admin/rea

    Add a composite to the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -19148,7 +19339,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -19178,9 +19369,9 @@

    GET /admin/

    Get realm-level roles of the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19223,7 +19414,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19233,7 +19424,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19251,7 +19442,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -19263,9 +19454,9 @@

    DELETE /admin/realms/{r

    Delete a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -19308,7 +19499,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -19338,9 +19529,9 @@

    GET /admin/realms/{realm}/

    Get a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19383,7 +19574,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19393,7 +19584,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19423,9 +19614,9 @@

    GET /admin/realms/{r

    Returns a stream of groups that have the specified role name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19467,7 +19658,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -19510,7 +19701,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19520,7 +19711,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19538,7 +19729,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[GroupRepresentation]

    @@ -19550,9 +19741,9 @@

    GET /

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -19595,7 +19786,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19605,7 +19796,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19635,9 +19826,9 @@

    PUT /

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19708,7 +19899,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -19718,7 +19909,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19748,9 +19939,9 @@

    PUT /admin/realms/{realm}/

    Update a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19821,7 +20012,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -19851,9 +20042,9 @@

    GET /admin/realms/{re

    Returns a stream of users that have the specified role name.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -19895,7 +20086,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -19931,7 +20122,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -19941,7 +20132,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -19959,7 +20150,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserRepresentation]

    @@ -19971,9 +20162,9 @@

    GET /admin/realms/{realm}/roles

    Get all roles for the realm or client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20001,7 +20192,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -20051,7 +20242,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20061,7 +20252,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20079,7 +20270,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -20091,9 +20282,9 @@

    POST /admin/realms/{realm}/roles

    Create a new role for the realm or client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20150,7 +20341,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -20180,9 +20371,9 @@

    GET /adm

    Get client-level roles for the client that are in the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -20225,7 +20416,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20235,7 +20426,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20253,7 +20444,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -20265,9 +20456,9 @@

    DELETE /admin/realms/{

    Remove roles from the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20331,7 +20522,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -20361,9 +20552,9 @@

    GET /admin/realms/{realm}

    Get composites of the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -20399,7 +20590,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20409,7 +20600,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20427,7 +20618,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -20439,9 +20630,9 @@

    POST /admin/realms/{real

    Add a composite to the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20505,7 +20696,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -20535,9 +20726,9 @@

    GET /admin/realms/{r

    Get realm-level roles of the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -20573,7 +20764,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20583,7 +20774,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20601,7 +20792,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -20613,9 +20804,9 @@

    DELETE /admin/realms/{realm}/rol

    Delete a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20651,7 +20842,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -20681,9 +20872,9 @@

    GET /admin/realms/{realm}/roles/{ro

    Get a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -20719,7 +20910,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20729,7 +20920,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20759,9 +20950,9 @@

    GET /admin/realms/{realm}/rol

    Returns a stream of groups that have the specified role name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -20796,7 +20987,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -20839,7 +21030,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20849,7 +21040,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20867,7 +21058,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[GroupRepresentation]

    @@ -20879,9 +21070,9 @@

    GET /admin/rea

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -20917,7 +21108,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -20927,7 +21118,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -20957,9 +21148,9 @@

    PUT /admin/rea

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21023,7 +21214,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -21033,7 +21224,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21063,9 +21254,9 @@

    PUT /admin/realms/{realm}/roles/{ro

    Update a role by name

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21129,7 +21320,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -21159,9 +21350,9 @@

    GET /admin/realms/{realm}/role

    Returns a stream of users that have the specified role name.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21196,7 +21387,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -21232,7 +21423,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21242,7 +21433,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21260,7 +21451,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserRepresentation]

    @@ -21275,9 +21466,9 @@

    GET

    Get client-level roles for the client that are in the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -21320,7 +21511,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21330,7 +21521,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21348,7 +21539,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -21360,9 +21551,9 @@

    DELETE /admin/real

    Remove a set of roles from the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -21426,7 +21617,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -21456,9 +21647,9 @@

    GET /admin/realms/{re

    Get role’s children Returns a set of role’s children provided the role is a composite.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21493,7 +21684,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -21536,7 +21727,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21546,7 +21737,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21564,7 +21755,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -21576,9 +21767,9 @@

    POST /admin/realms/{

    Make the role a composite role by associating some child roles

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -21642,7 +21833,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -21672,9 +21863,9 @@

    GET /admin/realm

    Get realm-level roles that are in the role’s composite

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21710,7 +21901,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21720,7 +21911,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21738,7 +21929,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -21750,9 +21941,9 @@

    DELETE /admin/realms/{realm}

    Delete the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -21788,7 +21979,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -21818,9 +22009,9 @@

    GET /admin/realms/{realm}/roles

    Get a specific role’s representation

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21856,7 +22047,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21866,7 +22057,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21896,9 +22087,9 @@

    GET /admin

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -21934,7 +22125,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -21944,7 +22135,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -21974,9 +22165,9 @@

    PUT /admin

    Return object stating whether role Authorization permissions have been initialized or not and a reference

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -22040,7 +22231,7 @@
    Body Parameter
    -
    Content Type
    +
    Content Type
    • @@ -22050,7 +22241,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22080,9 +22271,9 @@

    PUT /admin/realms/{realm}/roles

    Update the role

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -22146,7 +22337,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -22179,9 +22370,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -22224,7 +22415,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22234,7 +22425,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22252,7 +22443,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -22264,9 +22455,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -22308,7 +22499,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -22337,7 +22528,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22347,7 +22538,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22365,7 +22556,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -22377,9 +22568,9 @@

    DELE

    Remove client-level roles from the client’s scope.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -22450,7 +22641,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -22480,9 +22671,9 @@

    GET /ad

    Get the roles associated with a client’s scope Returns roles for the client.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -22525,7 +22716,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22535,7 +22726,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22553,7 +22744,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -22565,9 +22756,9 @@

    POST /

    Add client-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -22638,7 +22829,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -22668,9 +22859,9 @@

    GET /admin/realms/{r

    Get all scope mappings for the client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -22706,7 +22897,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22716,7 +22907,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22746,9 +22937,9 @@

    GET /a

    Get realm-level roles that are available to attach to this client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -22784,7 +22975,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22794,7 +22985,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22812,7 +23003,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -22830,9 +23021,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -22867,7 +23058,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -22896,7 +23087,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -22906,7 +23097,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -22924,7 +23115,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -22936,9 +23127,9 @@

    DELETE /admi

    Remove a set of realm-level roles from the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23002,7 +23193,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -23032,9 +23223,9 @@

    GET /admin/real

    Get realm-level roles associated with the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -23070,7 +23261,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23080,7 +23271,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23098,7 +23289,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23110,9 +23301,9 @@

    POST /admin/re

    Add a set of realm-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23176,7 +23367,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -23206,9 +23397,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23251,7 +23442,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23261,7 +23452,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23279,7 +23470,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23291,9 +23482,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23335,7 +23526,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -23364,7 +23555,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23374,7 +23565,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23392,7 +23583,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23404,9 +23595,9 @@

    D

    Remove client-level roles from the client’s scope.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23477,7 +23668,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -23507,9 +23698,9 @@

    GET

    Get the roles associated with a client’s scope Returns roles for the client.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -23552,7 +23743,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23562,7 +23753,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23580,7 +23771,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23592,9 +23783,9 @@

    POS

    Add client-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23665,7 +23856,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -23695,9 +23886,9 @@

    GET /admin/realms

    Get all scope mappings for the client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -23733,7 +23924,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23743,7 +23934,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23773,9 +23964,9 @@

    GET

    Get realm-level roles that are available to attach to this client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -23811,7 +24002,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23821,7 +24012,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23839,7 +24030,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23857,9 +24048,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -23894,7 +24085,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -23923,7 +24114,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -23933,7 +24124,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -23951,7 +24142,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -23963,9 +24154,9 @@

    DELETE /a

    Remove a set of realm-level roles from the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24029,7 +24220,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -24059,9 +24250,9 @@

    GET /admin/r

    Get realm-level roles associated with the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -24097,7 +24288,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -24107,7 +24298,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -24125,7 +24316,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -24137,9 +24328,9 @@

    POST /admin

    Add a set of realm-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24203,7 +24394,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -24233,9 +24424,9 @@

    GET

    The available client-level roles Returns the roles for the client that can be associated with the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -24278,7 +24469,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -24288,7 +24479,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -24306,7 +24497,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -24318,9 +24509,9 @@

    GET

    Get effective client roles Returns the roles for the client that are associated with the client’s scope.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24362,7 +24553,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -24391,7 +24582,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -24401,7 +24592,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -24419,7 +24610,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -24431,9 +24622,9 @@

    DELETE /ad

    Remove client-level roles from the client’s scope.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24504,7 +24695,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -24534,9 +24725,9 @@

    GET /admin/re

    Get the roles associated with a client’s scope Returns roles for the client.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -24579,7 +24770,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -24589,7 +24780,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -24607,7 +24798,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -24619,9 +24810,9 @@

    POST /admin/

    Add client-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24692,7 +24883,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -24722,84 +24913,6 @@

    GET /admin/realms/{realm}/

    Get all scope mappings for the client

    -
    Parameters
    -
    -
    Path Parameters
    -

    ------ - - - - - - - - - - - - - - - - - - - - - - -
    NameDescriptionDefaultPattern

    realm
    -required

    realm name (not id!)

    null

    id
    -required

    null

    -
    -
    -
    -
    Content Type
    -
    -
      -
    • -

      application/json

      -
    • -
    -
    -
    -
    -
    Responses
    - ----- - - - - - - - - - - - - - - -
    CodeMessageDatatype

    200

    OK

    MappingsRepresentation

    -
    -
    -
    -

    GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/available

    -
    -

    Get realm-level roles that are available to attach to this client’s scope

    -
    -
    Parameters
    Path Parameters
    @@ -24838,7 +24951,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    +
    +
    +

    GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/available

    +
    +

    Get realm-level roles that are available to attach to this client’s scope

    +
    +
    +
    Parameters
    +
    +
    Path Parameters
    + ++++++ + + + + + + + + + + + + + + + + + + + + + + +
    NameDescriptionDefaultPattern

    realm
    +required

    realm name (not id!)

    null

    id
    +required

    null

    +
    +
    +
    +
    Content Type
    +
    +
      +
    • +

      application/json

      +
    • +
    +
    +
    +
    +
    Responses
    + +++++ + + + + + + + + + + + +
    CodeMessageDatatype

    200

    OK

    List[RoleRepresentation]

    @@ -24884,9 +25075,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -24921,7 +25112,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -24950,7 +25141,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -24960,7 +25151,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -24978,7 +25169,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -24990,9 +25181,9 @@

    DELETE /admin/real

    Remove a set of realm-level roles from the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25056,7 +25247,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -25086,9 +25277,9 @@

    GET /admin/realms/{re

    Get realm-level roles associated with the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -25124,7 +25315,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -25134,7 +25325,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -25152,7 +25343,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[RoleRepresentation]

    @@ -25164,9 +25355,9 @@

    POST /admin/realms/{

    Add a set of realm-level roles to the client’s scope

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25230,7 +25421,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -25269,9 +25460,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25299,7 +25490,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -25377,7 +25568,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -25387,7 +25578,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -25417,9 +25608,9 @@

    GET /admin/realms/{realm}/users

    Get users Returns a stream of users, filtered according to query parameters.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25447,7 +25638,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -25567,7 +25758,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -25577,7 +25768,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -25595,7 +25786,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserRepresentation]

    @@ -25613,9 +25804,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25651,7 +25842,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -25661,7 +25852,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -25679,7 +25870,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[[string]]

    @@ -25691,9 +25882,9 @@

    DELETE /admin/realms/{rea

    Revoke consent and offline tokens for particular client from user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25736,7 +25927,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -25766,9 +25957,9 @@

    GET /admin/realms/{realm}/users/{i

    Get consents granted by the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -25804,7 +25995,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -25814,7 +26005,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -25832,7 +26023,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[[AnyType]]

    @@ -25844,9 +26035,9 @@

    DELETE /admin/re

    Remove a credential for a user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25889,7 +26080,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -25919,9 +26110,9 @@

    -

    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -25971,7 +26162,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -26001,9 +26192,9 @@

    POST /a

    Move a credential to a first position in the credentials list of the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -26046,7 +26237,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -26076,9 +26267,9 @@

    PUT /admin

    Update a credential label for a user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -26149,7 +26340,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -26176,9 +26367,9 @@
    Responses

    GET /admin/realms/{realm}/users/{id}/credentials

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26214,7 +26405,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -26224,7 +26415,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -26242,7 +26433,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[CredentialRepresentation]

    @@ -26254,9 +26445,9 @@

    DELETE /admin/realms/{realm}/users/{id}

    Delete the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26292,7 +26483,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -26322,9 +26513,9 @@

    PUT /admin/realms/

    Disable all credentials for a user of a specific type

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -26388,7 +26579,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -26424,9 +26615,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26489,7 +26680,7 @@
    Body Parameter
    -
    Query Parameters
    +
    Query Parameters
    @@ -26532,7 +26723,7 @@
    Query Parameters
    -
    Responses
    +
    Responses
    @@ -26562,9 +26753,9 @@

    GET /admin/realms/{realm

    Get social logins associated with the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -26600,7 +26791,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -26610,7 +26801,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -26628,7 +26819,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[FederatedIdentityRepresentation]

    @@ -26640,9 +26831,9 @@

    DELETE /admin

    Remove a social login provider from user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26685,7 +26876,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -26715,9 +26906,9 @@

    POST /admin/rea

    Add a social login provider to the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -26760,7 +26951,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -26790,9 +26981,9 @@

    GET /admin/realms/{realm}/users/{id}

    Get representation of the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26827,7 +27018,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -26856,7 +27047,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -26866,7 +27057,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -26893,9 +27084,9 @@
    Responses

    GET /admin/realms/{realm}/users/{id}/groups/count

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -26930,7 +27121,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -26959,7 +27150,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -26969,7 +27160,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -26996,9 +27187,9 @@
    Responses

    GET /admin/realms/{realm}/users/{id}/groups

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27033,7 +27224,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -27083,7 +27274,7 @@
    Query Parameters
    -
    Content Type
    +
    Content Type
    • @@ -27093,7 +27284,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -27111,7 +27302,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[GroupRepresentation]

    @@ -27120,9 +27311,9 @@
    Responses

    DELETE /admin/realms/{realm}/users/{id}/groups/{groupId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27165,7 +27356,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -27192,9 +27383,9 @@
    Responses

    PUT /admin/realms/{realm}/users/{id}/groups/{groupId}

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27237,7 +27428,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -27267,9 +27458,9 @@

    POST /admin/realms/{realm}/u

    Impersonate the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -27305,7 +27496,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -27315,7 +27506,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -27345,9 +27536,9 @@

    POST /admin/realms/{realm}/users/{i

    Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -27383,7 +27574,7 @@
    Path Parameters
    -
    Responses
    +
    Responses
    @@ -27413,9 +27604,9 @@

    GET /admin/realm

    Get offline sessions associated with the user and client

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -27458,7 +27649,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -27468,7 +27659,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -27486,7 +27677,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserSessionRepresentation]

    @@ -27498,9 +27689,9 @@

    PUT /admin/realms/{realm}/users/{id}

    Update the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27564,7 +27755,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -27600,9 +27791,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27637,7 +27828,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -27673,7 +27864,7 @@
    Query Parameters
    -
    Responses
    +
    Responses
    @@ -27703,9 +27894,9 @@

    PUT /admin/realms/{realm}/us

    Set up a new password for the user.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -27769,7 +27960,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -27805,9 +27996,9 @@
    Description
    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -27842,7 +28033,7 @@
    Path Parameters
    -
    Query Parameters
    +
    Query Parameters
    @@ -27878,7 +28069,7 @@
    Query Parameters
    -
    Responses
    +
    Responses
    @@ -27908,9 +28099,9 @@

    GET /admin/realms/{realm}/users/{i

    Get sessions associated with the user

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters

    @@ -27946,7 +28137,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -27956,7 +28147,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -27974,7 +28165,7 @@
    Responses
    - +

    200

    OK

    [Object]

    List[UserSessionRepresentation]

    @@ -27986,9 +28177,9 @@

    POST /admin/realms/{realm}/users

    Create a new user Username must be unique.

    -
    Parameters
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -28045,7 +28236,7 @@
    Body Parameter
    -
    Responses
    +
    Responses
    @@ -28072,9 +28263,15 @@
    Responses

    GET /admin/realms/{realm}/users/profile

    -
    Parameters
    +
    Description
    +
    +

    Get the configuration for the user profile

    +
    +
    +
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -28103,7 +28300,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -28113,7 +28310,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -28131,7 +28328,7 @@
    Responses
    - +

    200

    OK

    [String]

    UPConfig

    @@ -28140,9 +28337,15 @@
    Responses

    GET /admin/realms/{realm}/users/profile/metadata

    -
    Parameters
    +
    Description
    +
    +

    Get the UserProfileMetadata from the configuration

    +
    +
    +
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -28171,7 +28374,7 @@
    Path Parameters
    -
    Content Type
    +
    Content Type
    • @@ -28181,7 +28384,7 @@
      Content Type
    -
    Responses
    +
    Responses
    @@ -28208,9 +28411,15 @@
    Responses

    PUT /admin/realms/{realm}/users/profile

    -
    Parameters
    +
    Description
    +
    +

    Set the configuration for the user profile

    +
    +
    +
    +
    Parameters
    -
    Path Parameters
    +
    Path Parameters
    @@ -28256,9 +28465,9 @@
    Body Parameter
    - - + @@ -28267,7 +28476,17 @@
    Body Parameter
    -
    Responses
    +
    Content Type
    +
    +
      +
    • +

      application/json

      +
    • +
    +
    +
    +
    +
    Responses

    body
    +

    UPConfig
    optional

    [string]

    UPConfig

    @@ -28285,7 +28504,7 @@
    Responses
    - +

    200

    OK

    <<>>

    UPConfig

    @@ -28395,7 +28614,7 @@

    AccessToken

    otherClaims
    optional

    -

    Map of [object]

    +

    Map of [AnyType]

    @@ -28605,7 +28824,7 @@

    AccessToken

    cnf
    optional

    -

    CertConf

    +

    Confirmation

    @@ -28673,6 +28892,73 @@

    AddressClaimSet

    +

    AdminEventRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    time
    +optional

    Long

    int64

    realmId
    +optional

    String

    authDetails
    +optional

    AuthDetailsRepresentation

    operationType
    +optional

    String

    resourceType
    +optional

    String

    resourcePath
    +optional

    String

    representation
    +optional

    String

    error
    +optional

    String

    +
    +

    ApplicationRepresentation

    @@ -29041,6 +29327,49 @@

    ApplicationRepresentationClaims

    +

    AuthDetailsRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    realmId
    +optional

    String

    clientId
    +optional

    String

    userId
    +optional

    String

    ipAddress
    +optional

    String

    +
    +

    AuthenticationExecutionExportRepresentation

    @@ -29444,31 +29773,6 @@

    Authorization

    -

    CertConf

    - ----- - - - - - - - - - - - - - - -
    NameTypeFormat

    x5t#S256
    -optional

    String

    -
    -

    CertificateRepresentation

    @@ -30481,6 +30785,49 @@

    ComponentRepresentation

    +

    ComponentTypeRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    id
    +optional

    String

    helpText
    +optional

    String

    properties
    +optional

    List of ConfigPropertyRepresentation

    metadata
    +optional

    Map of [AnyType]

    +
    +

    Composites

    @@ -30560,7 +30907,7 @@

    ConfigPropertyRepresentation

    - + @@ -30576,6 +30923,12 @@

    ConfigPropertyRepresentation

    + + + + + @@ -30585,6 +30938,37 @@

    ConfigPropertyRepresentation

    defaultValue
    optional

    Object

    oas_any_type_not_mapped

    required
    +optional

    Boolean

    readOnly
    optional

    Boolean

    +

    Confirmation

    + +++++ + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    x5t#S256
    +optional

    String

    jkt
    +optional

    String

    +
    +

    CredentialRepresentation

    @@ -30746,6 +31130,79 @@

    EnforcementMode

    +

    EventRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    time
    +optional

    Long

    int64

    type
    +optional

    String

    realmId
    +optional

    String

    clientId
    +optional

    String

    userId
    +optional

    String

    sessionId
    +optional

    String

    ipAddress
    +optional

    String

    error
    +optional

    String

    details
    +optional

    Map of [string]

    +
    +

    FederatedIdentityRepresentation

    @@ -30848,6 +31305,24 @@

    GroupRepresentation

    + + + + + + + + + + + + + + + @@ -30866,12 +31341,6 @@

    GroupRepresentation

    - - - - - @@ -30947,7 +31416,7 @@

    IDToken

    - + @@ -31401,7 +31870,7 @@

    InstallationAdapterConfig

    - + @@ -31495,6 +31964,12 @@

    KeyMetadataRepresentation

    + + + + +

    parentId
    +optional

    String

    subGroupCount
    +optional

    Long

    int64

    subGroups
    +optional

    List of GroupRepresentation

    attributes
    optional

    Map of [array]

    subGroups
    -optional

    List of GroupRepresentation

    access
    optional

    Map of [boolean]

    otherClaims
    optional

    Map of [object]

    Map of [AnyType]

    credentials
    optional

    Map of [object]

    Map of [AnyType]

    KeyUse

    validTo
    +optional

    Long

    int64

    @@ -32267,7 +32742,7 @@

    PolicyEnforcerConfig

    credentials
    optional

    -

    Map of [object]

    +

    Map of [AnyType]

    @@ -32377,6 +32852,61 @@

    PolicyRepresentation

    +

    ProtocolMapperEvaluationRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    mapperId
    +optional

    String

    mapperName
    +optional

    String

    containerId
    +optional

    String

    containerName
    +optional

    String

    containerType
    +optional

    String

    protocolMapper
    +optional

    String

    +
    +

    ProtocolMapperRepresentation

    @@ -32966,6 +33496,12 @@

    RealmRepresentation

    + + + + + @@ -33026,6 +33562,12 @@

    RealmRepresentation

    + + + + + @@ -33086,15 +33628,21 @@

    RealmRepresentation

    + + + + + - + - + @@ -33615,8 +34163,312 @@

    ResourceRepresentationOwner

    localizationTexts
    +optional

    Map of [map]

    webAuthnPolicyRpEntityName
    optional

    String

    webAuthnPolicyExtraOrigins
    +optional

    List of [string]

    webAuthnPolicyPasswordlessRpEntityName
    optional

    String

    webAuthnPolicyPasswordlessExtraOrigins
    +optional

    List of [string]

    clientProfiles
    optional

    List

    ClientProfilesRepresentation

    clientPolicies
    optional

    List

    ClientPoliciesRepresentation

    -

    ResourceServerRepresentation

    - +

    ResourceServerRepresentation

    +
    +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    id
    +optional

    String

    clientId
    +optional

    String

    name
    +optional

    String

    allowRemoteResourceManagement
    +optional

    Boolean

    policyEnforcementMode
    +optional

    PolicyEnforcementMode

    resources
    +optional

    List of ResourceRepresentation

    policies
    +optional

    List of PolicyRepresentation

    scopes
    +optional

    List of ScopeRepresentation

    decisionStrategy
    +optional

    DecisionStrategy

    +
    +
    +

    RoleRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    id
    +optional

    String

    name
    +optional

    String

    description
    +optional

    String

    scopeParamRequired
    +optional

    Boolean

    composite
    +optional

    Boolean

    composites
    +optional

    Composites

    clientRole
    +optional

    Boolean

    containerId
    +optional

    String

    attributes
    +optional

    Map of [array]

    +
    +
    +

    RolesRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    realm
    +optional

    List of RoleRepresentation

    client
    +optional

    Map of [array]

    application
    +optional

    Map of [array]

    +
    +
    +

    ScopeEnforcementMode

    + +++++ + + + + + + + +
    NameTypeFormat
    +
    +
    +

    ScopeMappingRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    self
    +optional

    String

    client
    +optional

    String

    clientTemplate
    +optional

    String

    clientScope
    +optional

    String

    roles
    +optional

    Set of [string]

    +
    +
    +

    ScopeRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    id
    +optional

    String

    name
    +optional

    String

    iconUri
    +optional

    String

    policies
    +optional

    List of PolicyRepresentation

    resources
    +optional

    List of ResourceRepresentation

    displayName
    +optional

    String

    +
    +
    +

    SocialLinkRepresentation

    +@@ -33631,65 +34483,29 @@

    ResourceServerRepresentation

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    id
    +

    socialProvider
    optional

    String

    clientId
    +

    socialUserId
    optional

    String

    name
    +

    socialUsername
    optional

    String

    allowRemoteResourceManagement
    -optional

    Boolean

    policyEnforcementMode
    -optional

    PolicyEnforcementMode

    resources
    -optional

    List of ResourceRepresentation

    policies
    -optional

    List of PolicyRepresentation

    scopes
    -optional

    List of ScopeRepresentation

    decisionStrategy
    -optional

    DecisionStrategy

    -

    RoleRepresentation

    - +

    UPAttribute

    +
    @@ -33704,65 +34520,59 @@

    RoleRepresentation

    - - - - - - - - + - - + - - + - - + - - + - - +

    id
    -optional

    String

    name
    optional

    String

    description
    +

    displayName
    optional

    String

    scopeParamRequired
    +

    validations
    optional

    Boolean

    Map of [map]

    composite
    +

    annotations
    optional

    Boolean

    Map of [AnyType]

    composites
    +

    required
    optional

    Composites

    UPAttributeRequired

    clientRole
    +

    permissions
    optional

    Boolean

    UPAttributePermissions

    containerId
    +

    selector
    optional

    String

    UPAttributeSelector

    attributes
    +

    group
    optional

    Map of [array]

    String

    -

    RolesRepresentation

    - +

    UPAttributePermissions

    +
    @@ -33777,29 +34587,23 @@

    RolesRepresentation

    - - - - - - - + - - +

    realm
    +

    view
    optional

    List of RoleRepresentation

    client
    -optional

    Map of [array]

    Set of [string]

    application
    +

    edit
    optional

    Map of [array]

    Set of [string]

    -

    ScopeEnforcementMode

    - +

    UPAttributeRequired

    +
    @@ -33812,11 +34616,25 @@

    ScopeEnforcementMode

    + + + + + + + + + + + +
    Format

    roles
    +optional

    Set of [string]

    scopes
    +optional

    Set of [string]

    -

    ScopeMappingRepresentation

    - +

    UPAttributeSelector

    +
    @@ -33831,31 +34649,7 @@

    ScopeMappingRepresentation

    - - - - - - - - - - - - - - - - - - - - - @@ -33864,8 +34658,8 @@

    ScopeMappingRepresentation

    self
    -optional

    String

    client
    -optional

    String

    clientTemplate
    -optional

    String

    clientScope
    -optional

    String

    roles
    +

    scopes
    optional

    Set of [string]

    -

    ScopeRepresentation

    - +

    UPConfig

    +
    @@ -33880,47 +34674,23 @@

    ScopeRepresentation

    - - - - - - - - - - - - - - - - - - - - - - + - - +

    id
    -optional

    String

    name
    -optional

    String

    iconUri
    -optional

    String

    policies
    -optional

    List of PolicyRepresentation

    resources
    +

    attributes
    optional

    List of ResourceRepresentation

    List of UPAttribute

    displayName
    +

    groups
    optional

    String

    List of UPGroup

    -

    SocialLinkRepresentation

    - +

    UPGroup

    +
    @@ -33935,23 +34705,29 @@

    SocialLinkRepresentation

    - - - + + + + +

    socialProvider
    +

    name
    optional

    String

    socialUserId
    +

    displayHeader
    optional

    String

    socialUsername
    +

    displayDescription
    optional

    String

    annotations
    +optional

    Map of [AnyType]

    @@ -34157,7 +34933,7 @@

    UserProfileAttributeGroupMetadata

    annotations
    optional

    -

    Map of [object]

    +

    Map of [AnyType]

    @@ -34206,7 +34982,7 @@

    UserProfileAttributeMetadata

    annotations
    optional

    -

    Map of [object]

    +

    Map of [AnyType]

    @@ -34436,12 +35212,79 @@

    UserRepresentation

    +
    +

    UserSessionRepresentation

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeFormat

    id
    +optional

    String

    username
    +optional

    String

    userId
    +optional

    String

    ipAddress
    +optional

    String

    start
    +optional

    Long

    int64

    lastAccess
    +optional

    Long

    int64

    rememberMe
    +optional

    Boolean

    clients
    +optional

    Map of [string]

    +
    diff --git a/examples/openapi.patch.toml b/examples/openapi.patch.toml index 72d78cb..cf57f2f 100644 --- a/examples/openapi.patch.toml +++ b/examples/openapi.patch.toml @@ -1,285 +1,12 @@ [path."/admin/realms:post:body"] from_type = "String" rust_type = "RealmRepresentation" -[path."/admin/realms:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/authentication/authenticator-providers:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/authentication/client-authenticator-providers:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/authentication/flows:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/authentication/form-action-providers:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/authentication/form-providers:get:"] -from_type = "Value" -rust_type = "TypeVec>" [path."/admin/realms/{realm}/authentication/register-required-action:post:body"] from_type = "TypeMap" rust_type = "RequiredActionProviderRepresentation" -[path."/admin/realms/{realm}/authentication/required-actions:get:"] -from_type = "Value" -rust_type = "TypeVec" [path."/admin/realms/{realm}/authentication/unregistered-required-actions:get:"] -from_type = "Value" +from_type = "TypeVec>" rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients-initial-access:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-registration-policy/providers:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/default-client-scopes:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/evaluate-scopes/protocol-mappers:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/offline-sessions:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/clients/{id}/optional-client-scopes:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/user-sessions:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/components:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/components/{id}/sub-component-types:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/members:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/identity-provider/instances:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/identity-provider/instances/{alias}/mappers:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/protocol-mappers/models:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/protocol-mappers/protocol/{protocol}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/protocol-mappers/models:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/admin-events:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/client-session-stats:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/credential-registrators:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/default-default-client-scopes:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/default-groups:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/default-optional-client-scopes:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/events:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/localization:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/realm/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/groups/{id}/role-mappings/realm/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/realm/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/role-mappings/realm/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles/{role-name}/groups:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/roles/{role-name}/users:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles/{role-name}/composites:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles/{role-name}/composites/clients/{clientUuid}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles/{role-name}/composites/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles/{role-name}/groups:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles/{role-name}/users:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles-by-id/{role-id}/composites:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/roles-by-id/{role-id}/composites/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/realm:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/realm/available:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/clients/{id}/scope-mappings/realm/composite:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/configured-user-storage-credential-types:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/consents:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/users/{id}/credentials:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/federated-identity:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/groups:get:"] -from_type = "Value" -rust_type = "TypeVec" -[path."/admin/realms/{realm}/users/{id}/offline-sessions/{clientUuid}:get:"] -from_type = "Value" -rust_type = "TypeVec>" -[path."/admin/realms/{realm}/users/{id}/sessions:get:"] +[path."/admin/realms/{realm}/identity-provider/providers/{provider_id}:get:"] from_type = "Value" -rust_type = "TypeVec>" \ No newline at end of file +rust_type = "IdentityProviderRepresentation" \ No newline at end of file diff --git a/examples/openapi.rs b/examples/openapi.rs index 8cd8f93..b2e140e 100644 --- a/examples/openapi.rs +++ b/examples/openapi.rs @@ -313,14 +313,16 @@ mod openapi { if let Some(desc) = desc.as_ref() { let from_type = desc.from_type.as_str(); if &from_type != body_type_value { - eprintln!( - r#"warn: body type info changed in [path."{path}:{method_string_lc}:{body_parameter_name}"] : was {from_type} now {body_type_value} (mapped {})"#, - if body_type_value == &desc.rust_type { - "redundant" - } else { + let redundant = body_type_value == &desc.rust_type; + let full_header = format!(r#"[path."{path}:{method_string_lc}:{body_parameter_name}"]"#); + if redundant { + delete_mapping(&full_header); + } else { + eprintln!( + "warn: body type info changed in {full_header} : was {from_type} now {body_type_value} (mapped {})", &desc.rust_type - } - ); + ); + } } ReturnType { value: desc.rust_type.clone().into(), @@ -371,14 +373,16 @@ mod openapi { if let Some(desc) = desc.as_ref() { let from_type = desc.from_type.as_str(); if from_type != result_type_value { - eprintln!( - r#"warn: type info changed in [path."{path}:{method_string_lc}:"] : was {from_type} now {result_type_value} (mapped {})"#, - if result_type_value == &desc.rust_type { - "redundant" - } else { + let redundant = result_type_value == &desc.rust_type; + let full_header = format!(r#"[path."{path}:{method_string_lc}:"]"#); + if redundant { + delete_mapping(&full_header); + } else { + eprintln!( + "warn: type info changed in {full_header} : was {from_type} now {result_type_value} (mapped {})", &desc.rust_type - } - ); + ); + } } result_type_value = desc.rust_type.as_str(); result_type = Some(ReturnType { @@ -561,6 +565,33 @@ mod openapi { } } + fn delete_mapping(header: &str) { + let mut in_header = false; + std::fs::write( + "examples/openapi.patch.toml", + std::fs::read_to_string("examples/openapi.patch.toml") + .expect("could not read examples/openapi.patch.toml") + .split('\n') + .fold(Vec::<&'_ str>::new(), |mut acc, x| { + if !in_header { + if x == header { + in_header = true; + } else { + acc.push(x); + } + } else { + if x.starts_with("[path.") { + in_header = false; + acc.push(x); + } + } + acc + }) + .join("\n"), + ) + .expect("write to examples/openapi.patch.toml"); + } + #[derive(Debug, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)] #[serde(rename_all = "lowercase")] pub enum Method { diff --git a/src/lib.rs b/src/lib.rs index 7576e71..70e4fde 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ Dual-licensed under `MIT` or the [UNLICENSE](http://unlicense.org/). ## Features -Implements [Keycloak Admin REST API version 22.0.5](https://www.keycloak.org/docs-api/22.0.5/rest-api/index.html). +Implements [Keycloak Admin REST API version 23.0.0](https://www.keycloak.org/docs-api/23.0.0/rest-api/index.html). ### Feature flags @@ -25,7 +25,7 @@ Add dependency to Cargo.toml: ```toml [dependencies] -keycloak = "22.0" +keycloak = "23.0" ``` ```rust#ignore diff --git a/src/rest/generated_rest.rs b/src/rest/generated_rest.rs index 897cd29..e0652f6 100644 --- a/src/rest/generated_rest.rs +++ b/src/rest/generated_rest.rs @@ -16,7 +16,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/attack-detection/brute-force/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-attack-detection")] pub async fn realm_attack_detection_brute_force_users_delete( &self, @@ -45,7 +45,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/attack-detection/brute-force/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` #[cfg(feature = "tag-attack-detection")] @@ -76,7 +76,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{user_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/attack-detection/brute-force/users/{userId}` #[cfg(feature = "tag-attack-detection")] @@ -109,7 +109,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/authenticator-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_authenticator_providers_get( &self, @@ -136,7 +136,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/client-authenticator-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_client_authenticator_providers_get( &self, @@ -164,7 +164,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] #[deprecated] pub async fn realm_authentication_config_post( @@ -196,7 +196,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/config-description/{provider_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/config-description/{providerId}` #[cfg(feature = "tag-authentication-management")] @@ -227,7 +227,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_get( &self, @@ -257,7 +257,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_put( &self, @@ -289,7 +289,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/config/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_config_with_id_delete( &self, @@ -319,7 +319,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_executions_post( &self, @@ -350,7 +350,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/executions/{execution_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/executions/{executionId}` #[cfg(feature = "tag-authentication-management")] @@ -382,7 +382,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/executions/{execution_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/authentication/executions/{executionId}` #[cfg(feature = "tag-authentication-management")] @@ -415,7 +415,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/config` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/config` #[cfg(feature = "tag-authentication-management")] @@ -450,7 +450,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/executions/{execution_id}/config/{id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/executions/{executionId}/config/{id}` #[cfg(feature = "tag-authentication-management")] @@ -483,7 +483,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/lower-priority` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/lower-priority` #[cfg(feature = "tag-authentication-management")] @@ -515,7 +515,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/executions/{execution_id}/raise-priority` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/executions/{executionId}/raise-priority` #[cfg(feature = "tag-authentication-management")] @@ -546,7 +546,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_get( &self, @@ -574,7 +574,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_post( &self, @@ -606,7 +606,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/copy` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/copy` #[cfg(feature = "tag-authentication-management")] @@ -640,7 +640,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows/{flow_alias}/executions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/authentication/flows/{flowAlias}/executions` #[cfg(feature = "tag-authentication-management")] @@ -673,7 +673,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/flows/{flow_alias}/executions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/authentication/flows/{flowAlias}/executions` #[cfg(feature = "tag-authentication-management")] @@ -708,7 +708,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/executions/execution` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/execution` #[cfg(feature = "tag-authentication-management")] @@ -743,7 +743,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/flows/{flow_alias}/executions/flow` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/authentication/flows/{flowAlias}/executions/flow` #[cfg(feature = "tag-authentication-management")] @@ -777,7 +777,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_get( &self, @@ -807,7 +807,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_put( &self, @@ -839,7 +839,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/flows/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_flows_with_id_delete( &self, @@ -868,7 +868,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/form-action-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_form_action_providers_get( &self, @@ -895,7 +895,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/form-providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_form_providers_get( &self, @@ -922,7 +922,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/per-client-config-description` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_per_client_config_description_get( &self, @@ -950,7 +950,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/register-required-action` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_register_required_action_post( &self, @@ -980,7 +980,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_get( &self, @@ -1008,7 +1008,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_get( &self, @@ -1038,7 +1038,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_put( &self, @@ -1070,7 +1070,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/authentication/required-actions/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_delete( &self, @@ -1100,7 +1100,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_lower_priority_post( &self, @@ -1130,7 +1130,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_required_actions_with_alias_raise_priority_post( &self, @@ -1159,7 +1159,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/authentication/unregistered-required-actions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-authentication-management")] pub async fn realm_authentication_unregistered_required_actions_get( &self, @@ -1190,7 +1190,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/certificates/{attr}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_get( &self, @@ -1222,7 +1222,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/download` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_download_post( &self, @@ -1255,7 +1255,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/generate` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_generate_post( &self, @@ -1290,7 +1290,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/generate-and-download` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_generate_and_download_post( &self, @@ -1323,7 +1323,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/upload` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_upload_post( &self, @@ -1354,7 +1354,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/certificates/{attr}/upload-certificate` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-attribute-certificate")] pub async fn realm_clients_with_id_certificates_with_attr_upload_certificate_post( &self, @@ -1383,7 +1383,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients-initial-access` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_get( &self, @@ -1411,7 +1411,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients-initial-access` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_post( &self, @@ -1439,7 +1439,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients-initial-access/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-initial-access")] pub async fn realm_clients_initial_access_with_id_delete( &self, @@ -1470,12 +1470,12 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-registration-policy/providers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-registration-policy")] pub async fn realm_client_registration_policy_providers_get( &self, realm: &str, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let builder = self .client .get(&format!( @@ -1501,7 +1501,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_get( &self, @@ -1533,7 +1533,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_post( &self, @@ -1568,7 +1568,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_delete( &self, @@ -1602,7 +1602,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_available_get( &self, @@ -1634,7 +1634,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_groups_with_id_role_mappings_clients_with_client_composite_get( &self, @@ -1669,7 +1669,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_get( &self, @@ -1701,7 +1701,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_post( &self, @@ -1736,7 +1736,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_delete( &self, @@ -1770,7 +1770,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_available_get( &self, @@ -1802,7 +1802,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-role-mappings")] pub async fn realm_users_with_id_role_mappings_clients_with_client_composite_get( &self, @@ -1837,7 +1837,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_get( &self, @@ -1862,7 +1862,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_post( &self, @@ -1890,7 +1890,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_get( &self, @@ -1920,7 +1920,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_put( &self, @@ -1952,7 +1952,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_scopes_with_id_delete( &self, @@ -1981,7 +1981,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_get( &self, @@ -2009,7 +2009,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_post( &self, @@ -2040,7 +2040,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_get( &self, @@ -2070,7 +2070,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_put( &self, @@ -2102,7 +2102,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-client-scopes")] pub async fn realm_client_templates_with_id_delete( &self, @@ -2139,7 +2139,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] #[allow(clippy::too_many_arguments)] pub async fn realm_clients_get( @@ -2189,7 +2189,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_post( &self, @@ -2217,7 +2217,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_get( &self, @@ -2244,7 +2244,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_put( &self, @@ -2273,7 +2273,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_delete( &self, @@ -2300,7 +2300,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/client-secret` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_get( &self, @@ -2329,7 +2329,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/client-secret` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_post( &self, @@ -2358,7 +2358,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/client-secret/rotated` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_rotated_get( &self, @@ -2387,7 +2387,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/client-secret/rotated` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_client_secret_rotated_delete( &self, @@ -2417,7 +2417,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/default-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_default_client_scopes_get( &self, @@ -2445,7 +2445,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2478,7 +2478,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -2513,7 +2513,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_access_token_get( &self, @@ -2552,7 +2552,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-id-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_id_token_get( &self, @@ -2591,7 +2591,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_generate_example_userinfo_get( &self, @@ -2629,14 +2629,14 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/protocol-mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_evaluate_scopes_protocol_mappers_get( &self, realm: &str, id: &str, scope: Option, - ) -> Result, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!( @@ -2664,7 +2664,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{role_container_id}/granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted` #[cfg(feature = "tag-clients")] @@ -2702,7 +2702,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{role_container_id}/not-granted` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted` #[cfg(feature = "tag-clients")] @@ -2737,7 +2737,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/installation/providers/{provider_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/installation/providers/{providerId}` #[cfg(feature = "tag-clients")] @@ -2770,7 +2770,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_management_permissions_get( &self, @@ -2800,7 +2800,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_management_permissions_put( &self, @@ -2832,7 +2832,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/nodes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_nodes_post( &self, @@ -2865,7 +2865,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/nodes/{node}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_nodes_with_node_delete( &self, @@ -2896,7 +2896,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/offline-session-count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_offline_session_count_get( &self, @@ -2927,7 +2927,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/offline-sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_offline_sessions_get( &self, @@ -2935,7 +2935,7 @@ impl KeycloakAdmin { id: &str, first: Option, max: Option, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!( @@ -2964,7 +2964,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/optional-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_optional_client_scopes_get( &self, @@ -2992,7 +2992,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3025,7 +3025,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-clients")] @@ -3058,7 +3058,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/push-revocation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_push_revocation_post( &self, @@ -3087,7 +3087,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/registration-access-token` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_registration_access_token_post( &self, @@ -3116,7 +3116,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/service-account-user` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_service_account_user_get( &self, @@ -3145,7 +3145,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/session-count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_session_count_get( &self, @@ -3174,7 +3174,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/test-nodes-available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_test_nodes_available_get( &self, @@ -3205,7 +3205,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/user-sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-clients")] pub async fn realm_clients_with_id_user_sessions_get( &self, @@ -3213,7 +3213,7 @@ impl KeycloakAdmin { id: &str, first: Option, max: Option, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!( @@ -3244,7 +3244,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_get( &self, @@ -3279,7 +3279,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/components` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_post( &self, @@ -3305,7 +3305,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_get( &self, @@ -3333,7 +3333,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_put( &self, @@ -3363,7 +3363,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/components/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_delete( &self, @@ -3394,14 +3394,14 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/components/{id}/sub-component-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-component")] pub async fn realm_components_with_id_sub_component_types_get( &self, realm: &str, id: &str, type_: Option, - ) -> Result, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!( @@ -3435,7 +3435,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] #[allow(clippy::too_many_arguments)] pub async fn realm_groups_get( @@ -3489,7 +3489,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_post( &self, @@ -3518,7 +3518,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_count_get( &self, @@ -3549,7 +3549,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_get( &self, @@ -3576,7 +3576,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_put( &self, @@ -3603,7 +3603,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_delete( &self, @@ -3619,6 +3619,50 @@ impl KeycloakAdmin { Ok(()) } + /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL + /// + /// Parameters: + /// + /// - `realm`: realm name (not id!) + /// - `id` + /// - `brief_representation` + /// - `first` + /// - `max` + /// + /// Resource: `Groups` + /// + /// `GET /admin/realms/{realm}/groups/{id}/children` + /// + /// Documentation: + #[cfg(feature = "tag-groups")] + pub async fn realm_groups_with_id_children_get( + &self, + realm: &str, + id: &str, + brief_representation: Option, + first: Option, + max: Option, + ) -> Result, KeycloakError> { + let mut builder = self + .client + .get(&format!( + "{}/admin/realms/{realm}/groups/{id}/children", + self.url + )) + .bearer_auth(self.token_supplier.get(&self.url).await?); + if let Some(v) = brief_representation { + builder = builder.query(&[("briefRepresentation", v)]); + } + if let Some(v) = first { + builder = builder.query(&[("first", v)]); + } + if let Some(v) = max { + builder = builder.query(&[("max", v)]); + } + let response = builder.send().await?; + Ok(error_check(response).await?.json().await?) + } + /// Set or create child. /// /// Parameters: @@ -3631,7 +3675,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/children` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_children_post( &self, @@ -3663,7 +3707,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_management_permissions_get( &self, @@ -3693,7 +3737,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/groups/{id}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_management_permissions_put( &self, @@ -3727,7 +3771,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/members` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-groups")] pub async fn realm_groups_with_id_members_get( &self, @@ -3770,7 +3814,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/import-config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_import_config_post( &self, @@ -3789,29 +3833,49 @@ impl KeycloakAdmin { Ok(error_check(response).await?.json().await?) } - /// Get identity providers + /// List identity providers /// /// Parameters: /// /// - `realm`: realm name (not id!) + /// - `brief_representation`: Boolean which defines whether brief representations are returned (default: false) + /// - `first`: Pagination offset + /// - `max`: Maximum results size (defaults to 100) + /// - `search`: Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact ("name"). Default prefixed. /// /// Resource: `Identity Providers` /// /// `GET /admin/realms/{realm}/identity-provider/instances` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_get( &self, realm: &str, + brief_representation: Option, + first: Option, + max: Option, + search: Option, ) -> Result, KeycloakError> { - let builder = self + let mut builder = self .client .get(&format!( "{}/admin/realms/{realm}/identity-provider/instances", self.url )) .bearer_auth(self.token_supplier.get(&self.url).await?); + if let Some(v) = brief_representation { + builder = builder.query(&[("briefRepresentation", v)]); + } + if let Some(v) = first { + builder = builder.query(&[("first", v)]); + } + if let Some(v) = max { + builder = builder.query(&[("max", v)]); + } + if let Some(v) = search { + builder = builder.query(&[("search", v)]); + } let response = builder.send().await?; Ok(error_check(response).await?.json().await?) } @@ -3827,7 +3891,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/instances` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_post( &self, @@ -3858,7 +3922,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_get( &self, @@ -3888,7 +3952,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_put( &self, @@ -3920,7 +3984,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/identity-provider/instances/{alias}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_delete( &self, @@ -3951,7 +4015,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/export` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_export_get( &self, @@ -3985,7 +4049,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_management_permissions_get( &self, @@ -4015,7 +4079,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_management_permissions_put( &self, @@ -4046,7 +4110,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mapper_types_get( &self, @@ -4075,7 +4139,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_get( &self, @@ -4105,7 +4169,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/identity-provider/instances/{alias}/mappers` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_post( &self, @@ -4138,7 +4202,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_get( &self, @@ -4170,7 +4234,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_put( &self, @@ -4204,7 +4268,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_instances_with_alias_mappers_with_id_delete( &self, @@ -4224,24 +4288,24 @@ impl KeycloakAdmin { Ok(()) } - /// Get identity providers + /// Get the identity provider factory for that provider id /// /// Parameters: /// /// - `realm`: realm name (not id!) - /// - `provider_id`: Provider id + /// - `provider_id`: The provider id to get the factory /// /// Resource: `Identity Providers` /// /// `GET /admin/realms/{realm}/identity-provider/providers/{provider_id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-identity-providers")] pub async fn realm_identity_provider_providers_with_provider_id_get( &self, realm: &str, provider_id: &str, - ) -> Result<(), KeycloakError> { + ) -> Result { let builder = self .client .get(&format!( @@ -4250,8 +4314,7 @@ impl KeycloakAdmin { )) .bearer_auth(self.token_supplier.get(&self.url).await?); let response = builder.send().await?; - error_check(response).await?; - Ok(()) + Ok(error_check(response).await?.json().await?) } //

    Key

    @@ -4264,7 +4327,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/keys` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-key")] pub async fn realm_keys_get( &self, @@ -4292,7 +4355,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_add_models_post( &self, @@ -4324,7 +4387,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_get( &self, @@ -4354,7 +4417,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_post( &self, @@ -4386,7 +4449,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_get( &self, @@ -4416,7 +4479,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_put( &self, @@ -4448,7 +4511,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4479,7 +4542,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_scopes_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4510,7 +4573,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_add_models_post( &self, @@ -4542,7 +4605,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_get( &self, @@ -4572,7 +4635,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_post( &self, @@ -4604,7 +4667,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_get( &self, @@ -4634,7 +4697,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_put( &self, @@ -4666,7 +4729,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4697,7 +4760,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_client_templates_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4728,7 +4791,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/protocol-mappers/add-models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_add_models_post( &self, @@ -4760,7 +4823,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_get( &self, @@ -4790,7 +4853,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/protocol-mappers/models` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_post( &self, @@ -4822,7 +4885,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_get( &self, @@ -4852,7 +4915,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_put( &self, @@ -4884,7 +4947,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/protocol-mappers/models/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_models_with_id_delete( &self, @@ -4915,7 +4978,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-protocol-mappers")] pub async fn realm_clients_with_id_protocol_mappers_protocol_with_protocol_get( &self, @@ -4946,7 +5009,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn get( &self, @@ -4973,7 +5036,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn post(&self, body: RealmRepresentation) -> Result<(), KeycloakError> { let builder = self @@ -4996,7 +5059,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_get(&self, realm: &str) -> Result { let builder = self @@ -5018,7 +5081,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_put( &self, @@ -5045,7 +5108,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_delete(&self, realm: &str) -> Result<(), KeycloakError> { let builder = self @@ -5078,7 +5141,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/admin-events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[allow(clippy::too_many_arguments)] pub async fn realm_admin_events_get( @@ -5095,7 +5158,7 @@ impl KeycloakAdmin { operation_types: Option>, resource_path: Option, resource_types: Option>, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!("{}/admin/realms/{realm}/admin-events", self.url)) @@ -5147,7 +5210,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/admin-events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_admin_events_delete(&self, realm: &str) -> Result<(), KeycloakError> { let builder = self @@ -5170,7 +5233,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-description-converter` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_description_converter_post( &self, @@ -5197,7 +5260,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-policies/policies` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_policies_get( &self, @@ -5223,7 +5286,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-policies/policies` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_policies_put( &self, @@ -5252,7 +5315,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-policies/profiles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_profiles_get( &self, @@ -5282,7 +5345,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/client-policies/profiles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_policies_profiles_put( &self, @@ -5312,12 +5375,12 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-session-stats` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_client_session_stats_get( &self, realm: &str, - ) -> Result>, KeycloakError> { + ) -> Result>, KeycloakError> { let builder = self .client .get(&format!( @@ -5337,7 +5400,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/credential-registrators` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_credential_registrators_get( &self, @@ -5364,7 +5427,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-default-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_default_client_scopes_get( &self, @@ -5390,7 +5453,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -5421,7 +5484,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-default-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-default-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -5452,7 +5515,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_groups_get( &self, @@ -5475,7 +5538,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-groups/{groupId}` #[cfg(feature = "tag-realms-admin")] @@ -5506,7 +5569,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-groups/{groupId}` #[cfg(feature = "tag-realms-admin")] @@ -5537,7 +5600,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/default-optional-client-scopes` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_default_optional_client_scopes_get( &self, @@ -5563,7 +5626,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/default-optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -5594,7 +5657,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/default-optional-client-scopes/{client_scope_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}` #[cfg(feature = "tag-realms-admin")] @@ -5633,7 +5696,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[allow(clippy::too_many_arguments)] pub async fn realm_events_get( @@ -5647,7 +5710,7 @@ impl KeycloakAdmin { max: Option, type_: Option>, user: Option, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let mut builder = self .client .get(&format!("{}/admin/realms/{realm}/events", self.url)) @@ -5690,7 +5753,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/events` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_delete(&self, realm: &str) -> Result<(), KeycloakError> { let builder = self @@ -5712,7 +5775,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_get( &self, @@ -5735,7 +5798,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/events/config` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_events_config_put( &self, @@ -5761,7 +5824,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/group-by-path/{path}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_group_by_path_with_path_get( &self, @@ -5787,7 +5850,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_get( &self, @@ -5811,7 +5874,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_get( &self, @@ -5845,7 +5908,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_post( &self, @@ -5875,7 +5938,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/localization/{locale}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_delete( &self, @@ -5904,7 +5967,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_get( &self, @@ -5934,7 +5997,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_put( &self, @@ -5966,7 +6029,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/localization/{locale}/{key}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_localization_with_locale_with_key_delete( &self, @@ -5996,7 +6059,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/logout-all` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_logout_all_post( &self, @@ -6022,7 +6085,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partial-export` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_export_post( &self, @@ -6056,7 +6119,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/partialImport` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_partial_import_post( &self, @@ -6083,7 +6146,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/push-revocation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_push_revocation_post( &self, @@ -6111,7 +6174,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/sessions/{session}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_sessions_with_session_delete( &self, @@ -6141,7 +6204,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/testSMTPConnection` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] #[deprecated] pub async fn realm_test_smtp_connection_post( @@ -6170,7 +6233,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users-management-permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_users_management_permissions_get( &self, @@ -6196,7 +6259,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users-management-permissions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-realms-admin")] pub async fn realm_users_management_permissions_put( &self, @@ -6228,7 +6291,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_get( &self, @@ -6257,7 +6320,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_get( &self, @@ -6287,7 +6350,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_post( &self, @@ -6320,7 +6383,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/groups/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_delete( &self, @@ -6352,7 +6415,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_available_get( &self, @@ -6382,7 +6445,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/groups/{id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_groups_with_id_role_mappings_realm_composite_get( &self, @@ -6415,7 +6478,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_get( &self, @@ -6444,7 +6507,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_get( &self, @@ -6474,7 +6537,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_post( &self, @@ -6507,7 +6570,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/role-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_delete( &self, @@ -6539,7 +6602,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_available_get( &self, @@ -6569,7 +6632,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/role-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-role-mapper")] pub async fn realm_users_with_id_role_mappings_realm_composite_get( &self, @@ -6608,7 +6671,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_clients_with_id_roles_get( &self, @@ -6654,7 +6717,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_clients_with_id_roles_post( &self, @@ -6687,7 +6750,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6721,7 +6784,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6757,7 +6820,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -6791,7 +6854,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6825,7 +6888,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6862,7 +6925,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -6899,7 +6962,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}` #[cfg(feature = "tag-roles")] @@ -6933,7 +6996,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/composites/realm` #[cfg(feature = "tag-roles")] @@ -6969,7 +7032,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/groups` #[cfg(feature = "tag-roles")] @@ -7014,7 +7077,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7048,7 +7111,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/clients/{id}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/clients/{id}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7085,7 +7148,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/roles/{role_name}/users` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/clients/{id}/roles/{role-name}/users` #[cfg(feature = "tag-roles")] @@ -7128,7 +7191,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_get( &self, @@ -7169,7 +7232,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-roles")] pub async fn realm_roles_post( &self, @@ -7197,7 +7260,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7229,7 +7292,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7263,7 +7326,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles/{role_name}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles/{role-name}` #[cfg(feature = "tag-roles")] @@ -7295,7 +7358,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7327,7 +7390,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7362,7 +7425,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles/{role_name}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles/{role-name}/composites` #[cfg(feature = "tag-roles")] @@ -7397,7 +7460,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites/clients/{clientUuid}` #[cfg(feature = "tag-roles")] @@ -7429,7 +7492,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/composites/realm` #[cfg(feature = "tag-roles")] @@ -7463,7 +7526,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/groups` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/groups` #[cfg(feature = "tag-roles")] @@ -7506,7 +7569,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7538,7 +7601,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles/{role_name}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles/{role-name}/management/permissions` #[cfg(feature = "tag-roles")] @@ -7573,7 +7636,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles/{role_name}/users` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles/{role-name}/users` #[cfg(feature = "tag-roles")] @@ -7614,7 +7677,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -7646,7 +7709,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -7680,7 +7743,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles-by-id/{role_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles-by-id/{role-id}` #[cfg(feature = "tag-roles-by-id")] @@ -7715,7 +7778,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -7759,7 +7822,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -7794,7 +7857,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/roles-by-id/{role_id}/composites` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/roles-by-id/{role-id}/composites` #[cfg(feature = "tag-roles-by-id")] @@ -7829,7 +7892,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites/clients/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}` #[cfg(feature = "tag-roles-by-id")] @@ -7861,7 +7924,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/composites/realm` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/composites/realm` #[cfg(feature = "tag-roles-by-id")] @@ -7892,7 +7955,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/roles-by-id/{role_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions` #[cfg(feature = "tag-roles-by-id")] @@ -7924,7 +7987,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/roles-by-id/{role_id}/management/permissions` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/roles-by-id/{role-id}/management/permissions` #[cfg(feature = "tag-roles-by-id")] @@ -7959,7 +8022,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_client_scopes_with_id_scope_mappings_get( @@ -7990,7 +8053,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_get( &self, @@ -8022,7 +8085,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_post( &self, @@ -8057,7 +8120,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8091,7 +8154,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8123,7 +8186,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8157,7 +8220,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_get( &self, @@ -8187,7 +8250,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_post( &self, @@ -8220,7 +8283,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_delete( &self, @@ -8252,7 +8315,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_available_get( &self, @@ -8282,7 +8345,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-scopes/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_scopes_with_id_scope_mappings_realm_composite_get( &self, @@ -8315,7 +8378,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_client_templates_with_id_scope_mappings_get( @@ -8346,7 +8409,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_get( &self, @@ -8378,7 +8441,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_post( &self, @@ -8413,7 +8476,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8447,7 +8510,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8479,7 +8542,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8513,7 +8576,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_get( &self, @@ -8543,7 +8606,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_post( &self, @@ -8576,7 +8639,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_delete( &self, @@ -8608,7 +8671,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_available_get( &self, @@ -8638,7 +8701,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/client-templates/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_client_templates_with_id_scope_mappings_realm_composite_get( &self, @@ -8671,7 +8734,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] #[deprecated] pub async fn realm_clients_with_id_scope_mappings_get( @@ -8702,7 +8765,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_get( &self, @@ -8734,7 +8797,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_post( &self, @@ -8769,7 +8832,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_delete( &self, @@ -8803,7 +8866,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_available_get( &self, @@ -8835,7 +8898,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/clients/{client}/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_clients_with_client_composite_get( &self, @@ -8869,7 +8932,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_get( &self, @@ -8899,7 +8962,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_post( &self, @@ -8932,7 +8995,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/realm` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_delete( &self, @@ -8964,7 +9027,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/available` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_available_get( &self, @@ -8994,7 +9057,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm/composite` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-scope-mappings")] pub async fn realm_clients_with_id_scope_mappings_realm_composite_get( &self, @@ -9042,7 +9105,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[allow(clippy::too_many_arguments)] pub async fn realm_users_get( @@ -9124,7 +9187,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_post( &self, @@ -9159,7 +9222,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[allow(clippy::too_many_arguments)] pub async fn realm_users_count_get( @@ -9214,9 +9277,9 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/profile` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] - pub async fn realm_users_profile_get(&self, realm: &str) -> Result { + pub async fn realm_users_profile_get(&self, realm: &str) -> Result { let builder = self .client .get(&format!("{}/admin/realms/{realm}/users/profile", self.url)) @@ -9234,21 +9297,20 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/profile` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_put( &self, realm: &str, - body: String, - ) -> Result<(), KeycloakError> { + body: UPConfig, + ) -> Result { let builder = self .client .put(&format!("{}/admin/realms/{realm}/users/profile", self.url)) .json(&body) .bearer_auth(self.token_supplier.get(&self.url).await?); let response = builder.send().await?; - error_check(response).await?; - Ok(()) + Ok(error_check(response).await?.json().await?) } /// Parameters: @@ -9259,7 +9321,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/profile/metadata` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_profile_metadata_get( &self, @@ -9288,7 +9350,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_get( &self, @@ -9319,7 +9381,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_put( &self, @@ -9348,7 +9410,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_delete( &self, @@ -9375,13 +9437,13 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/configured-user-storage-credential-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_configured_user_storage_credential_types_get( &self, realm: &str, id: &str, - ) -> Result, KeycloakError> { + ) -> Result, KeycloakError> { let builder = self .client .get(&format!( @@ -9404,7 +9466,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/consents` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_consents_get( &self, @@ -9434,7 +9496,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/consents/{client}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_consents_with_client_delete( &self, @@ -9463,7 +9525,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/credentials` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_credentials_get( &self, @@ -9493,7 +9555,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/credentials/{credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{id}/credentials/{credentialId}` #[cfg(feature = "tag-users")] @@ -9528,7 +9590,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/credentials/{credential_id}/moveAfter/{new_previous_credential_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}` #[cfg(feature = "tag-users")] @@ -9563,7 +9625,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/credentials/{credential_id}/moveToFirst` /// - /// Documentation: + /// Documentation: /// /// REST method: `POST /admin/realms/{realm}/users/{id}/credentials/{credentialId}/moveToFirst` #[cfg(feature = "tag-users")] @@ -9598,7 +9660,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/credentials/{credential_id}/userLabel` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{id}/credentials/{credentialId}/userLabel` #[cfg(feature = "tag-users")] @@ -9634,7 +9696,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/disable-credential-types` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_disable_credential_types_put( &self, @@ -9670,7 +9732,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/execute-actions-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_execute_actions_email_put( &self, @@ -9714,7 +9776,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/federated-identity` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_get( &self, @@ -9744,7 +9806,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_with_provider_post( &self, @@ -9776,7 +9838,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/federated-identity/{provider}` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_federated_identity_with_provider_delete( &self, @@ -9809,7 +9871,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/groups` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_groups_get( &self, @@ -9853,7 +9915,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/groups/count` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_groups_count_get( &self, @@ -9885,7 +9947,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `PUT /admin/realms/{realm}/users/{id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -9918,7 +9980,7 @@ impl KeycloakAdmin { /// /// `DELETE /admin/realms/{realm}/users/{id}/groups/{group_id}` /// - /// Documentation: + /// Documentation: /// /// REST method: `DELETE /admin/realms/{realm}/users/{id}/groups/{groupId}` #[cfg(feature = "tag-users")] @@ -9951,7 +10013,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/impersonation` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_impersonation_post( &self, @@ -9980,7 +10042,7 @@ impl KeycloakAdmin { /// /// `POST /admin/realms/{realm}/users/{id}/logout` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_logout_post( &self, @@ -10011,7 +10073,7 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/offline-sessions/{client_uuid}` /// - /// Documentation: + /// Documentation: /// /// REST method: `GET /admin/realms/{realm}/users/{id}/offline-sessions/{clientUuid}` #[cfg(feature = "tag-users")] @@ -10020,7 +10082,7 @@ impl KeycloakAdmin { realm: &str, id: &str, client_uuid: &str, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let builder = self .client .get(&format!( @@ -10044,7 +10106,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/reset-password` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_reset_password_put( &self, @@ -10078,7 +10140,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/reset-password-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] #[deprecated] pub async fn realm_users_with_id_reset_password_email_put( @@ -10120,7 +10182,7 @@ impl KeycloakAdmin { /// /// `PUT /admin/realms/{realm}/users/{id}/send-verify-email` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_send_verify_email_put( &self, @@ -10159,13 +10221,13 @@ impl KeycloakAdmin { /// /// `GET /admin/realms/{realm}/users/{id}/sessions` /// - /// Documentation: + /// Documentation: #[cfg(feature = "tag-users")] pub async fn realm_users_with_id_sessions_get( &self, realm: &str, id: &str, - ) -> Result>, KeycloakError> { + ) -> Result, KeycloakError> { let builder = self .client .get(&format!( diff --git a/src/types.rs b/src/types.rs index 11f1ebf..1001ba3 100644 --- a/src/types.rs +++ b/src/types.rs @@ -52,7 +52,7 @@ pub struct AccessToken { pub birthdate: Option, pub c_hash: Option, pub claims_locales: Option, - pub cnf: Option, + pub cnf: Option, pub email: Option, pub email_verified: Option, pub exp: Option, @@ -102,6 +102,21 @@ pub struct AddressClaimSet { pub street_address: Option, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct AdminEventRepresentation { + pub auth_details: Option, + pub error: Option, + pub operation_type: Option, + pub realm_id: Option, + pub representation: Option, + pub resource_path: Option, + pub resource_type: Option, + pub time: Option, +} + #[deprecated] #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] @@ -162,6 +177,17 @@ pub struct ApplicationRepresentation { pub web_origins: Option>, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct AuthDetailsRepresentation { + pub client_id: Option, + pub ip_address: Option, + pub realm_id: Option, + pub user_id: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -256,14 +282,6 @@ pub struct Authorization { pub permissions: Option>, } -#[skip_serializing_none] -#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] -#[cfg_attr(feature = "schemars", derive(JsonSchema))] -pub struct CertConf { - #[serde(rename = "x5t#S256")] - pub x5t_s256: Option, -} - #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -493,6 +511,17 @@ pub struct ComponentRepresentation { pub sub_type: Option, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct ComponentTypeRepresentation { + pub help_text: Option, + pub id: Option, + pub metadata: Option>, + pub properties: Option>, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -514,11 +543,21 @@ pub struct ConfigPropertyRepresentation { pub name: Option, pub options: Option>, pub read_only: Option, + pub required: Option, pub secret: Option, #[serde(rename = "type")] pub type_: Option, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +pub struct Confirmation { + pub jkt: Option, + #[serde(rename = "x5t#S256")] + pub x5t_s256: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -572,6 +611,23 @@ pub enum EnforcementMode { Disabled, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct EventRepresentation { + pub client_id: Option, + pub details: Option>, + pub error: Option, + pub ip_address: Option, + pub realm_id: Option, + pub session_id: Option, + pub time: Option, + #[serde(rename = "type")] + pub type_: Option, + pub user_id: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -601,8 +657,10 @@ pub struct GroupRepresentation { pub client_roles: Option>>, pub id: Option, pub name: Option, + pub parent_id: Option, pub path: Option, pub realm_roles: Option>, + pub sub_group_count: Option, pub sub_groups: Option>, } @@ -744,6 +802,7 @@ pub struct KeyMetadataRepresentation { pub type_: Option, #[serde(rename = "use")] pub use_: Option, + pub valid_to: Option, } #[skip_serializing_none] @@ -817,8 +876,6 @@ pub type MultivaluedHashMapStringComponentExportRepresentation = pub type MultivaluedHashMapStringString = TypeMap>; -pub type MultivaluedMapStringString = TypeMap>; - #[deprecated] #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] @@ -976,6 +1033,19 @@ pub struct PolicyRepresentation { pub type_: Option, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct ProtocolMapperEvaluationRepresentation { + pub container_id: Option, + pub container_name: Option, + pub container_type: Option, + pub mapper_id: Option, + pub mapper_name: Option, + pub protocol_mapper: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -1050,8 +1120,8 @@ pub struct RealmRepresentation { pub client_authentication_flow: Option, pub client_offline_session_idle_timeout: Option, pub client_offline_session_max_lifespan: Option, - pub client_policies: Option>, - pub client_profiles: Option>, + pub client_policies: Option, + pub client_profiles: Option, pub client_scope_mappings: Option>>, pub client_scopes: Option>, pub client_session_idle_timeout: Option, @@ -1090,6 +1160,7 @@ pub struct RealmRepresentation { pub identity_providers: Option>, pub internationalization_enabled: Option, pub keycloak_version: Option, + pub localization_texts: Option>>, pub login_theme: Option, pub login_with_email_allowed: Option, pub max_delta_time_seconds: Option, @@ -1165,11 +1236,13 @@ pub struct RealmRepresentation { pub web_authn_policy_authenticator_attachment: Option, pub web_authn_policy_avoid_same_authenticator_register: Option, pub web_authn_policy_create_timeout: Option, + pub web_authn_policy_extra_origins: Option>, pub web_authn_policy_passwordless_acceptable_aaguids: Option>, pub web_authn_policy_passwordless_attestation_conveyance_preference: Option, pub web_authn_policy_passwordless_authenticator_attachment: Option, pub web_authn_policy_passwordless_avoid_same_authenticator_register: Option, pub web_authn_policy_passwordless_create_timeout: Option, + pub web_authn_policy_passwordless_extra_origins: Option>, pub web_authn_policy_passwordless_require_resident_key: Option, pub web_authn_policy_passwordless_rp_entity_name: Option, pub web_authn_policy_passwordless_rp_id: Option, @@ -1316,6 +1389,63 @@ pub struct SocialLinkRepresentation { pub social_username: Option, } +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct UPAttribute { + pub annotations: Option>, + pub display_name: Option, + pub group: Option, + pub name: Option, + pub permissions: Option, + pub required: Option, + pub selector: Option, + pub validations: Option>>, +} + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +pub struct UPAttributePermissions { + pub edit: Option>, + pub view: Option>, +} + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +pub struct UPAttributeRequired { + pub roles: Option>, + pub scopes: Option>, +} + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +pub struct UPAttributeSelector { + pub scopes: Option>, +} + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +pub struct UPConfig { + pub attributes: Option>, + pub groups: Option>, +} + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct UPGroup { + pub annotations: Option>, + pub display_description: Option, + pub display_header: Option, + pub name: Option, +} + #[skip_serializing_none] #[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] #[cfg_attr(feature = "schemars", derive(JsonSchema))] @@ -1427,3 +1557,18 @@ pub struct UserRepresentation { pub user_profile_metadata: Option, pub username: Option, } + +#[skip_serializing_none] +#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)] +#[cfg_attr(feature = "schemars", derive(JsonSchema))] +#[serde(rename_all = "camelCase")] +pub struct UserSessionRepresentation { + pub clients: Option>, + pub id: Option, + pub ip_address: Option, + pub last_access: Option, + pub remember_me: Option, + pub start: Option, + pub user_id: Option, + pub username: Option, +}