diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5e06aff0b5..73f792111e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -5238,15 +5238,10 @@ "type": "number" }, "last_seen": { - "description": "The timestamp to use in the `last_seen` property for the connector sync job.", - "type": "number" + "$ref": "#/components/schemas/_types:Duration" }, "metadata": { - "description": "The connector-specific metadata.", - "type": "object", - "additionalProperties": { - "type": "object" - } + "$ref": "#/components/schemas/_types:Metadata" }, "total_document_count": { "description": "The total number of documents in the target index after the sync job finished.", diff --git a/output/schema/schema.json b/output/schema/schema.json index fa9afd1edc..535ddef671 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -115922,7 +115922,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -115934,7 +115934,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -115946,7 +115946,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -115958,7 +115958,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "Duration", "namespace": "_types" } } @@ -115968,17 +115968,10 @@ "name": "metadata", "required": false, "type": { - "kind": "dictionary_of", - "key": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - "singleKey": false, - "value": { - "kind": "user_defined_value" + "kind": "instance_of", + "type": { + "name": "Metadata", + "namespace": "_types" } } }, diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 6f16a8370a..7efa0e2f0a 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -255,12 +255,6 @@ ], "response": [] }, - "connector.update_features": { - "request": [ - "Missing request & response" - ], - "response": [] - }, "enrich.delete_policy": { "request": [ "Request: missing json spec query parameter 'master_timeout'" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 69e6635771..b6739af737 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10058,11 +10058,11 @@ export interface ConnectorSyncJobPostResponse { export interface ConnectorSyncJobUpdateStatsRequest extends RequestBase { connector_sync_job_id: Id body?: { - deleted_document_count: integer - indexed_document_count: integer - indexed_document_volume: integer - last_seen?: integer - metadata?: Record + deleted_document_count: long + indexed_document_count: long + indexed_document_volume: long + last_seen?: Duration + metadata?: Metadata total_document_count?: integer } } diff --git a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts index 07f8ad6b9a..f4d68d2c75 100644 --- a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts +++ b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts @@ -16,11 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -import { Dictionary } from '@spec_utils/Dictionary' -import { UserDefinedValue } from '@spec_utils/UserDefinedValue' + import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' -import { integer } from '@_types/Numeric' +import { Duration } from '@_types/Time' +import { Id, Metadata } from '@_types/common' +import { integer, long } from '@_types/Numeric' /** * Set the connector sync job stats.