diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 732150a2a6..05be05220c 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -77,11 +77,6 @@ export type Metrics = string | string[] export type ClusterAlias = string -export type ManagedBy = - | 'Index Lifecycle Management' - | 'Data stream lifecycle' - | 'Unmanaged' - export type Name = string export type Names = Name | Name[] diff --git a/specification/indices/_types/DataStream.ts b/specification/indices/_types/DataStream.ts index b508bc5aa0..aeb9b20fbe 100644 --- a/specification/indices/_types/DataStream.ts +++ b/specification/indices/_types/DataStream.ts @@ -22,7 +22,6 @@ import { Field, HealthStatus, IndexName, - ManagedBy, Metadata, Name, Uuid @@ -30,6 +29,12 @@ import { import { integer } from '@_types/Numeric' import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle' +enum ManagedBy { + 'Index Lifecycle Management', + 'Data stream lifecycle', + 'Unmanaged' +} + export class DataStream { /** * Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template.