Skip to content

Commit 08b12bb

Browse files
authored
Merge branch 'main' into fix/revert-MlEvaluateDataFrameResponse
2 parents 9c855ed + 66d3bb6 commit 08b12bb

File tree

56 files changed

+1230
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1230
-126
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 120 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 115 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 464 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface Request extends RequestBase {
8383
ccs_minimize_roundtrips?: boolean
8484
/**
8585
* Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
86+
* @server_default open
8687
*/
8788
expand_wildcards?: ExpandWildcards
8889
/**

specification/_global/rank_eval/RankEvalRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export interface Request extends RequestBase {
5757
* @server_default true
5858
*/
5959
allow_no_indices?: boolean
60+
/**
61+
* @server_default open
62+
*/
6063
expand_wildcards?: ExpandWildcards
6164
/**
6265
* If `true`, missing or closed indices are not included in the response.

specification/_global/search_template/SearchTemplateRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export interface Request extends RequestBase {
7575
* The type of index that wildcard patterns can match.
7676
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
7777
* Supports comma-separated values, such as `open,hidden`.
78+
* @server_default open
7879
*/
7980
expand_wildcards?: ExpandWildcards
8081
/**

specification/_global/update_by_query/UpdateByQueryRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export interface Request extends RequestBase {
190190
* The type of index that wildcard patterns can match.
191191
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
192192
* It supports comma-separated values, such as `open,hidden`.
193+
* @server_default open
193194
*/
194195
expand_wildcards?: ExpandWildcards
195196
/**

specification/async_search/_types/AsyncSearchResponseBase.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
import { Id } from '@_types/common'
21+
import { ErrorCause } from '@_types/Errors'
2122
import { DateTime, EpochTime, UnitMillis } from '@_types/Time'
2223
import { AsyncSearch } from './AsyncSearch'
2324

@@ -48,9 +49,23 @@ export class AsyncSearchResponseBase {
4849
*/
4950
completion_time?: DateTime
5051
completion_time_in_millis?: EpochTime<UnitMillis>
52+
error?: ErrorCause
5153
}
5254
export class AsyncSearchDocumentResponseBase<
5355
TDocument
5456
> extends AsyncSearchResponseBase {
5557
response: AsyncSearch<TDocument>
5658
}
59+
60+
export class AsyncSearchResponseException<TDocument> {
61+
is_partial: boolean
62+
is_running: boolean
63+
expiration_time?: DateTime
64+
expiration_time_in_millis: EpochTime<UnitMillis>
65+
start_time?: DateTime
66+
start_time_in_millis: EpochTime<UnitMillis>
67+
completion_time?: DateTime
68+
completion_time_in_millis?: EpochTime<UnitMillis>
69+
error?: ErrorCause
70+
response?: AsyncSearch<TDocument>
71+
}

specification/async_search/get/AsyncSearchGetResponse.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@
1717
* under the License.
1818
*/
1919

20-
import { AsyncSearchDocumentResponseBase } from '@async_search/_types/AsyncSearchResponseBase'
20+
import {
21+
AsyncSearchDocumentResponseBase,
22+
AsyncSearchResponseException
23+
} from '@async_search/_types/AsyncSearchResponseBase'
2124

2225
export class Response<TDocument> {
2326
/** @codegen_name result */
2427
body: AsyncSearchDocumentResponseBase<TDocument>
28+
exceptions: [
29+
{
30+
statusCodes: [404, 400, 500, 429]
31+
body: AsyncSearchResponseException<TDocument>
32+
}
33+
]
2534
}

0 commit comments

Comments
 (0)