diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index f9fd6a13e8..01c6a00a1d 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" @@ -2833,7 +2833,7 @@ "type": "object", "properties": { "index_name": { - "$ref": "#/components/schemas/_spec_utils:WithNullValuestring" + "$ref": "#/components/schemas/_spec_utils:WithNullValueIndexName" } }, "required": [ @@ -49596,7 +49596,7 @@ "$ref": "#/components/schemas/_types:Id" }, "index_name": { - "type": "string" + "$ref": "#/components/schemas/_types:IndexName" }, "is_native": { "type": "boolean" @@ -49608,7 +49608,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" @@ -49617,25 +49617,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" @@ -49953,7 +49953,7 @@ "type": "string" }, "last_synced": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "name": { "type": "string" @@ -50082,10 +50082,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", @@ -50104,13 +50104,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" @@ -50122,7 +50122,7 @@ "$ref": "#/components/schemas/connector._types:FilteringRuleRule" }, "updated_at": { - "type": "string" + "$ref": "#/components/schemas/_types:DateTime" }, "value": { "type": "string" @@ -50182,7 +50182,7 @@ "ids": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/_types:Id" } }, "messages": { @@ -50296,6 +50296,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" + } + ] + }, "connector._types:ConnectorSyncJob": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 16d549a365..e892dcc7d6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -106008,8 +106008,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } }, @@ -106052,8 +106052,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106085,8 +106085,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106107,8 +106107,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106129,8 +106129,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106151,8 +106151,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106223,7 +106223,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L237-L266" + "specLocation": "connector/_types/Connector.ts#L238-L267" }, { "kind": "interface", @@ -106410,7 +106410,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L82-L98" + "specLocation": "connector/_types/Connector.ts#L83-L99" }, { "kind": "type_alias", @@ -106418,7 +106418,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", @@ -106444,7 +106444,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", @@ -106527,7 +106527,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L223-L229" + "specLocation": "connector/_types/Connector.ts#L224-L230" }, { "kind": "enum", @@ -106549,7 +106549,7 @@ "name": "ConnectorFieldType", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L42-L47" + "specLocation": "connector/_types/Connector.ts#L43-L48" }, { "kind": "interface", @@ -106582,7 +106582,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L105-L109" + "specLocation": "connector/_types/Connector.ts#L106-L110" }, { "kind": "enum", @@ -106607,7 +106607,7 @@ "name": "ConnectorStatus", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L129-L135" + "specLocation": "connector/_types/Connector.ts#L130-L136" }, { "kind": "interface", @@ -106870,8 +106870,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -106887,7 +106887,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L119-L125" + "specLocation": "connector/_types/Connector.ts#L120-L126" }, { "kind": "interface", @@ -106961,7 +106961,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L111-L117" + "specLocation": "connector/_types/Connector.ts#L112-L118" }, { "kind": "interface", @@ -106993,7 +106993,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L29-L32" + "specLocation": "connector/_types/Connector.ts#L30-L33" }, { "kind": "enum", @@ -107018,7 +107018,7 @@ "name": "DisplayType", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L34-L40" + "specLocation": "connector/_types/Connector.ts#L35-L41" }, { "kind": "interface", @@ -107039,7 +107039,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L214-L216" + "specLocation": "connector/_types/Connector.ts#L215-L217" }, { "kind": "interface", @@ -107054,8 +107054,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107065,8 +107065,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107089,7 +107089,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L191-L195" + "specLocation": "connector/_types/Connector.ts#L192-L196" }, { "kind": "interface", @@ -107132,7 +107132,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L208-L212" + "specLocation": "connector/_types/Connector.ts#L209-L213" }, { "kind": "enum", @@ -107148,7 +107148,7 @@ "name": "FilteringPolicy", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L154-L157" + "specLocation": "connector/_types/Connector.ts#L155-L158" }, { "kind": "interface", @@ -107163,8 +107163,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107174,8 +107174,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Field", + "namespace": "_types" } } }, @@ -107185,8 +107185,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Id", + "namespace": "_types" } } }, @@ -107229,8 +107229,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -107246,7 +107246,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L169-L178" + "specLocation": "connector/_types/Connector.ts#L170-L179" }, { "kind": "enum", @@ -107279,7 +107279,7 @@ "name": "FilteringRuleRule", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L159-L167" + "specLocation": "connector/_types/Connector.ts#L160-L168" }, { "kind": "interface", @@ -107325,7 +107325,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L202-L206" + "specLocation": "connector/_types/Connector.ts#L203-L207" }, { "kind": "interface", @@ -107360,7 +107360,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L197-L200" + "specLocation": "connector/_types/Connector.ts#L198-L201" }, { "kind": "interface", @@ -107377,8 +107377,8 @@ "value": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "Id", + "namespace": "_types" } } } @@ -107398,7 +107398,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L180-L183" + "specLocation": "connector/_types/Connector.ts#L181-L184" }, { "kind": "enum", @@ -107417,7 +107417,7 @@ "name": "FilteringValidationState", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L185-L189" + "specLocation": "connector/_types/Connector.ts#L186-L190" }, { "kind": "interface", @@ -107446,7 +107446,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L62-L65" + "specLocation": "connector/_types/Connector.ts#L63-L66" }, { "kind": "interface", @@ -107475,7 +107475,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L72-L75" + "specLocation": "connector/_types/Connector.ts#L73-L76" }, { "kind": "interface", @@ -107529,7 +107529,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L147-L152" + "specLocation": "connector/_types/Connector.ts#L148-L153" }, { "kind": "interface", @@ -107558,7 +107558,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L57-L60" + "specLocation": "connector/_types/Connector.ts#L58-L61" }, { "kind": "interface", @@ -107590,7 +107590,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L67-L70" + "specLocation": "connector/_types/Connector.ts#L68-L71" }, { "kind": "interface", @@ -107619,7 +107619,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L77-L80" + "specLocation": "connector/_types/Connector.ts#L78-L81" }, { "kind": "interface", @@ -107662,7 +107662,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L231-L235" + "specLocation": "connector/_types/Connector.ts#L232-L236" }, { "kind": "interface", @@ -107694,7 +107694,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L24-L27" + "specLocation": "connector/_types/Connector.ts#L25-L28" }, { "kind": "interface", @@ -107848,7 +107848,7 @@ } } ], - "specLocation": "connector/_types/Connector.ts#L218-L221" + "specLocation": "connector/_types/Connector.ts#L219-L222" }, { "kind": "enum", @@ -107879,7 +107879,7 @@ "name": "SyncStatus", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L137-L145" + "specLocation": "connector/_types/Connector.ts#L138-L146" }, { "kind": "type_alias", @@ -107887,7 +107887,7 @@ "name": "Validation", "namespace": "connector._types" }, - "specLocation": "connector/_types/Connector.ts#L49-L55", + "specLocation": "connector/_types/Connector.ts#L50-L56", "type": { "items": [ { @@ -108134,8 +108134,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -108167,8 +108167,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -108191,8 +108191,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } ], @@ -108229,8 +108229,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } }, @@ -108251,8 +108251,8 @@ "type": { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "DateTime", + "namespace": "_types" } } } @@ -108285,7 +108285,7 @@ } ], "query": [], - "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L25-L55" + "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L56" }, { "body": { @@ -108471,8 +108471,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } ], @@ -108543,7 +108543,7 @@ }, "path": [], "query": [], - "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L42" + "specLocation": "connector/post/ConnectorPostRequest.ts#L23-L43" }, { "body": { @@ -108595,8 +108595,8 @@ { "kind": "instance_of", "type": { - "name": "string", - "namespace": "_builtins" + "name": "IndexName", + "namespace": "_types" } } ], @@ -109448,8 +109448,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 3dce5bbdfd..b78330ed6d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9092,20 +9092,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 @@ -9178,7 +9178,7 @@ export interface ConnectorCustomScheduling { configuration_overrides: ConnectorCustomSchedulingConfigurationOverrides enabled: boolean interval: string - last_synced?: string + last_synced?: DateTime name: string } @@ -9202,8 +9202,8 @@ export interface ConnectorFeatureEnabled { } export interface ConnectorFilteringAdvancedSnippet { - created_at: string - updated_at: string + created_at: DateTime + updated_at: DateTime value: Record } @@ -9216,13 +9216,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 } @@ -9240,7 +9240,7 @@ export interface ConnectorFilteringRulesValidation { } export interface ConnectorFilteringValidation { - ids: string[] + ids: Id[] messages: string[] } @@ -9336,16 +9336,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 } } @@ -9370,7 +9370,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 @@ -9386,7 +9386,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 @@ -9492,7 +9492,7 @@ export interface ConnectorUpdateFilteringResponse { export interface ConnectorUpdateIndexNameRequest extends RequestBase { connector_id: Id body?: { - index_name: SpecUtilsWithNullValue + index_name: SpecUtilsWithNullValue } }