diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7151bf7f22..c9eb704607 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -40806,45 +40806,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 cfa7a41e74..a9e7a9fa6c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -236179,56 +236179,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 02b4e49584..573842594b 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -48,14 +48,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 c5149baafa..bf23402399 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20210,9 +20210,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 - } }