From 2e1e7c40857cb310dd38f380f06d87085a351d55 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Wed, 17 Apr 2024 10:32:28 +0000 Subject: [PATCH] Update specification output --- .../elasticsearch-serverless-openapi.json | 66 +++++--- output/schema/schema.json | 158 +++++++++--------- output/typescript/types.ts | 44 ++--- 3 files changed, 145 insertions(+), 123 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index f91db3b761..a373dde850 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1932,7 +1932,7 @@ "type": "string" }, "index_name": { - "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" + "$ref": "#/components/schemas/_spec_utils:WithNullValueIndexName" }, "is_native": { "type": "boolean" @@ -2047,7 +2047,7 @@ "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" }, "last_access_control_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_access_control_sync_status": { "$ref": "#/components/schemas/connector._types:SyncStatus" @@ -2056,25 +2056,25 @@ "type": "number" }, "last_incremental_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_indexed_document_count": { "type": "number" }, "last_seen": { - "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" + "$ref": "#/components/schemas/_spec_utils:WithNullValueDateTime" }, "last_sync_error": { "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" }, "last_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_sync_status": { "$ref": "#/components/schemas/connector._types:SyncStatus" }, "last_synced": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" } } } @@ -2225,7 +2225,7 @@ "type": "string" }, "index_name": { - "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" + "$ref": "#/components/schemas/_spec_utils:WithNullValueIndexName" }, "is_native": { "type": "boolean" @@ -2563,7 +2563,7 @@ "type": "object", "properties": { "index_name": { - "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" + "$ref": "#/components/schemas/_spec_utils:WithNullValueIndexName" } }, "required": [ @@ -49315,7 +49315,7 @@ "$ref": "#/components/schemas/_types:Id" }, "index_name": { - "type": "string" + "$ref": "#/components/schemas/_types:IndexName" }, "is_native": { "type": "boolean" @@ -49327,7 +49327,7 @@ "type": "string" }, "last_access_control_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_access_control_sync_status": { "$ref": "#/components/schemas/connector._types:SyncStatus" @@ -49336,25 +49336,25 @@ "type": "number" }, "last_incremental_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_indexed_document_count": { "type": "number" }, "last_seen": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_sync_error": { "type": "string" }, "last_sync_scheduled_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "last_sync_status": { "$ref": "#/components/schemas/connector._types:SyncStatus" }, "last_synced": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "name": { "type": "string" @@ -49672,7 +49672,7 @@ "type": "string" }, "last_synced": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "name": { "type": "string" @@ -49801,10 +49801,10 @@ "type": "object", "properties": { "created_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "updated_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "value": { "type": "object", @@ -49823,13 +49823,13 @@ "type": "object", "properties": { "created_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "field": { - "type": "string" + "$ref": "#/components/schemas/_types:Field" }, "id": { - "type": "string" + "$ref": "#/components/schemas/_types:Id" }, "order": { "type": "number" @@ -49841,7 +49841,7 @@ "$ref": "#/components/schemas/connector._types:FilteringRuleRule" }, "updated_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "value": { "type": "string" @@ -49901,7 +49901,7 @@ "ids": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/_types:Id" } }, "messages": { @@ -50015,6 +50015,28 @@ "description": "A `null` value that is to be interpreted as an actual value, unless other uses of `null` that are equivalent\nto a missing value. It is used for exemple in settings, where using the `NullValue` for a setting will reset\nit to its default value.", "type": "string" }, + "_spec_utils:WithNullValueDateTime": { + "description": "`WithNullValue` allows for explicit null assignments in contexts where `null` should be interpreted as an\nactual value.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:DateTime" + }, + { + "$ref": "#/components/schemas/_spec_utils:NullValue" + } + ] + }, + "_spec_utils:WithNullValueIndexName": { + "description": "`WithNullValue` allows for explicit null assignments in contexts where `null` should be interpreted as an\nactual value.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types:IndexName" + }, + { + "$ref": "#/components/schemas/_spec_utils:NullValue" + } + ] + }, "_types:WriteResponseBase": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index a281f27f8a..77baf17a59 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -105792,8 +105792,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } }, @@ -105836,8 +105836,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -105869,8 +105869,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -105891,8 +105891,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -105913,8 +105913,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -105935,8 +105935,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106007,7 +106007,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L237-L266" + "specLocation": "connector/_types/Connector.ts#L238-L267" }, { "kind": "interface", @@ -106194,7 +106194,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L82-L98" + "specLocation": "connector/_types/Connector.ts#L83-L99" }, { "kind": "type_alias", @@ -106202,7 +106202,7 @@ "name": "ConnectorConfiguration", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L100-L103", + "specLocation": "connector/_types/Connector.ts#L101-L104", "type": { "key": { "kind": "instance_of", @@ -106228,7 +106228,7 @@ "name": "ConnectorCustomScheduling", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L127-L127", + "specLocation": "connector/_types/Connector.ts#L128-L128", "type": { "key": { "kind": "instance_of", @@ -106311,7 +106311,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L223-L229" + "specLocation": "connector/_types/Connector.ts#L224-L230" }, { "kind": "enum", @@ -106333,7 +106333,7 @@ "name": "ConnectorFieldType", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L42-L47" + "specLocation": "connector/_types/Connector.ts#L43-L48" }, { "kind": "interface", @@ -106366,7 +106366,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L105-L109" + "specLocation": "connector/_types/Connector.ts#L106-L110" }, { "kind": "enum", @@ -106391,7 +106391,7 @@ "name": "ConnectorStatus", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L129-L135" + "specLocation": "connector/_types/Connector.ts#L130-L136" }, { "kind": "interface", @@ -106439,8 +106439,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106456,7 +106456,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L119-L125" + "specLocation": "connector/_types/Connector.ts#L120-L126" }, { "kind": "interface", @@ -106530,7 +106530,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L111-L117" + "specLocation": "connector/_types/Connector.ts#L112-L118" }, { "kind": "interface", @@ -106562,7 +106562,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L29-L32" + "specLocation": "connector/_types/Connector.ts#L30-L33" }, { "kind": "enum", @@ -106587,7 +106587,7 @@ "name": "DisplayType", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L34-L40" + "specLocation": "connector/_types/Connector.ts#L35-L41" }, { "kind": "interface", @@ -106608,7 +106608,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L214-L216" + "specLocation": "connector/_types/Connector.ts#L215-L217" }, { "kind": "interface", @@ -106623,8 +106623,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106634,8 +106634,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106658,7 +106658,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L191-L195" + "specLocation": "connector/_types/Connector.ts#L192-L196" }, { "kind": "interface", @@ -106701,7 +106701,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L208-L212" + "specLocation": "connector/_types/Connector.ts#L209-L213" }, { "kind": "enum", @@ -106717,7 +106717,7 @@ "name": "FilteringPolicy", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L154-L157" + "specLocation": "connector/_types/Connector.ts#L155-L158" }, { "kind": "interface", @@ -106732,8 +106732,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106743,8 +106743,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Field", + "namespace": "_types" } } }, @@ -106754,8 +106754,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Id", + "namespace": "_types" } } }, @@ -106798,8 +106798,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106815,7 +106815,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L169-L178" + "specLocation": "connector/_types/Connector.ts#L170-L179" }, { "kind": "enum", @@ -106848,7 +106848,7 @@ "name": "FilteringRuleRule", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L159-L167" + "specLocation": "connector/_types/Connector.ts#L160-L168" }, { "kind": "interface", @@ -106894,7 +106894,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L202-L206" + "specLocation": "connector/_types/Connector.ts#L203-L207" }, { "kind": "interface", @@ -106929,7 +106929,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L197-L200" + "specLocation": "connector/_types/Connector.ts#L198-L201" }, { "kind": "interface", @@ -106946,8 +106946,8 @@ "value": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Id", + "namespace": "_types" } } } @@ -106967,7 +106967,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L180-L183" + "specLocation": "connector/_types/Connector.ts#L181-L184" }, { "kind": "enum", @@ -106986,7 +106986,7 @@ "name": "FilteringValidationState", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L185-L189" + "specLocation": "connector/_types/Connector.ts#L186-L190" }, { "kind": "interface", @@ -107015,7 +107015,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L62-L65" + "specLocation": "connector/_types/Connector.ts#L63-L66" }, { "kind": "interface", @@ -107044,7 +107044,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L72-L75" + "specLocation": "connector/_types/Connector.ts#L73-L76" }, { "kind": "interface", @@ -107098,7 +107098,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L147-L152" + "specLocation": "connector/_types/Connector.ts#L148-L153" }, { "kind": "interface", @@ -107127,7 +107127,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L57-L60" + "specLocation": "connector/_types/Connector.ts#L58-L61" }, { "kind": "interface", @@ -107159,7 +107159,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L67-L70" + "specLocation": "connector/_types/Connector.ts#L68-L71" }, { "kind": "interface", @@ -107188,7 +107188,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L77-L80" + "specLocation": "connector/_types/Connector.ts#L78-L81" }, { "kind": "interface", @@ -107231,7 +107231,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L231-L235" + "specLocation": "connector/_types/Connector.ts#L232-L236" }, { "kind": "interface", @@ -107263,7 +107263,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L24-L27" + "specLocation": "connector/_types/Connector.ts#L25-L28" }, { "kind": "interface", @@ -107295,7 +107295,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L218-L221" + "specLocation": "connector/_types/Connector.ts#L219-L222" }, { "kind": "enum", @@ -107326,7 +107326,7 @@ "name": "SyncStatus", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L137-L145" + "specLocation": "connector/_types/Connector.ts#L138-L146" }, { "kind": "type_alias", @@ -107334,7 +107334,7 @@ "name": "Validation", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L49-L55", + "specLocation": "connector/_types/Connector.ts#L50-L56", "type": { "items": [ { @@ -107581,8 +107581,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107614,8 +107614,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107638,8 +107638,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } ], @@ -107676,8 +107676,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107698,8 +107698,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } } @@ -107732,7 +107732,7 @@ } ], "query": [], - "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L25-L55" + "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L56" }, { "body": { @@ -107918,8 +107918,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } ], @@ -107990,7 +107990,7 @@ }, "path": [], "query": [], - "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L42" + "specLocation": "connector/post/ConnectorPostRequest.ts#L23-L43" }, { "body": { @@ -108042,8 +108042,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } ], @@ -108519,8 +108519,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } ], diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 09b985b667..bb907d07b7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9091,20 +9091,20 @@ export interface ConnectorConnector { features: ConnectorConnectorFeatures filtering: ConnectorFilteringConfig[] id?: Id - index_name?: string + index_name?: IndexName is_native: boolean language?: string last_access_control_sync_error?: string - last_access_control_sync_scheduled_at?: string + last_access_control_sync_scheduled_at?: DateTime last_access_control_sync_status?: ConnectorSyncStatus last_deleted_document_count?: long - last_incremental_sync_scheduled_at?: string + last_incremental_sync_scheduled_at?: DateTime last_indexed_document_count?: long - last_seen?: string + last_seen?: DateTime last_sync_error?: string - last_sync_scheduled_at?: string + last_sync_scheduled_at?: DateTime last_sync_status?: ConnectorSyncStatus - last_synced?: string + last_synced?: DateTime name?: string pipeline?: ConnectorIngestPipelineParams scheduling: ConnectorSchedulingConfiguration @@ -9156,7 +9156,7 @@ export interface ConnectorCustomScheduling { configuration_overrides: ConnectorCustomSchedulingConfigurationOverrides enabled: boolean interval: string - last_synced?: string + last_synced?: DateTime name: string } @@ -9180,8 +9180,8 @@ export interface ConnectorFeatureEnabled { } export interface ConnectorFilteringAdvancedSnippet { - created_at: string - updated_at: string + created_at: DateTime + updated_at: DateTime value: Record } @@ -9194,13 +9194,13 @@ export interface ConnectorFilteringConfig { export type ConnectorFilteringPolicy = 'exclude' | 'include' export interface ConnectorFilteringRule { - created_at: string - field: string - id: string + created_at: DateTime + field: Field + id: Id order: integer policy: ConnectorFilteringPolicy rule: ConnectorFilteringRuleRule - updated_at: string + updated_at: DateTime value: string } @@ -9218,7 +9218,7 @@ export interface ConnectorFilteringRulesValidation { } export interface ConnectorFilteringValidation { - ids: string[] + ids: Id[] messages: string[] } @@ -9300,16 +9300,16 @@ export interface ConnectorLastSyncRequest extends RequestBase { connector_id: Id body?: { last_access_control_sync_error?: SpecUtilsWithNullValue - last_access_control_sync_scheduled_at?: string + last_access_control_sync_scheduled_at?: DateTime last_access_control_sync_status?: ConnectorSyncStatus last_deleted_document_count?: long - last_incremental_sync_scheduled_at?: string + last_incremental_sync_scheduled_at?: DateTime last_indexed_document_count?: long - last_seen?: SpecUtilsWithNullValue + last_seen?: SpecUtilsWithNullValue last_sync_error?: SpecUtilsWithNullValue - last_sync_scheduled_at?: string + last_sync_scheduled_at?: DateTime last_sync_status?: ConnectorSyncStatus - last_synced?: string + last_synced?: DateTime } } @@ -9334,7 +9334,7 @@ export interface ConnectorListResponse { export interface ConnectorPostRequest extends RequestBase { body?: { description?: string - index_name: SpecUtilsWithNullValue + index_name: SpecUtilsWithNullValue is_native?: boolean language?: string name?: string @@ -9350,7 +9350,7 @@ export interface ConnectorPutRequest extends RequestBase { connector_id: Id body?: { description?: string - index_name: SpecUtilsWithNullValue + index_name: SpecUtilsWithNullValue is_native?: boolean language?: string name?: string @@ -9411,7 +9411,7 @@ export interface ConnectorUpdateFilteringResponse { export interface ConnectorUpdateIndexNameRequest extends RequestBase { connector_id: Id body?: { - index_name: SpecUtilsWithNullValue + index_name: SpecUtilsWithNullValue } }