diff --git a/output/schema/schema.json b/output/schema/schema.json index 52f3c30088..d26343a754 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -94924,7 +94924,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -96456,7 +96456,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98567,7 +98567,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98721,7 +98721,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99433,7 +99433,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99952,7 +99952,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101330,7 +101330,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101689,7 +101689,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index dd975a5784..f94698ce68 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7497,7 +7497,7 @@ export interface CatMlDataFrameAnalyticsRequest extends CatCatRequestBase { bytes?: Bytes h?: CatCatDfaColumns s?: CatCatDfaColumns - time?: Duration + time?: TimeUnit } export type CatMlDataFrameAnalyticsResponse = CatMlDataFrameAnalyticsDataFrameAnalyticsRecord[] @@ -7743,7 +7743,7 @@ export interface CatMlTrainedModelsRequest extends CatCatRequestBase { s?: CatCatTrainedModelsColumns from?: integer size?: integer - time?: Duration + time?: TimeUnit } export type CatMlTrainedModelsResponse = CatMlTrainedModelsTrainedModelsRecord[] @@ -8092,7 +8092,7 @@ export interface CatNodesRequest extends CatCatRequestBase { full_id?: boolean | string include_unloaded_segments?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatNodesResponse = CatNodesNodesRecord[] @@ -8111,7 +8111,7 @@ export interface CatPendingTasksPendingTasksRecord { export interface CatPendingTasksRequest extends CatCatRequestBase { local?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatPendingTasksResponse = CatPendingTasksPendingTasksRecord[] @@ -8201,7 +8201,7 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean - time?: Duration + time?: TimeUnit } export type CatRecoveryResponse = CatRecoveryRecoveryRecord[] @@ -8273,7 +8273,7 @@ export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatShardsResponse = CatShardsShardsRecord[] @@ -8497,7 +8497,7 @@ export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatSnapshotsResponse = CatSnapshotsSnapshotsRecord[] @@ -8541,7 +8541,7 @@ export interface CatTasksRequest extends CatCatRequestBase { detailed?: boolean nodes?: string[] parent_task_id?: string - time?: Duration + time?: TimeUnit } export type CatTasksResponse = CatTasksTasksRecord[] diff --git a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index a9a3de63e4..8ca10c6bbe 100644 --- a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -19,7 +19,7 @@ import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' -import { Duration } from '@_types/Time' +import { TimeUnit} from '@_types/Time' /** * Get data frame analytics jobs. @@ -54,6 +54,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index 7effa51f82..9c11ed89ed 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -20,7 +20,7 @@ import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' import { integer } from '@_types/Numeric' -import {Duration} from "@_types/Time"; +import { TimeUnit } from "@_types/Time"; /** * Get trained models. @@ -64,6 +64,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index a91a5a84af..066262d90b 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes } from '@_types/common' -import {Duration} from "@_types/Time"; +import {Duration, TimeUnit} from "@_types/Time"; /** * Get node information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index edaa782f79..96dd607bdb 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import {Duration, TimeUnit} from "@_types/Time"; /** * Get pending task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 6602e7c121..7e228b36b9 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import {Duration} from "@_types/Time"; +import {TimeUnit} from "@_types/Time"; /** * Get shard recovery information. @@ -60,6 +60,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index 2e2d439e57..849add6e23 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import {Duration} from "@_types/Time"; +import {Duration, TimeUnit} from "@_types/Time"; /** * Get shard information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 86deb536b9..bde99e9624 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import {Duration} from "@_types/Time"; +import {Duration, TimeUnit} from "@_types/Time"; /** * Get snapshot information @@ -56,6 +56,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 5c859c7147..3166ffb441 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import {Duration, TimeUnit} from "@_types/Time"; /** * Get task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } }