@elastic/elasticsearch 9.4.1 → 9.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/api/api/bulk.js +2 -2
- package/esm/api/api/bulk.js.map +1 -1
- package/esm/api/api/indices.d.ts +1 -1
- package/esm/api/api/inference.d.ts +1 -1
- package/esm/api/types.d.ts +80 -6
- package/esm/api/types.d.ts.map +1 -1
- package/esm/version.generated.js +1 -1
- package/lib/api/api/bulk.js +2 -2
- package/lib/api/api/bulk.js.map +1 -1
- package/lib/api/api/indices.d.ts +1 -1
- package/lib/api/api/inference.d.ts +1 -1
- package/lib/api/types.d.ts +80 -6
- package/lib/version.generated.js +1 -1
- package/package.json +3 -3
package/esm/version.generated.js
CHANGED
package/lib/api/api/bulk.js
CHANGED
|
@@ -37,8 +37,8 @@ const acceptedParams = {
|
|
|
37
37
|
async function BulkApi(params, options) {
|
|
38
38
|
var _a, _b;
|
|
39
39
|
const operations = (_a = params.operations) !== null && _a !== void 0 ? _a : params.body;
|
|
40
|
-
if (
|
|
41
|
-
throw new transport_1.errors.ConfigurationError('Missing required parameter [operations]
|
|
40
|
+
if (operations == null) {
|
|
41
|
+
throw new transport_1.errors.ConfigurationError('Missing required parameter [operations]');
|
|
42
42
|
}
|
|
43
43
|
const { path: acceptedPath, body: acceptedBody, query: acceptedQuery } = acceptedParams.bulk;
|
|
44
44
|
const userQuery = params === null || params === void 0 ? void 0 : params.querystring;
|
package/lib/api/api/bulk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../../src/api/api/bulk.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAuDH,0BAuDC;AA5GD,+EAA+E;AAC/E,sEAAsE;AACtE,yEAAyE;AAEzE,kDAQ2B;AAO3B,MAAM,iBAAiB,GAAG,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AAE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CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QACzB,MAAM,GAAG,MAAM,CAAA;QACf,IAAI,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAA;IAChE,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,MAAM,CAAA;QACf,IAAI,GAAG,QAAQ,CAAA;IACjB,CAAC;IACD,MAAM,IAAI,GAA6B;QACrC,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE;YACT,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,CAAC,OAAO,CAAC;YACf,IAAI,EAAE,CAAC,YAAY,CAAC;YACpB,KAAK,EAAE,CAAC,yBAAyB,EAAE,yBAAyB,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,SAAS,EAAE,wBAAwB,EAAE,eAAe,EAAE,qBAAqB,CAAC;SAChO;KACF,CAAA;IACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;AACnG,CAAC"}
|
package/lib/api/api/indices.d.ts
CHANGED
|
@@ -487,7 +487,7 @@ export default class Indices {
|
|
|
487
487
|
simulateTemplate(this: That, params?: T.IndicesSimulateTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesSimulateTemplateResponse, unknown>>;
|
|
488
488
|
simulateTemplate(this: That, params?: T.IndicesSimulateTemplateRequest, options?: TransportRequestOptions): Promise<T.IndicesSimulateTemplateResponse>;
|
|
489
489
|
/**
|
|
490
|
-
* Split an index. Split an index into a new index with more primary shards. * Before you can split an index: * The index must be read-only. * The cluster health status must be green. You can do make an index read-only with the following request using the add index block API: ``` PUT /my_source_index/_block/write ``` The current write index on a data stream cannot be split. In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the `index.number_of_routing_shards` setting. The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. For instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. A split operation: * Creates a new target index with the same definition as the source index, but with a larger number of primary shards. * Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. * Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. * Recovers the target index as though it were a closed index which had just been re-opened. IMPORTANT: Indices can only be split if they satisfy the following requirements: * The target index must not exist. * The source index must have fewer primary shards than the target index. * The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. * The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index.
|
|
490
|
+
* Split an index. Split an index into a new index with more primary shards. * Before you can split an index: * The index must be read-only. * The cluster health status must be green. You can do make an index read-only with the following request using the add index block API: ``` PUT /my_source_index/_block/write ``` The current write index on a data stream cannot be split. In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the `index.number_of_routing_shards` setting. The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. For instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. A split operation: * Creates a new target index with the same definition as the source index, but with a larger number of primary shards. * Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. * Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. * Recovers the target index as though it were a closed index which had just been re-opened. IMPORTANT: Indices can only be split if they satisfy the following requirements: * The target index must not exist. * The source index must have fewer primary shards than the target index. * The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. * The number of primary shards in the target index must be a divisor of the source index's `index.number_of_routing_shards`. * The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index.
|
|
491
491
|
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation-indices-split | Elasticsearch API documentation}
|
|
492
492
|
*/
|
|
493
493
|
split(this: That, params: T.IndicesSplitRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesSplitResponse>;
|
|
@@ -264,7 +264,7 @@ export default class Inference {
|
|
|
264
264
|
sparseEmbedding(this: That, params: T.InferenceSparseEmbeddingRequest, options?: TransportRequestOptions): Promise<T.InferenceSparseEmbeddingResponse>;
|
|
265
265
|
/**
|
|
266
266
|
* Perform streaming completion inference on the service. Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. This API works only with the completion task type. IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. This API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege). You must use a client that supports streaming.
|
|
267
|
-
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation-inference-stream-
|
|
267
|
+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-stream-completion | Elasticsearch API documentation}
|
|
268
268
|
*/
|
|
269
269
|
streamCompletion(this: That, params: T.InferenceStreamCompletionRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceStreamCompletionResponse>;
|
|
270
270
|
streamCompletion(this: That, params: T.InferenceStreamCompletionRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.InferenceStreamCompletionResponse, unknown>>;
|
package/lib/api/types.d.ts
CHANGED
|
@@ -2766,6 +2766,38 @@ export interface ReindexSource {
|
|
|
2766
2766
|
_source?: SearchSourceConfig;
|
|
2767
2767
|
runtime_mappings?: MappingRuntimeFields;
|
|
2768
2768
|
}
|
|
2769
|
+
export interface ReindexRethrottleParentReindexStatus {
|
|
2770
|
+
slices?: ReindexStatus[];
|
|
2771
|
+
/** The slice ID */
|
|
2772
|
+
slice_id?: integer;
|
|
2773
|
+
/** The number of scroll responses pulled back by the reindex. */
|
|
2774
|
+
batches: long;
|
|
2775
|
+
/** The number of documents that were successfully created. */
|
|
2776
|
+
created?: long;
|
|
2777
|
+
/** The number of documents that were successfully deleted. */
|
|
2778
|
+
deleted: long;
|
|
2779
|
+
/** The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`. */
|
|
2780
|
+
noops: long;
|
|
2781
|
+
/** The number of requests per second effectively executed during the reindex. */
|
|
2782
|
+
requests_per_second: float;
|
|
2783
|
+
/** The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried. */
|
|
2784
|
+
retries: Retries;
|
|
2785
|
+
throttled?: Duration;
|
|
2786
|
+
/** Number of milliseconds the request slept to conform to `requests_per_second`. */
|
|
2787
|
+
throttled_millis: DurationValue<UnitMillis>;
|
|
2788
|
+
throttled_until?: Duration;
|
|
2789
|
+
/** This field should always be equal to zero in a `_reindex` response.
|
|
2790
|
+
* It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to `requests_per_second`. */
|
|
2791
|
+
throttled_until_millis: DurationValue<UnitMillis>;
|
|
2792
|
+
/** The number of documents that were successfully processed. */
|
|
2793
|
+
total: long;
|
|
2794
|
+
/** The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it. */
|
|
2795
|
+
updated?: long;
|
|
2796
|
+
/** The number of version conflicts that reindex hits. */
|
|
2797
|
+
version_conflicts: long;
|
|
2798
|
+
/** The reason for cancellation if the slice was canceled */
|
|
2799
|
+
cancelled?: string;
|
|
2800
|
+
}
|
|
2769
2801
|
export interface ReindexRethrottleParentReindexTask extends ReindexRethrottleReindexTask {
|
|
2770
2802
|
children?: ReindexRethrottleReindexTask[];
|
|
2771
2803
|
}
|
|
@@ -2781,7 +2813,7 @@ export interface ReindexRethrottleReindexTask {
|
|
|
2781
2813
|
node: Name;
|
|
2782
2814
|
running_time_in_nanos: DurationValue<UnitNanos>;
|
|
2783
2815
|
start_time_in_millis: EpochTime<UnitMillis>;
|
|
2784
|
-
status:
|
|
2816
|
+
status: ReindexRethrottleParentReindexStatus;
|
|
2785
2817
|
type: string;
|
|
2786
2818
|
headers: HttpHeaders;
|
|
2787
2819
|
}
|
|
@@ -3685,7 +3717,8 @@ export interface SearchInnerHits {
|
|
|
3685
3717
|
ignore_unmapped?: boolean;
|
|
3686
3718
|
script_fields?: Record<Field, ScriptField>;
|
|
3687
3719
|
seq_no_primary_term?: boolean;
|
|
3688
|
-
|
|
3720
|
+
field?: Field[];
|
|
3721
|
+
fields?: (QueryDslFieldAndFormat | Field)[];
|
|
3689
3722
|
/** How the inner hits should be sorted per `inner_hits`.
|
|
3690
3723
|
* By default, inner hits are sorted by score. */
|
|
3691
3724
|
sort?: Sort;
|
|
@@ -5340,6 +5373,11 @@ export interface ElasticsearchVersionMinInfo {
|
|
|
5340
5373
|
minimum_wire_compatibility_version: VersionString;
|
|
5341
5374
|
number: string;
|
|
5342
5375
|
}
|
|
5376
|
+
export interface Embedding {
|
|
5377
|
+
inference_id?: string;
|
|
5378
|
+
input: KnnEmbeddingInput;
|
|
5379
|
+
timeout?: Duration;
|
|
5380
|
+
}
|
|
5343
5381
|
export interface EmptyObject {
|
|
5344
5382
|
}
|
|
5345
5383
|
export type EpochTime<Unit = unknown> = Unit;
|
|
@@ -5504,6 +5542,15 @@ export interface IndicesOptions {
|
|
|
5504
5542
|
export interface IndicesResponseBase extends AcknowledgedResponseBase {
|
|
5505
5543
|
_shards?: ShardStatistics;
|
|
5506
5544
|
}
|
|
5545
|
+
export interface InferenceString {
|
|
5546
|
+
/** The type of data that the value represents. */
|
|
5547
|
+
type: InferenceEmbeddingContentType;
|
|
5548
|
+
/** The format of the data. If null, the default data format for the given type is used. */
|
|
5549
|
+
format?: InferenceEmbeddingContentFormat | null;
|
|
5550
|
+
/** String which may be raw text, or the string representation of some other data such as an image in base64. */
|
|
5551
|
+
value: string;
|
|
5552
|
+
}
|
|
5553
|
+
export type InferenceStringGroup = InferenceString | InferenceString[];
|
|
5507
5554
|
export interface InlineGetKeys<TDocument = unknown> {
|
|
5508
5555
|
fields?: Record<string, any>;
|
|
5509
5556
|
found: boolean;
|
|
@@ -5521,6 +5568,7 @@ export interface InnerRetriever {
|
|
|
5521
5568
|
normalizer: ScoreNormalizer;
|
|
5522
5569
|
}
|
|
5523
5570
|
export type Ip = string;
|
|
5571
|
+
export type KnnEmbeddingInput = string | InferenceStringGroup;
|
|
5524
5572
|
export interface KnnQuery extends QueryDslQueryBase {
|
|
5525
5573
|
/** The name of the vector field to search against */
|
|
5526
5574
|
field: Field;
|
|
@@ -5726,6 +5774,7 @@ export interface QueryCacheStats {
|
|
|
5726
5774
|
}
|
|
5727
5775
|
export type QueryVector = float[];
|
|
5728
5776
|
interface QueryVectorBuilderExclusiveProps {
|
|
5777
|
+
embedding?: Embedding;
|
|
5729
5778
|
text_embedding?: TextEmbedding;
|
|
5730
5779
|
/** Lookup a vector from an existing document.
|
|
5731
5780
|
* Must reference a dense_vector field and a single value. */
|
|
@@ -6505,7 +6554,7 @@ export interface AggregationsAutoDateHistogramAggregation extends AggregationsBu
|
|
|
6505
6554
|
format?: string;
|
|
6506
6555
|
/** The minimum rounding interval.
|
|
6507
6556
|
* This can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than `minimum_interval`. */
|
|
6508
|
-
minimum_interval?: AggregationsMinimumInterval;
|
|
6557
|
+
minimum_interval?: AggregationsMinimumInterval | null;
|
|
6509
6558
|
/** The value to apply to documents that do not have a value.
|
|
6510
6559
|
* By default, documents without a value are ignored. */
|
|
6511
6560
|
missing?: DateTime;
|
|
@@ -9220,6 +9269,13 @@ export interface MappingDenseVectorIndexOptions {
|
|
|
9220
9269
|
* @remarks This property is not supported on Elastic Cloud Serverless.
|
|
9221
9270
|
* @experimental */
|
|
9222
9271
|
on_disk_rescore?: boolean;
|
|
9272
|
+
/** The segment document count threshold below which HNSW graph construction is skipped in favor of brute-force flat
|
|
9273
|
+
* search. `-1` (default) defers to format defaults: `300` for `bbq_hnsw`, `150` for `hnsw`, `int8_hnsw`, and
|
|
9274
|
+
* `int4_hnsw`. `0` always builds the graph. A positive value overrides the format default.
|
|
9275
|
+
*
|
|
9276
|
+
* Only applicable to `hnsw`, `int8_hnsw`, `int4_hnsw`, and `bbq_hnsw` index types.
|
|
9277
|
+
* @remarks This property is not supported on Elastic Cloud Serverless. */
|
|
9278
|
+
flat_index_threshold?: integer;
|
|
9223
9279
|
}
|
|
9224
9280
|
export interface MappingDenseVectorIndexOptionsRescoreVector {
|
|
9225
9281
|
/** The oversampling factor to use when searching for the nearest neighbor. This is only applicable to the quantized formats: `bbq_*`, `int4_*`, and `int8_*`.
|
|
@@ -18411,6 +18467,7 @@ export interface ClusterStatsCharFilterTypes {
|
|
|
18411
18467
|
built_in_tokenizers: ClusterStatsFieldTypes[];
|
|
18412
18468
|
/** Contains statistics about character filter types used in selected nodes. */
|
|
18413
18469
|
char_filter_types: ClusterStatsFieldTypes[];
|
|
18470
|
+
multiple_synonym_graph_filters?: ClusterStatsMultipleSynonymGraphFilter;
|
|
18414
18471
|
/** Contains statistics about token filter types used in selected nodes. */
|
|
18415
18472
|
filter_types: ClusterStatsFieldTypes[];
|
|
18416
18473
|
/** Contains statistics about tokenizer types used in selected nodes. */
|
|
@@ -18746,6 +18803,12 @@ export interface ClusterStatsIndicesVersions {
|
|
|
18746
18803
|
total_primary_size?: ByteSize;
|
|
18747
18804
|
version: VersionString;
|
|
18748
18805
|
}
|
|
18806
|
+
export interface ClusterStatsMultipleSynonymGraphFilter {
|
|
18807
|
+
/** Number of analyzers across the cluster whose filter chain contains more than one synonym_graph filter. */
|
|
18808
|
+
analyzer_count?: integer;
|
|
18809
|
+
/** Number of indices that contain at least one analyzer with more than one synonym_graph filter. */
|
|
18810
|
+
index_count?: integer;
|
|
18811
|
+
}
|
|
18749
18812
|
export interface ClusterStatsNodePackagingType {
|
|
18750
18813
|
/** Number of selected nodes using the distribution flavor and file type. */
|
|
18751
18814
|
count: integer;
|
|
@@ -20757,7 +20820,7 @@ export interface EsqlAsyncQueryStopRequest extends RequestBase {
|
|
|
20757
20820
|
export type EsqlAsyncQueryStopResponse = EsqlEsqlResult;
|
|
20758
20821
|
export interface EsqlDeleteViewRequest extends RequestBase {
|
|
20759
20822
|
/** The view name to remove. */
|
|
20760
|
-
name:
|
|
20823
|
+
name: Ids;
|
|
20761
20824
|
/** All values in `body` will be added to the request body. */
|
|
20762
20825
|
body?: string | ({
|
|
20763
20826
|
[key: string]: any;
|
|
@@ -22105,6 +22168,10 @@ export interface IndicesDataStreamLifecycle {
|
|
|
22105
22168
|
* Any time after this duration the document could be deleted.
|
|
22106
22169
|
* When empty, every document in this data stream will be stored indefinitely. */
|
|
22107
22170
|
data_retention?: Duration;
|
|
22171
|
+
/** The least amount of time data should be kept by elasticsearch. */
|
|
22172
|
+
effective_retention?: Duration;
|
|
22173
|
+
/** Configuration source that can influence the retention of a data stream. */
|
|
22174
|
+
retention_determined_by?: IndicesRetentionSource;
|
|
22108
22175
|
/** The list of downsampling rounds to execute as part of this downsampling configuration */
|
|
22109
22176
|
downsampling?: IndicesDownsamplingRound[];
|
|
22110
22177
|
/** The method used to downsample the data. There are two options `aggregate` and `last_value`. It requires
|
|
@@ -22559,6 +22626,7 @@ export interface IndicesQueries {
|
|
|
22559
22626
|
export interface IndicesRetentionLease {
|
|
22560
22627
|
period: Duration;
|
|
22561
22628
|
}
|
|
22629
|
+
export type IndicesRetentionSource = 'data_stream_configuration' | 'default_global_retention' | 'max_global_retention' | 'default_failures_retention';
|
|
22562
22630
|
export type IndicesSamplingMethod = 'aggregate' | 'last_value';
|
|
22563
22631
|
export interface IndicesSearchIdle {
|
|
22564
22632
|
after?: Duration;
|
|
@@ -24068,6 +24136,11 @@ export interface IndicesGetDataLifecycleRequest extends RequestBase {
|
|
|
24068
24136
|
}
|
|
24069
24137
|
export interface IndicesGetDataLifecycleResponse {
|
|
24070
24138
|
data_streams: IndicesGetDataLifecycleDataStreamWithLifecycle[];
|
|
24139
|
+
global_retention: IndicesGetDataLifecycleGlobalRetention;
|
|
24140
|
+
}
|
|
24141
|
+
export interface IndicesGetDataLifecycleGlobalRetention {
|
|
24142
|
+
max_retention?: Duration;
|
|
24143
|
+
default_retention?: Duration;
|
|
24071
24144
|
}
|
|
24072
24145
|
export interface IndicesGetDataLifecycleStatsDataStreamStats {
|
|
24073
24146
|
/** The count of the backing indices for the data stream. */
|
|
@@ -33488,6 +33561,7 @@ export interface MlTrainedModelDeploymentNodesStats {
|
|
|
33488
33561
|
average_inference_time_ms_last_minute?: DurationValue<UnitFloatMillis>;
|
|
33489
33562
|
/** The average time for each inference call to complete on this node, excluding cache */
|
|
33490
33563
|
average_inference_time_ms_excluding_cache_hits?: DurationValue<UnitFloatMillis>;
|
|
33564
|
+
average_inference_process_memory_rss_bytes?: ByteSize;
|
|
33491
33565
|
/** The number of errors when evaluating the trained model. */
|
|
33492
33566
|
error_count?: integer;
|
|
33493
33567
|
/** The total number of inference calls made against this node for this model. */
|
|
@@ -47973,6 +48047,8 @@ export interface XpackUsageWatcherWatchTriggerSchedule extends XpackUsageCounter
|
|
|
47973
48047
|
cron: XpackUsageCounter;
|
|
47974
48048
|
_all: XpackUsageCounter;
|
|
47975
48049
|
}
|
|
48050
|
+
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
|
|
48051
|
+
}
|
|
47976
48052
|
export interface SpecUtilsAdditionalProperties<TKey = unknown, TValue = unknown> {
|
|
47977
48053
|
}
|
|
47978
48054
|
export interface SpecUtilsAdditionalProperty<TKey = unknown, TValue = unknown> {
|
|
@@ -47994,8 +48070,6 @@ export interface SpecUtilsCommonQueryParameters {
|
|
|
47994
48070
|
* this option for debugging only. */
|
|
47995
48071
|
pretty?: boolean;
|
|
47996
48072
|
}
|
|
47997
|
-
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
|
|
47998
|
-
}
|
|
47999
48073
|
export interface SpecUtilsCommonCatQueryParameters {
|
|
48000
48074
|
/** Specifies the format to return the columnar data in, can be set to
|
|
48001
48075
|
* `text`, `json`, `cbor`, `yaml`, or `smile`. */
|
package/lib/version.generated.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.transportVersion = exports.clientVersion = void 0;
|
|
10
|
-
exports.clientVersion = '9.4.
|
|
10
|
+
exports.clientVersion = '9.4.2';
|
|
11
11
|
exports.transportVersion = '9.3.6';
|
|
12
12
|
//# sourceMappingURL=version.generated.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/elasticsearch",
|
|
3
|
-
"version": "9.4.
|
|
4
|
-
"versionCanary": "9.4.
|
|
3
|
+
"version": "9.4.2",
|
|
4
|
+
"versionCanary": "9.4.2-canary.0",
|
|
5
5
|
"description": "The official Elasticsearch client for Node.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test:coverage-report": "npm run build && tap --coverage && nyc report --reporter=text-lcov > coverage.lcov",
|
|
35
35
|
"test:coverage-ui": "npm run build && tap --coverage --coverage-report=html",
|
|
36
36
|
"test:integration-build": "npm run build && node test/integration/index.js",
|
|
37
|
-
"test:integration": "npm run test:integration-build && env tap run --jobs=1 --reporter=junit --reporter-file=report-junit.xml generated-tests/",
|
|
37
|
+
"test:integration": "npm run test:integration-build && env tap run --jobs=1 --allow-empty-coverage --allow-incomplete-coverage --reporter=junit --reporter-file=report-junit.xml generated-tests/",
|
|
38
38
|
"lint": "eslint",
|
|
39
39
|
"lint:fix": "eslint . --fix ",
|
|
40
40
|
"license-checker": "license-checker --production --onlyAllow='MIT;Apache-2.0;Apache1.1;ISC;BSD-3-Clause;BSD-2-Clause;0BSD'",
|