diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 0923f19f2e..1097778294 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -69905,11 +69905,13 @@ }, "maxmind": { "$ref": "#/components/schemas/ingest._types:Maxmind" + }, + "ipinfo": { + "$ref": "#/components/schemas/ingest._types:Ipinfo" } }, "required": [ - "name", - "maxmind" + "name" ] }, "ingest._types:Maxmind": { @@ -69923,6 +69925,9 @@ "account_id" ] }, + "ingest._types:Ipinfo": { + "type": "object" + }, "ingest.get_ip_location_database:DatabaseConfigurationMetadata": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 9cd25f7ff4..01e8b61fa6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -142202,9 +142202,9 @@ } }, { - "description": "The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.\nAt present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.", + "description": "The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.\nAt present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured.\nA provider (either maxmind or ipinfo) must be specified.", "name": "maxmind", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -142212,9 +142212,20 @@ "namespace": "ingest._types" } } + }, + { + "name": "ipinfo", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Ipinfo", + "namespace": "ingest._types" + } + } } ], - "specLocation": "ingest/_types/Database.ts#L22-L29" + "specLocation": "ingest/_types/Database.ts#L22-L31" }, { "kind": "interface", @@ -143677,6 +143688,15 @@ ], "specLocation": "ingest/_types/Processors.ts#L478-L512" }, + { + "kind": "interface", + "name": { + "name": "Ipinfo", + "namespace": "ingest._types" + }, + "properties": [], + "specLocation": "ingest/_types/Database.ts#L37-L37" + }, { "kind": "interface", "inherits": { @@ -144057,7 +144077,7 @@ } } ], - "specLocation": "ingest/_types/Database.ts#L31-L33" + "specLocation": "ingest/_types/Database.ts#L33-L35" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 81c96e2fce..09c29d9595 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -12857,7 +12857,8 @@ export interface IngestCsvProcessor extends IngestProcessorBase { export interface IngestDatabaseConfiguration { name: Name - maxmind: IngestMaxmind + maxmind?: IngestMaxmind + ipinfo?: IngestIpinfo } export interface IngestDateIndexNameProcessor extends IngestProcessorBase { @@ -13009,6 +13010,10 @@ export interface IngestIpLocationProcessor extends IngestProcessorBase { download_database_on_pipeline_creation?: boolean } +export interface IngestIpinfo { + [key: string]: never +} + export interface IngestJoinProcessor extends IngestProcessorBase { field: Field separator: string diff --git a/specification/ingest/_types/Database.ts b/specification/ingest/_types/Database.ts index 8c20e3b871..d154c5103a 100644 --- a/specification/ingest/_types/Database.ts +++ b/specification/ingest/_types/Database.ts @@ -23,11 +23,15 @@ export class DatabaseConfiguration { /** The provider-assigned name of the IP geolocation database to download. */ name: Name /** The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - * At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. + * At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured. + * A provider (either maxmind or ipinfo) must be specified. */ - maxmind: Maxmind + maxmind?: Maxmind + ipinfo?: Ipinfo } export class Maxmind { account_id: Id } + +export class Ipinfo {}