From ceed55013e59d6a02bb9247f7a74dc9ab2c10b5b Mon Sep 17 00:00:00 2001 From: Ankit Sethi Date: Mon, 8 Sep 2025 11:08:12 -0500 Subject: [PATCH 1/2] add internal and managed_by --- .../security/authenticate/SecurityAuthenticateResponse.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/security/authenticate/SecurityAuthenticateResponse.ts b/specification/security/authenticate/SecurityAuthenticateResponse.ts index fc5dbcb306..586c92fe36 100644 --- a/specification/security/authenticate/SecurityAuthenticateResponse.ts +++ b/specification/security/authenticate/SecurityAuthenticateResponse.ts @@ -38,10 +38,18 @@ export class Response { * @availability serverless */ token?: Token + } } export class AuthenticateApiKey { id: Id name?: Name + managed_by: ManagedBy + internal: boolean +} + +export enum ManagedBy { + cloud, + elasticsearch } From eebabc8273df0f2f2bab281b69bb83f86fbcc5c1 Mon Sep 17 00:00:00 2001 From: Ankit Sethi Date: Mon, 8 Sep 2025 11:17:41 -0500 Subject: [PATCH 2/2] add internal and managed_by --- output/openapi/elasticsearch-openapi.json | 21 +++++++++- .../elasticsearch-serverless-openapi.json | 21 +++++++++- output/schema/schema.json | 40 ++++++++++++++++++- output/typescript/types.ts | 4 ++ .../SecurityAuthenticateResponse.ts | 5 +-- 5 files changed, 85 insertions(+), 6 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 9a323d8456..48b4c59980 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -120145,10 +120145,29 @@ "$ref": "#/components/schemas/_types.Name" } ] + }, + "managed_by": { + "allOf": [ + { + "$ref": "#/components/schemas/security.authenticate.AuthenticateApiKeyManagedBy" + } + ] + }, + "internal": { + "type": "boolean" } }, "required": [ - "id" + "id", + "managed_by", + "internal" + ] + }, + "security.authenticate.AuthenticateApiKeyManagedBy": { + "type": "string", + "enum": [ + "cloud", + "elasticsearch" ] }, "security._types.RealmInfo": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 44450d2e00..b7b794b62a 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -78294,10 +78294,29 @@ "$ref": "#/components/schemas/_types.Name" } ] + }, + "managed_by": { + "allOf": [ + { + "$ref": "#/components/schemas/security.authenticate.AuthenticateApiKeyManagedBy" + } + ] + }, + "internal": { + "type": "boolean" } }, "required": [ - "id" + "id", + "managed_by", + "internal" + ] + }, + "security.authenticate.AuthenticateApiKeyManagedBy": { + "type": "string", + "enum": [ + "cloud", + "elasticsearch" ] }, "security._types.RealmInfo": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 86a3a245b1..647bc00e10 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -236677,9 +236677,47 @@ "namespace": "_types" } } + }, + { + "name": "managed_by", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "AuthenticateApiKeyManagedBy", + "namespace": "security.authenticate" + } + } + }, + { + "name": "internal", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "security/authenticate/SecurityAuthenticateResponse.ts#L44-L49" + }, + { + "kind": "enum", + "members": [ + { + "name": "cloud" + }, + { + "name": "elasticsearch" } ], - "specLocation": "security/authenticate/SecurityAuthenticateResponse.ts#L44-L47" + "name": { + "name": "AuthenticateApiKeyManagedBy", + "namespace": "security.authenticate" + }, + "specLocation": "security/authenticate/SecurityAuthenticateResponse.ts#L51-L54" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 1bea18a6f8..805d1b774d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20123,8 +20123,12 @@ export type SecurityActivateUserProfileResponse = SecurityUserProfileWithMetadat export interface SecurityAuthenticateAuthenticateApiKey { id: Id name?: Name + managed_by: SecurityAuthenticateAuthenticateApiKeyManagedBy + internal: boolean } +export type SecurityAuthenticateAuthenticateApiKeyManagedBy = 'cloud' | 'elasticsearch' + export interface SecurityAuthenticateRequest extends RequestBase { } diff --git a/specification/security/authenticate/SecurityAuthenticateResponse.ts b/specification/security/authenticate/SecurityAuthenticateResponse.ts index 586c92fe36..fd36f3a496 100644 --- a/specification/security/authenticate/SecurityAuthenticateResponse.ts +++ b/specification/security/authenticate/SecurityAuthenticateResponse.ts @@ -38,18 +38,17 @@ export class Response { * @availability serverless */ token?: Token - } } export class AuthenticateApiKey { id: Id name?: Name - managed_by: ManagedBy + managed_by: AuthenticateApiKeyManagedBy internal: boolean } -export enum ManagedBy { +export enum AuthenticateApiKeyManagedBy { cloud, elasticsearch }