From 25573604fb6cf712f1d2d2d3ec8233cbe8bbc617 Mon Sep 17 00:00:00 2001 From: pquentin <42327+pquentin@users.noreply.github.com> Date: Wed, 2 Jul 2025 04:13:03 +0000 Subject: [PATCH] Update rest-api-spec --- output/openapi/elasticsearch-openapi.json | 30 ++++++++++- output/schema/schema.json | 64 ++++++++++++++++++++++- output/typescript/types.ts | 8 ++- 3 files changed, 96 insertions(+), 6 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index e6f8851864..0258304dbd 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -62456,6 +62456,19 @@ } } }, + "cat._types.CatRecoveryColumns": { + "oneOf": [ + { + "$ref": "#/components/schemas/cat._types.CatRecoveryColumn" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/cat._types.CatRecoveryColumn" + } + } + ] + }, "cat._types.CatRecoveryColumn": { "anyOf": [ { @@ -62636,6 +62649,19 @@ } } }, + "cat._types.CatSegmentsColumns": { + "oneOf": [ + { + "$ref": "#/components/schemas/cat._types.CatSegmentsColumn" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/cat._types.CatSegmentsColumn" + } + } + ] + }, "cat._types.CatSegmentsColumn": { "anyOf": [ { @@ -110328,7 +110354,7 @@ "description": "A comma-separated list of columns names to display.\nIt supports simple wildcards.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/cat._types.CatRecoveryColumn" + "$ref": "#/components/schemas/cat._types.CatRecoveryColumns" }, "style": "form" }, @@ -110379,7 +110405,7 @@ "description": "A comma-separated list of columns names to display.\nIt supports simple wildcards.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/cat._types.CatSegmentsColumn" + "$ref": "#/components/schemas/cat._types.CatSegmentsColumns" }, "style": "form" }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 1dc592d727..9388f2d462 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -100509,6 +100509,36 @@ }, "specLocation": "cat/_types/CatBase.ts#L1014-L1145" }, + { + "kind": "type_alias", + "name": { + "name": "CatRecoveryColumns", + "namespace": "cat._types" + }, + "specLocation": "cat/_types/CatBase.ts#L1286-L1286", + "type": { + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "CatRecoveryColumn", + "namespace": "cat._types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "CatRecoveryColumn", + "namespace": "cat._types" + } + } + } + ] + } + }, { "kind": "interface", "attachedBehaviors": [ @@ -100620,6 +100650,36 @@ }, "specLocation": "cat/_types/CatBase.ts#L1147-L1212" }, + { + "kind": "type_alias", + "name": { + "name": "CatSegmentsColumns", + "namespace": "cat._types" + }, + "specLocation": "cat/_types/CatBase.ts#L1287-L1287", + "type": { + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "CatSegmentsColumn", + "namespace": "cat._types" + } + }, + { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "CatSegmentsColumn", + "namespace": "cat._types" + } + } + } + ] + } + }, { "kind": "enum", "isOpen": true, @@ -110862,7 +110922,7 @@ "type": { "kind": "instance_of", "type": { - "name": "CatRecoveryColumn", + "name": "CatRecoveryColumns", "namespace": "cat._types" } } @@ -111193,7 +111253,7 @@ "type": { "kind": "instance_of", "type": { - "name": "CatSegmentsColumn", + "name": "CatSegmentsColumns", "namespace": "cat._types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 941eb8df66..46545aba03 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7158,11 +7158,15 @@ export type CatCatNodeColumns = CatCatNodeColumn | CatCatNodeColumn[] export type CatCatRecoveryColumn = 'index' | 'i' | 'idx' | 'shard' | 's' | 'sh' | 'time' | 't' | 'ti' | 'primaryOrReplica' | 'type' | 'stage' | 'st' | 'source_host' | 'shost' | 'source_node' | 'snode' | 'target_host' | 'thost' | 'target_node' | 'tnode' | 'repository' | 'tnode' | 'snapshot' | 'snap' | 'files' | 'f' | 'files_recovered' | 'fr' | 'files_percent' | 'fp' | 'files_total' | 'tf' | 'bytes' | 'b' | 'bytes_recovered' | 'br' | 'bytes_percent' | 'bp' | 'bytes_total' | 'tb' | 'translog_ops' | 'to' | 'translog_ops_recovered' | 'tor' | 'translog_ops_percent' | 'top' | 'start_time' | 'start' | 'start_time_millis' | 'start_millis' | 'stop_time' | 'stop' | 'stop_time_millis' | 'stop_millis'| string +export type CatCatRecoveryColumns = CatCatRecoveryColumn | CatCatRecoveryColumn[] + export interface CatCatRequestBase extends RequestBase, SpecUtilsCommonCatQueryParameters { } export type CatCatSegmentsColumn = 'index' | 'i' | 'idx' | 'shard' | 's' | 'sh' | 'prirep' | 'p' | 'pr' | 'primaryOrReplica' | 'ip' | 'segment' | 'generation' | 'docs.count' | 'docs.deleted' | 'size' | 'size.memory' | 'committed' | 'searchable' | 'version' | 'compound' | 'id'| string +export type CatCatSegmentsColumns = CatCatSegmentsColumn | CatCatSegmentsColumn[] + export type CatCatSnapshotsColumn = 'id' | 'snapshot' | 'repository' | 're' | 'repo' | 'status' | 's' | 'start_epoch' | 'ste' | 'startEpoch' | 'start_time' | 'sti' | 'startTime' | 'end_epoch' | 'ete' | 'endEpoch' | 'end_time' | 'eti' | 'endTime' | 'duration' | 'dur' | 'indices' | 'i' | 'successful_shards' | 'ss' | 'failed_shards' | 'fs' | 'total_shards' | 'ts' | 'reason' | 'r'| string export type CatCatSnapshotsColumns = CatCatSnapshotsColumn | CatCatNodeColumn[] @@ -8469,7 +8473,7 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean - h?: CatCatRecoveryColumn + h?: CatCatRecoveryColumns s?: Names time?: TimeUnit } @@ -8495,7 +8499,7 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] export interface CatSegmentsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes - h?: CatCatSegmentsColumn + h?: CatCatSegmentsColumns s?: Names local?: boolean master_timeout?: Duration