diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 60c66ad20c..81d7eaf7ec 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -28964,7 +28964,7 @@ "cluster": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/security._types:ClusterPrivilege" } }, "index": { @@ -28972,11 +28972,18 @@ "items": { "$ref": "#/components/schemas/_types:IndexName" } + }, + "remote_cluster": { + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivilege" + } } }, "required": [ "cluster", - "index" + "index", + "remote_cluster" ] } } @@ -81846,6 +81853,20 @@ "$ref": "#/components/schemas/security._types:IndicesPrivileges" } }, + "remote_indices": { + "description": "A list of indices permissions for remote clusters.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteIndicesPrivileges" + } + }, + "remote_cluster": { + "description": "A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivileges" + } + }, "global": { "description": "An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.", "oneOf": [ @@ -81938,6 +81959,7 @@ "monitor_ml", "monitor_rollup", "monitor_snapshot", + "monitor_stats", "monitor_text_structure", "monitor_transform", "monitor_watcher", @@ -82096,6 +82118,69 @@ } ] }, + "security._types:RemoteIndicesPrivileges": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#/components/schemas/_types:Names" + }, + "field_security": { + "$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" + } + }, + "privileges": { + "description": "The index level privileges that owners of the role have on the specified indices.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:IndexPrivilege" + } + }, + "query": { + "$ref": "#/components/schemas/security._types:IndicesPrivilegesQuery" + }, + "allow_restricted_indices": { + "description": "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`.", + "type": "boolean" + } + }, + "required": [ + "clusters", + "names", + "privileges" + ] + }, + "security._types:RemoteClusterPrivileges": { + "type": "object", + "properties": { + "clusters": { + "$ref": "#/components/schemas/_types:Names" + }, + "privileges": { + "description": "The cluster level privileges that owners of the role have on the remote cluster.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivilege" + } + } + }, + "required": [ + "clusters", + "privileges" + ] + }, + "security._types:RemoteClusterPrivilege": { + "type": "string", + "enum": [ + "monitor_enrich", + "monitor_stats" + ] + }, "security._types:GlobalPrivilege": { "type": "object", "properties": { @@ -82355,7 +82440,7 @@ "cluster": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/security._types:ClusterPrivilege" } }, "indices": { @@ -82364,6 +82449,18 @@ "$ref": "#/components/schemas/security._types:IndicesPrivileges" } }, + "remote_indices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteIndicesPrivileges" + } + }, + "remote_cluster": { + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivileges" + } + }, "metadata": { "$ref": "#/components/schemas/_types:Metadata" }, @@ -82536,6 +82633,20 @@ "$ref": "#/components/schemas/security._types:IndicesPrivileges" } }, + "remote_indices": { + "description": "A list of indices permissions for remote clusters.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteIndicesPrivileges" + } + }, + "remote_cluster": { + "description": "A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivileges" + } + }, "global": { "description": "An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.", "oneOf": [ @@ -82961,43 +83072,6 @@ "created" ] }, - "security._types:RemoteIndicesPrivileges": { - "type": "object", - "properties": { - "clusters": { - "$ref": "#/components/schemas/_types:Names" - }, - "field_security": { - "$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" - } - }, - "privileges": { - "description": "The index level privileges that owners of the role have on the specified indices.", - "type": "array", - "items": { - "$ref": "#/components/schemas/security._types:IndexPrivilege" - } - }, - "query": { - "$ref": "#/components/schemas/security._types:IndicesPrivilegesQuery" - }, - "allow_restricted_indices": { - "description": "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`.", - "type": "boolean" - } - }, - "required": [ - "clusters", - "names", - "privileges" - ] - }, "security.query_api_keys:ApiKeyAggregationContainer": { "allOf": [ { @@ -103746,6 +103820,13 @@ "$ref": "#/components/schemas/security._types:RemoteIndicesPrivileges" } }, + "remote_cluster": { + "description": "A list of remote cluster permissions entries.", + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivileges" + } + }, "metadata": { "$ref": "#/components/schemas/_types:Metadata" }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index a9cbf66396..482e2d7d28 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -17121,7 +17121,7 @@ "cluster": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/security._types:ClusterPrivilege" } }, "index": { @@ -17129,11 +17129,18 @@ "items": { "$ref": "#/components/schemas/_types:IndexName" } + }, + "remote_cluster": { + "type": "array", + "items": { + "$ref": "#/components/schemas/security._types:RemoteClusterPrivilege" + } } }, "required": [ "cluster", - "index" + "index", + "remote_cluster" ] } } @@ -53884,13 +53891,16 @@ "name" ] }, + "security._types:RemoteClusterPrivilege": { + "type": "string" + }, "security.get_role:Role": { "type": "object", "properties": { "cluster": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/security._types:ClusterPrivilege" } }, "indices": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index b4f72f1491..b172454c53 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -39140,8 +39140,8 @@ "value": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "ClusterPrivilege", + "namespace": "security._types" } } } @@ -39159,6 +39159,20 @@ } } } + }, + { + "name": "remote_cluster", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "RemoteClusterPrivilege", + "namespace": "security._types" + } + } + } } ] }, @@ -39167,7 +39181,7 @@ "name": "Response", "namespace": "security.get_builtin_privileges" }, - "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24" + "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L32" }, { "attachedBehaviors": [ @@ -39725,7 +39739,7 @@ } } ], - "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L31-L95" + "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L102" }, { "body": { @@ -102975,7 +102989,7 @@ "name": "ClusterPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L42-L195" + "specLocation": "security/_types/Privileges.ts#L42-L199" }, { "kind": "enum", @@ -103052,7 +103066,7 @@ "name": "IndexPrivilege", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L324-L366" + "specLocation": "security/_types/Privileges.ts#L360-L402" }, { "codegenNames": [ @@ -103066,7 +103080,7 @@ "name": "IndicesPrivilegesQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L279-L287", + "specLocation": "security/_types/Privileges.ts#L315-L323", "type": { "items": [ { @@ -103116,7 +103130,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L289-L299" + "specLocation": "security/_types/Privileges.ts#L325-L335" }, { "kind": "interface", @@ -103204,7 +103218,7 @@ } ], "shortcutProperty": "source", - "specLocation": "security/_types/Privileges.ts#L301-L319" + "specLocation": "security/_types/Privileges.ts#L337-L355" }, { "codegenNames": [ @@ -103216,7 +103230,7 @@ "name": "RoleTemplateInlineQuery", "namespace": "security._types" }, - "specLocation": "security/_types/Privileges.ts#L321-L322", + "specLocation": "security/_types/Privileges.ts#L357-L358", "type": { "items": [ { @@ -103237,6 +103251,15 @@ "kind": "union_of" } }, + { + "kind": "enum", + "members": [], + "name": { + "name": "RemoteClusterPrivilege", + "namespace": "security._types" + }, + "specLocation": "security/_types/Privileges.ts#L201-L214" + }, { "kind": "enum", "members": [ @@ -139636,7 +139659,7 @@ } } ], - "specLocation": "security/_types/RoleDescriptor.ts#L31-L64" + "specLocation": "security/_types/RoleDescriptor.ts#L33-L79" }, { "kind": "interface", @@ -139702,7 +139725,7 @@ } } ], - "specLocation": "security/_types/Privileges.ts#L198-L222" + "specLocation": "security/_types/Privileges.ts#L217-L241" }, { "kind": "interface", @@ -139873,8 +139896,8 @@ "value": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "ClusterPrivilege", + "namespace": "security._types" } } } @@ -140018,7 +140041,7 @@ } } ], - "specLocation": "security/get_role/types.ts#L29-L42" + "specLocation": "security/get_role/types.ts#L32-L53" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index dee25fcbb2..a4b477f326 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -187341,7 +187341,9 @@ }, { "availability": { - "stack": {} + "stack": { + "since": "8.17.0" + } }, "name": "monitor_stats" },