From 17ac39c7f9266bc303baa029f90194aecb1c3b7c Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Fri, 22 Dec 2023 15:42:59 +0000 Subject: [PATCH] Update specification output --- .../elasticsearch-serverless-openapi.json | 10 +++++++++ output/schema/schema.json | 22 ++++++++++++++++++- output/schema/validation-errors.json | 6 +++++ output/typescript/types.ts | 1 + 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index cb216e8cd2..9d1f3e3f58 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -15605,6 +15605,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "active_only", + "description": "A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "responses": { diff --git a/output/schema/schema.json b/output/schema/schema.json index af1ae3d844..4795dd0e76 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -174799,9 +174799,29 @@ "namespace": "_builtins" } } + }, + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.10.0" + } + }, + "description": "A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys.", + "name": "active_only", + "required": false, + "serverDefault": false, + "since": "8.10.0", + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L72" + "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L79" }, { "body": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index c894b6ea49..06f921e197 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1258,6 +1258,12 @@ "response definition security.enable_user_profile:Response / body / instance_of - Non-leaf type cannot be used here: '_types:AcknowledgedResponseBase'" ] }, + "security.get_api_key": { + "request": [ + "Request: query parameter 'active_only' does not exist in the json spec" + ], + "response": [] + }, "security.get_settings": { "request": [ "Missing request & response" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 4bc6d799f3..80680827fb 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16469,6 +16469,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase { realm_name?: Name username?: Username with_limited_by?: boolean + active_only?: boolean } export interface SecurityGetApiKeyResponse {