diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 84eee6e9e8..0da3db9a55 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -39960,45 +39960,6 @@ "summary": "Get user privileges", "description": "Get the security privileges for the logged in user.\nAll users can use this API, but only to determine their own privileges.\nTo check the privileges of other users, you must use the run as feature.\nTo check whether a user has a specific list of privileges, use the has privileges API.", "operationId": "security-get-user-privileges", - "parameters": [ - { - "in": "query", - "name": "application", - "description": "The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.Name" - }, - "style": "form" - }, - { - "in": "query", - "name": "priviledge", - "description": "The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types.Name" - }, - "style": "form" - }, - { - "in": "query", - "name": "username", - "deprecated": false, - "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/_types.Name" - }, - { - "nullable": true, - "type": "string" - } - ] - }, - "style": "form" - } - ], "responses": { "200": { "description": "", diff --git a/output/schema/schema.json b/output/schema/schema.json index f44fe73fa2..2156f5e580 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -233320,56 +233320,8 @@ "namespace": "security.get_user_privileges" }, "path": [], - "query": [ - { - "description": "The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.", - "name": "application", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - }, - { - "description": "The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.", - "name": "priviledge", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - }, - { - "name": "username", - "required": false, - "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ] - } - } - ], - "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L23-L49" + "query": [], + "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L22-L41" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 3b06cf4cd8..f3e6a46144 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -291,14 +291,6 @@ ], "response": [] }, - "security.get_user_privileges": { - "request": [ - "Request: query parameter 'application' does not exist in the json spec", - "Request: query parameter 'priviledge' does not exist in the json spec", - "Request: query parameter 'username' does not exist in the json spec" - ], - "response": [] - }, "security.grant_api_key": { "request": [ "Request: missing json spec query parameter 'refresh'" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b5f648aa8b..e68cb451e6 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20031,9 +20031,6 @@ export interface SecurityGetUserRequest extends RequestBase { export type SecurityGetUserResponse = Record export interface SecurityGetUserPrivilegesRequest extends RequestBase { - application?: Name - priviledge?: Name - username?: Name | null } export interface SecurityGetUserPrivilegesResponse { diff --git a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts index cfc693fa57..6d92d4ce9a 100644 --- a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts +++ b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts @@ -18,7 +18,6 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' /** * Get user privileges. @@ -39,11 +38,4 @@ export interface Request extends RequestBase { methods: ['GET'] } ] - query_parameters: { - /** The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. */ - application?: Name - /** The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. */ - priviledge?: Name - username?: Name | null - } }