From 7610041fcc9811a9ba6442d3624c75daa28fef31 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 14 Oct 2024 14:30:59 +0000 Subject: [PATCH] Update specification output --- output/openapi/elasticsearch-openapi.json | 23 ++++++++-- .../elasticsearch-serverless-openapi.json | 11 ++++- output/schema/schema-serverless.json | 22 ++++++---- output/schema/schema.json | 44 ++++++++++++------- output/typescript/types.ts | 8 ++-- 5 files changed, 74 insertions(+), 34 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index be19a2e845..bee5655f05 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -28621,7 +28621,10 @@ } }, "index": { - "$ref": "#/components/schemas/_types:Indices" + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } } }, "required": [ @@ -81311,7 +81314,11 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82034,7 +82041,11 @@ } }, "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82255,7 +82266,11 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index b5c12f8214..bdb09c9c73 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -17015,7 +17015,10 @@ } }, "index": { - "$ref": "#/components/schemas/_types:Indices" + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } } }, "required": [ @@ -53396,7 +53399,11 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 10c2ee00b3..fcd9c64185 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -39035,10 +39035,13 @@ "name": "index", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } } @@ -138530,10 +138533,13 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 9958cefae0..ed575b7c08 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -186299,10 +186299,13 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } }, @@ -186486,10 +186489,13 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } }, @@ -187321,10 +187327,13 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } }, @@ -190221,10 +190230,13 @@ "name": "index", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } } } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 3b070f349f..e382e3f512 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17572,7 +17572,7 @@ export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'crea export interface SecurityIndicesPrivileges { field_security?: SecurityFieldSecurity - names: Indices + names: IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean @@ -17592,7 +17592,7 @@ export interface SecurityRealmInfo { export interface SecurityRemoteIndicesPrivileges { clusters: Names field_security?: SecurityFieldSecurity - names: Indices + names: IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean @@ -17670,7 +17670,7 @@ export interface SecurityUser { export interface SecurityUserIndicesPrivileges { field_security?: SecurityFieldSecurity[] - names: Indices + names: IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery[] allow_restricted_indices: boolean @@ -17990,7 +17990,7 @@ export interface SecurityGetBuiltinPrivilegesRequest extends RequestBase { export interface SecurityGetBuiltinPrivilegesResponse { cluster: string[] - index: Indices + index: IndexName[] } export interface SecurityGetPrivilegesRequest extends RequestBase {