From 0c059bf470b97ac0b62979e526a2e2f02d1f1d74 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Tue, 20 Aug 2024 01:44:52 +1000 Subject: [PATCH] Auto-generated code for 8.14 (#2343) --- docs/reference.asciidoc | 2 +- src/api/types.ts | 2 +- src/api/typesWithBodyKey.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index d2b9062de..b44effca8 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -9975,7 +9975,7 @@ client.synonyms.putSynonym({ id, synonyms_set }) * *Request (object):* ** *`id` (string)*: The id of the synonyms set to be created or updated -** *`synonyms_set` ({ id, synonyms }[])*: The synonym set information to update +** *`synonyms_set` ({ id, synonyms } | { id, synonyms }[])*: The synonym set information to update [discrete] ==== put_synonym_rule diff --git a/src/api/types.ts b/src/api/types.ts index 5c9b7642c..70f04933b 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -18049,7 +18049,7 @@ export interface SynonymsGetSynonymsSetsSynonymsSetItem { export interface SynonymsPutSynonymRequest extends RequestBase { id: Id - synonyms_set: SynonymsSynonymRule[] + synonyms_set: SynonymsSynonymRule | SynonymsSynonymRule[] } export interface SynonymsPutSynonymResponse { diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 67e03cd13..656af059f 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -18509,7 +18509,7 @@ export interface SynonymsPutSynonymRequest extends RequestBase { id: Id /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ body?: { - synonyms_set: SynonymsSynonymRule[] + synonyms_set: SynonymsSynonymRule | SynonymsSynonymRule[] } }