Skip to content

Commit 723ed6b

Browse files
committed
Extract security.privileges.query in a typealias
1 parent 1d36f90 commit 723ed6b

File tree

3 files changed

+58
-36
lines changed

3 files changed

+58
-36
lines changed

output/schema/schema.json

Lines changed: 49 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/Privileges.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,19 @@ export class IndicesPrivileges {
9494
/**
9595
* A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.
9696
*/
97-
query?: string[] | QueryContainer | RoleTemplateQueryContainer
97+
query?: IndicesPrivilegesQuery
9898
/**
9999
* Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.
100100
* @server_default false
101101
*/
102102
allow_restricted_indices?: boolean
103103
}
104104

105+
export type IndicesPrivilegesQuery =
106+
| string[]
107+
| QueryContainer
108+
| RoleTemplateQueryContainer
109+
105110
/** @variants container */
106111
export class RoleTemplateQueryContainer {
107112
/**

0 commit comments

Comments
 (0)