diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 0198b5d5a3..7c15272fc6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -39831,45 +39831,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 32fb2f0e02..0e1c086f0c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -232705,56 +232705,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 8b23e32da6..aa17d04df8 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -53,14 +53,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 9415b6197f..0d6007a7c8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -19934,9 +19934,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 - } }