From e3a3b89689756d98594767534d5f3cac29f15856 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 14 Nov 2024 17:12:08 +0400 Subject: [PATCH 1/3] Allow index name patterns in Privileges index fields --- output/openapi/elasticsearch-openapi.json | 30 ++-------- .../elasticsearch-serverless-openapi.json | 6 +- output/schema/schema-serverless.json | 11 ++-- output/schema/schema.json | 55 +++++++------------ output/typescript/types.ts | 10 ++-- specification/security/_types/Privileges.ts | 12 ++-- 6 files changed, 41 insertions(+), 83 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 60c66ad20c..645757345f 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -81966,11 +81966,7 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82249,11 +82245,7 @@ "type": "object", "properties": { "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" } }, "required": [ @@ -82267,11 +82259,7 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" }, "query": { "$ref": "#/components/schemas/security._types:IndicesPrivilegesQuery" @@ -82746,11 +82734,7 @@ } }, "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82971,11 +82955,7 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" }, "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 a9cbf66396..0dcda1ec56 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53707,11 +53707,7 @@ "$ref": "#/components/schemas/security._types:FieldSecurity" }, "names": { - "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" - } + "$ref": "#/components/schemas/_types:Indices" }, "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 b4f72f1491..feb8d5cef3 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -139664,13 +139664,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 7395844be7..fa643ff96e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -187675,13 +187675,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } }, @@ -187865,13 +187862,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } }, @@ -187933,13 +187927,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } } @@ -188595,13 +188586,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } }, @@ -188795,13 +188783,10 @@ "name": "names", "required": true, "type": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } + "kind": "instance_of", + "type": { + "name": "Indices", + "namespace": "_types" } } }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 4e1be9944d..e74e2c3f5f 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17665,7 +17665,7 @@ export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'crea export interface SecurityIndicesPrivileges { field_security?: SecurityFieldSecurity - names: IndexName[] + names: Indices privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean @@ -17685,14 +17685,14 @@ export interface SecurityRealmInfo { export interface SecurityRemoteIndicesPrivileges { clusters: Names field_security?: SecurityFieldSecurity - names: IndexName[] + names: Indices privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean } export interface SecurityReplicationAccess { - names: IndexName[] + names: Indices } export interface SecurityRoleDescriptor { @@ -17755,7 +17755,7 @@ export interface SecurityRoleTemplateScript { export interface SecuritySearchAccess { field_security?: SecurityFieldSecurity - names: IndexName[] + names: Indices query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean } @@ -17774,7 +17774,7 @@ export interface SecurityUser { export interface SecurityUserIndicesPrivileges { field_security?: SecurityFieldSecurity[] - names: IndexName[] + names: Indices privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery[] allow_restricted_indices: boolean diff --git a/specification/security/_types/Privileges.ts b/specification/security/_types/Privileges.ts index 14f2977557..52189c6aee 100644 --- a/specification/security/_types/Privileges.ts +++ b/specification/security/_types/Privileges.ts @@ -19,7 +19,7 @@ import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' -import { Id, IndexName, Names } from '@_types/common' +import { Id, Indices, Names } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { ScriptLanguage } from '@_types/Scripting' import { FieldSecurity } from './FieldSecurity' @@ -204,7 +204,7 @@ export class IndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: IndexName[] + names: Indices /** * The index level privileges that owners of the role have on the specified indices. */ @@ -235,7 +235,7 @@ export class RemoteIndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: IndexName[] + names: Indices /** * The index level privileges that owners of the role have on the specified indices. */ @@ -261,7 +261,7 @@ export class UserIndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: IndexName[] + names: Indices /** * The index level privileges that owners of the role have on the specified indices. */ @@ -381,7 +381,7 @@ export class ReplicationAccess { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: IndexName[] + names: Indices } export class SearchAccess { @@ -393,7 +393,7 @@ export class SearchAccess { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: IndexName[] + names: Indices /** * A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. */ From 128163e191f772ef74b393d8ce51f7551d2dcbb6 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 15 Nov 2024 09:50:21 +0400 Subject: [PATCH 2/3] Use IndexName | IndexName[] instead of Indices --- output/openapi/elasticsearch-openapi.json | 65 ++++++++- .../elasticsearch-serverless-openapi.json | 13 +- output/schema/schema-serverless.json | 25 +++- output/schema/schema.json | 125 ++++++++++++++---- output/typescript/types.ts | 10 +- specification/security/_types/Privileges.ts | 12 +- 6 files changed, 203 insertions(+), 47 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 645757345f..7c785a7db2 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -81966,7 +81966,18 @@ "$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.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } + } + ] }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82245,7 +82256,18 @@ "type": "object", "properties": { "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } + } + ] } }, "required": [ @@ -82259,7 +82281,18 @@ "$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.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } + } + ] }, "query": { "$ref": "#/components/schemas/security._types:IndicesPrivilegesQuery" @@ -82734,7 +82767,18 @@ } }, "names": { - "$ref": "#/components/schemas/_types:Indices" + "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:IndexName" + } + } + ] }, "privileges": { "description": "The index level privileges that owners of the role have on the specified indices.", @@ -82955,7 +82999,18 @@ "$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.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "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 0dcda1ec56..6dfe9f3ed4 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53707,7 +53707,18 @@ "$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.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "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 feb8d5cef3..e08e7dbe10 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -139664,11 +139664,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ], + "kind": "union_of" } }, { diff --git a/output/schema/schema.json b/output/schema/schema.json index fa643ff96e..d414a2afd9 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -187675,11 +187675,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ] } }, { @@ -187862,11 +187877,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ] } }, { @@ -187927,11 +187957,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ] } } ], @@ -188586,11 +188631,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "IndexName", + "namespace": "_types" + } + } + } + ] } }, { @@ -188783,11 +188843,26 @@ "name": "names", "required": true, "type": { - "kind": "instance_of", - "type": { - "name": "Indices", - "namespace": "_types" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "IndexName", + "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 e74e2c3f5f..aaed2ef50c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17665,7 +17665,7 @@ export type SecurityIndexPrivilege = 'all' | 'auto_configure' | 'create' | 'crea export interface SecurityIndicesPrivileges { field_security?: SecurityFieldSecurity - names: Indices + names: IndexName | IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean @@ -17685,14 +17685,14 @@ export interface SecurityRealmInfo { export interface SecurityRemoteIndicesPrivileges { clusters: Names field_security?: SecurityFieldSecurity - names: Indices + names: IndexName | IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean } export interface SecurityReplicationAccess { - names: Indices + names: IndexName | IndexName[] } export interface SecurityRoleDescriptor { @@ -17755,7 +17755,7 @@ export interface SecurityRoleTemplateScript { export interface SecuritySearchAccess { field_security?: SecurityFieldSecurity - names: Indices + names: IndexName | IndexName[] query?: SecurityIndicesPrivilegesQuery allow_restricted_indices?: boolean } @@ -17774,7 +17774,7 @@ export interface SecurityUser { export interface SecurityUserIndicesPrivileges { field_security?: SecurityFieldSecurity[] - names: Indices + names: IndexName | IndexName[] privileges: SecurityIndexPrivilege[] query?: SecurityIndicesPrivilegesQuery[] allow_restricted_indices: boolean diff --git a/specification/security/_types/Privileges.ts b/specification/security/_types/Privileges.ts index 52189c6aee..aa833a2e1e 100644 --- a/specification/security/_types/Privileges.ts +++ b/specification/security/_types/Privileges.ts @@ -19,7 +19,7 @@ import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' -import { Id, Indices, Names } from '@_types/common' +import { Id, IndexName, Names } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { ScriptLanguage } from '@_types/Scripting' import { FieldSecurity } from './FieldSecurity' @@ -204,7 +204,7 @@ export class IndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: Indices + names: IndexName | IndexName[] /** * The index level privileges that owners of the role have on the specified indices. */ @@ -235,7 +235,7 @@ export class RemoteIndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: Indices + names: IndexName | IndexName[] /** * The index level privileges that owners of the role have on the specified indices. */ @@ -261,7 +261,7 @@ export class UserIndicesPrivileges { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: Indices + names: IndexName | IndexName[] /** * The index level privileges that owners of the role have on the specified indices. */ @@ -381,7 +381,7 @@ export class ReplicationAccess { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: Indices + names: IndexName | IndexName[] } export class SearchAccess { @@ -393,7 +393,7 @@ export class SearchAccess { /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */ - names: Indices + names: IndexName | IndexName[] /** * A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. */ From f584d4963e073bfb08714438e4017271679534be Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 15 Nov 2024 10:06:10 +0400 Subject: [PATCH 3/3] Add comment about IndexName | IndexName[] --- output/schema/schema-serverless.json | 12 ++++----- output/schema/schema.json | 28 ++++++++++----------- specification/security/_types/Privileges.ts | 2 ++ 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 645738f9d9..47a1b2cbed 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -103066,7 +103066,7 @@ "name": "IndexPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L360-L402" + "specLocation": "security/_types/Privileges.ts#L362-L404" }, { "codegenNames": [ @@ -103080,7 +103080,7 @@ "name": "IndicesPrivilegesQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L315-L323", + "specLocation": "security/_types/Privileges.ts#L317-L325", "type": { "items": [ { @@ -103130,7 +103130,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L325-L335" + "specLocation": "security/_types/Privileges.ts#L327-L337" }, { "kind": "interface", @@ -103218,7 +103218,7 @@ } ], "shortcutProperty": "source", - "specLocation": "security/_types/Privileges.ts#L337-L355" + "specLocation": "security/_types/Privileges.ts#L339-L357" }, { "codegenNames": [ @@ -103230,7 +103230,7 @@ "name": "RoleTemplateInlineQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L357-L358", + "specLocation": "security/_types/Privileges.ts#L359-L360", "type": { "items": [ { @@ -139773,7 +139773,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L217-L241" + "specLocation": "security/_types/Privileges.ts#L217-L243" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 0b1247fe4d..651fe95def 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -187078,7 +187078,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L408-L410" + "specLocation": "security/_types/Privileges.ts#L410-L412" }, { "kind": "interface", @@ -187603,7 +187603,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L404-L406" + "specLocation": "security/_types/Privileges.ts#L406-L408" }, { "kind": "enum", @@ -187716,7 +187716,7 @@ "name": "IndexPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L360-L402" + "specLocation": "security/_types/Privileges.ts#L362-L404" }, { "kind": "interface", @@ -187810,7 +187810,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L217-L241" + "specLocation": "security/_types/Privileges.ts#L217-L243" }, { "kind": "type_alias", @@ -187824,7 +187824,7 @@ "name": "IndicesPrivilegesQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L315-L323", + "specLocation": "security/_types/Privileges.ts#L317-L325", "type": { "kind": "union_of", "items": [ @@ -187874,7 +187874,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L412-L414" + "specLocation": "security/_types/Privileges.ts#L414-L416" }, { "kind": "interface", @@ -187970,7 +187970,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L277-L289" + "specLocation": "security/_types/Privileges.ts#L279-L291" }, { "kind": "interface", @@ -188077,7 +188077,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L243-L275" + "specLocation": "security/_types/Privileges.ts#L245-L277" }, { "kind": "interface", @@ -188127,7 +188127,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L416-L426" + "specLocation": "security/_types/Privileges.ts#L418-L428" }, { "kind": "interface", @@ -188699,7 +188699,7 @@ "name": "RoleTemplateInlineQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L357-L358", + "specLocation": "security/_types/Privileges.ts#L359-L360", "type": { "kind": "union_of", "items": [ @@ -188742,7 +188742,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L325-L335" + "specLocation": "security/_types/Privileges.ts#L327-L337" }, { "kind": "interface", @@ -188830,7 +188830,7 @@ } ], "shortcutProperty": "source", - "specLocation": "security/_types/Privileges.ts#L337-L355" + "specLocation": "security/_types/Privileges.ts#L339-L357" }, { "kind": "interface", @@ -188909,7 +188909,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L428-L448" + "specLocation": "security/_types/Privileges.ts#L430-L450" }, { "kind": "enum", @@ -189135,7 +189135,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L291-L313" + "specLocation": "security/_types/Privileges.ts#L293-L315" }, { "kind": "interface", diff --git a/specification/security/_types/Privileges.ts b/specification/security/_types/Privileges.ts index f40fcc8fc5..6836f8494e 100644 --- a/specification/security/_types/Privileges.ts +++ b/specification/security/_types/Privileges.ts @@ -220,6 +220,8 @@ export class IndicesPrivileges { * @doc_id field-and-document-access-control */ field_security?: FieldSecurity + // We're using IndexName | IndexName[] instead of Indices in this file on purpose: + // https://github.com/elastic/elasticsearch-specification/pull/3127 /** * A list of indices (or index name patterns) to which the permissions in this entry apply. */