@elastic/elasticsearch 7.12.0 → 7.13.0
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/api/api/cat.js +91 -91
- package/api/api/features.js +23 -1
- package/api/api/fleet.js +65 -0
- package/api/api/indices.js +246 -246
- package/api/api/ingest.js +23 -1
- package/api/api/ml.js +141 -11
- package/api/api/nodes.js +2 -2
- package/api/api/searchable_snapshots.js +29 -2
- package/api/api/security.js +210 -0
- package/api/api/shutdown.js +124 -0
- package/api/api/snapshot.js +2 -2
- package/api/api/text_structure.js +1 -1
- package/api/index.js +153 -131
- package/api/new.d.ts +1498 -0
- package/api/requestParams.d.ts +105 -5
- package/api/types.d.ts +13881 -0
- package/free-report-junit.xml +3406 -9
- package/index.d.ts +179 -37
- package/index.js +5 -13
- package/lib/Connection.js +2 -2
- package/lib/Helpers.js +11 -11
- package/lib/Serializer.d.ts +5 -0
- package/lib/Serializer.js +10 -1
- package/lib/Transport.d.ts +1 -1
- package/lib/Transport.js +2 -2
- package/lib/errors.js +14 -1
- package/package.json +16 -16
package/api/requestParams.d.ts
CHANGED
|
@@ -280,6 +280,7 @@ export interface CatNodes extends Generic {
|
|
|
280
280
|
s?: string | string[];
|
|
281
281
|
time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
|
|
282
282
|
v?: boolean;
|
|
283
|
+
include_unloaded_segments?: boolean;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
export interface CatPendingTasks extends Generic {
|
|
@@ -566,8 +567,8 @@ export interface ClusterReroute<T = RequestBody> extends Generic {
|
|
|
566
567
|
}
|
|
567
568
|
|
|
568
569
|
export interface ClusterState extends Generic {
|
|
569
|
-
metric?: string | string[];
|
|
570
570
|
index?: string | string[];
|
|
571
|
+
metric?: string | string[];
|
|
571
572
|
local?: boolean;
|
|
572
573
|
master_timeout?: string;
|
|
573
574
|
flat_settings?: boolean;
|
|
@@ -804,6 +805,9 @@ export interface FeaturesGetFeatures extends Generic {
|
|
|
804
805
|
master_timeout?: string;
|
|
805
806
|
}
|
|
806
807
|
|
|
808
|
+
export interface FeaturesResetFeatures extends Generic {
|
|
809
|
+
}
|
|
810
|
+
|
|
807
811
|
export interface FieldCaps<T = RequestBody> extends Generic {
|
|
808
812
|
index?: string | string[];
|
|
809
813
|
fields?: string | string[];
|
|
@@ -814,6 +818,14 @@ export interface FieldCaps<T = RequestBody> extends Generic {
|
|
|
814
818
|
body?: T;
|
|
815
819
|
}
|
|
816
820
|
|
|
821
|
+
export interface FleetGlobalCheckpoints extends Generic {
|
|
822
|
+
index: string;
|
|
823
|
+
wait_for_advance?: boolean;
|
|
824
|
+
wait_for_index?: boolean;
|
|
825
|
+
checkpoints?: string | string[];
|
|
826
|
+
timeout?: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
817
829
|
export interface Get extends Generic {
|
|
818
830
|
id: string;
|
|
819
831
|
index: string;
|
|
@@ -1406,8 +1418,12 @@ export interface IngestDeletePipeline extends Generic {
|
|
|
1406
1418
|
timeout?: string;
|
|
1407
1419
|
}
|
|
1408
1420
|
|
|
1421
|
+
export interface IngestGeoIpStats extends Generic {
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1409
1424
|
export interface IngestGetPipeline extends Generic {
|
|
1410
1425
|
id?: string;
|
|
1426
|
+
summary?: boolean;
|
|
1411
1427
|
master_timeout?: string;
|
|
1412
1428
|
}
|
|
1413
1429
|
|
|
@@ -1555,6 +1571,11 @@ export interface MlDeleteTrainedModel extends Generic {
|
|
|
1555
1571
|
model_id: string;
|
|
1556
1572
|
}
|
|
1557
1573
|
|
|
1574
|
+
export interface MlDeleteTrainedModelAlias extends Generic {
|
|
1575
|
+
model_alias: string;
|
|
1576
|
+
model_id: string;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1558
1579
|
export interface MlEstimateModelMemory<T = RequestBody> extends Generic {
|
|
1559
1580
|
body: T;
|
|
1560
1581
|
}
|
|
@@ -1568,6 +1589,24 @@ export interface MlExplainDataFrameAnalytics<T = RequestBody> extends Generic {
|
|
|
1568
1589
|
body?: T;
|
|
1569
1590
|
}
|
|
1570
1591
|
|
|
1592
|
+
export interface MlFindFileStructure<T = RequestNDBody> extends Generic {
|
|
1593
|
+
lines_to_sample?: number;
|
|
1594
|
+
line_merge_size_limit?: number;
|
|
1595
|
+
timeout?: string;
|
|
1596
|
+
charset?: string;
|
|
1597
|
+
format?: 'ndjson' | 'xml' | 'delimited' | 'semi_structured_text';
|
|
1598
|
+
has_header_row?: boolean;
|
|
1599
|
+
column_names?: string | string[];
|
|
1600
|
+
delimiter?: string;
|
|
1601
|
+
quote?: string;
|
|
1602
|
+
should_trim_fields?: boolean;
|
|
1603
|
+
grok_pattern?: string;
|
|
1604
|
+
timestamp_field?: string;
|
|
1605
|
+
timestamp_format?: string;
|
|
1606
|
+
explain?: boolean;
|
|
1607
|
+
body: T;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1571
1610
|
export interface MlFlushJob<T = RequestBody> extends Generic {
|
|
1572
1611
|
job_id: string;
|
|
1573
1612
|
calc_interim?: boolean;
|
|
@@ -1755,15 +1794,21 @@ export interface MlPostCalendarEvents<T = RequestBody> extends Generic {
|
|
|
1755
1794
|
body: T;
|
|
1756
1795
|
}
|
|
1757
1796
|
|
|
1758
|
-
export interface MlPostData<T =
|
|
1797
|
+
export interface MlPostData<T = RequestNDBody> extends Generic {
|
|
1759
1798
|
job_id: string;
|
|
1760
1799
|
reset_start?: string;
|
|
1761
1800
|
reset_end?: string;
|
|
1762
1801
|
body: T;
|
|
1763
1802
|
}
|
|
1764
1803
|
|
|
1765
|
-
export interface
|
|
1766
|
-
|
|
1804
|
+
export interface MlPreviewDataFrameAnalytics<T = RequestBody> extends Generic {
|
|
1805
|
+
id?: string;
|
|
1806
|
+
body?: T;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
export interface MlPreviewDatafeed<T = RequestBody> extends Generic {
|
|
1810
|
+
datafeed_id?: string;
|
|
1811
|
+
body?: T;
|
|
1767
1812
|
}
|
|
1768
1813
|
|
|
1769
1814
|
export interface MlPutCalendar<T = RequestBody> extends Generic {
|
|
@@ -1805,6 +1850,12 @@ export interface MlPutTrainedModel<T = RequestBody> extends Generic {
|
|
|
1805
1850
|
body: T;
|
|
1806
1851
|
}
|
|
1807
1852
|
|
|
1853
|
+
export interface MlPutTrainedModelAlias extends Generic {
|
|
1854
|
+
model_alias: string;
|
|
1855
|
+
model_id: string;
|
|
1856
|
+
reassign?: boolean;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1808
1859
|
export interface MlRevertModelSnapshot<T = RequestBody> extends Generic {
|
|
1809
1860
|
job_id: string;
|
|
1810
1861
|
snapshot_id: string;
|
|
@@ -1978,6 +2029,7 @@ export interface NodesStats extends Generic {
|
|
|
1978
2029
|
types?: string | string[];
|
|
1979
2030
|
timeout?: string;
|
|
1980
2031
|
include_segment_file_sizes?: boolean;
|
|
2032
|
+
include_unloaded_segments?: boolean;
|
|
1981
2033
|
}
|
|
1982
2034
|
|
|
1983
2035
|
export interface NodesUsage extends Generic {
|
|
@@ -2173,6 +2225,10 @@ export interface SearchTemplate<T = RequestBody> extends Generic {
|
|
|
2173
2225
|
body: T;
|
|
2174
2226
|
}
|
|
2175
2227
|
|
|
2228
|
+
export interface SearchableSnapshotsCacheStats extends Generic {
|
|
2229
|
+
node_id?: string | string[];
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2176
2232
|
export interface SearchableSnapshotsClearCache extends Generic {
|
|
2177
2233
|
index?: string | string[];
|
|
2178
2234
|
ignore_unavailable?: boolean;
|
|
@@ -2224,11 +2280,24 @@ export interface SecurityClearCachedRoles extends Generic {
|
|
|
2224
2280
|
name: string | string[];
|
|
2225
2281
|
}
|
|
2226
2282
|
|
|
2283
|
+
export interface SecurityClearCachedServiceTokens extends Generic {
|
|
2284
|
+
namespace: string;
|
|
2285
|
+
service: string;
|
|
2286
|
+
name: string | string[];
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2227
2289
|
export interface SecurityCreateApiKey<T = RequestBody> extends Generic {
|
|
2228
2290
|
refresh?: 'wait_for' | boolean;
|
|
2229
2291
|
body: T;
|
|
2230
2292
|
}
|
|
2231
2293
|
|
|
2294
|
+
export interface SecurityCreateServiceToken extends Generic {
|
|
2295
|
+
namespace: string;
|
|
2296
|
+
service: string;
|
|
2297
|
+
name?: string;
|
|
2298
|
+
refresh?: 'wait_for' | boolean;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2232
2301
|
export interface SecurityDeletePrivileges extends Generic {
|
|
2233
2302
|
application: string;
|
|
2234
2303
|
name: string;
|
|
@@ -2245,6 +2314,13 @@ export interface SecurityDeleteRoleMapping extends Generic {
|
|
|
2245
2314
|
refresh?: 'wait_for' | boolean;
|
|
2246
2315
|
}
|
|
2247
2316
|
|
|
2317
|
+
export interface SecurityDeleteServiceToken extends Generic {
|
|
2318
|
+
namespace: string;
|
|
2319
|
+
service: string;
|
|
2320
|
+
name: string;
|
|
2321
|
+
refresh?: 'wait_for' | boolean;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2248
2324
|
export interface SecurityDeleteUser extends Generic {
|
|
2249
2325
|
username: string;
|
|
2250
2326
|
refresh?: 'wait_for' | boolean;
|
|
@@ -2284,6 +2360,16 @@ export interface SecurityGetRoleMapping extends Generic {
|
|
|
2284
2360
|
name?: string | string[];
|
|
2285
2361
|
}
|
|
2286
2362
|
|
|
2363
|
+
export interface SecurityGetServiceAccounts extends Generic {
|
|
2364
|
+
namespace?: string;
|
|
2365
|
+
service?: string;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
export interface SecurityGetServiceCredentials extends Generic {
|
|
2369
|
+
namespace: string;
|
|
2370
|
+
service: string;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2287
2373
|
export interface SecurityGetToken<T = RequestBody> extends Generic {
|
|
2288
2374
|
body: T;
|
|
2289
2375
|
}
|
|
@@ -2336,6 +2422,19 @@ export interface SecurityPutUser<T = RequestBody> extends Generic {
|
|
|
2336
2422
|
body: T;
|
|
2337
2423
|
}
|
|
2338
2424
|
|
|
2425
|
+
export interface ShutdownDeleteNode extends Generic {
|
|
2426
|
+
node_id: string;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
export interface ShutdownGetNode extends Generic {
|
|
2430
|
+
node_id?: string;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
export interface ShutdownPutNode<T = RequestBody> extends Generic {
|
|
2434
|
+
node_id: string;
|
|
2435
|
+
body: T;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2339
2438
|
export interface SlmDeleteLifecycle extends Generic {
|
|
2340
2439
|
policy_id: string;
|
|
2341
2440
|
}
|
|
@@ -2415,6 +2514,7 @@ export interface SnapshotGet extends Generic {
|
|
|
2415
2514
|
snapshot: string | string[];
|
|
2416
2515
|
master_timeout?: string;
|
|
2417
2516
|
ignore_unavailable?: boolean;
|
|
2517
|
+
index_details?: boolean;
|
|
2418
2518
|
verbose?: boolean;
|
|
2419
2519
|
}
|
|
2420
2520
|
|
|
@@ -2503,7 +2603,7 @@ export interface Termvectors<T = RequestBody> extends Generic {
|
|
|
2503
2603
|
body?: T;
|
|
2504
2604
|
}
|
|
2505
2605
|
|
|
2506
|
-
export interface TextStructureFindStructure<T =
|
|
2606
|
+
export interface TextStructureFindStructure<T = RequestNDBody> extends Generic {
|
|
2507
2607
|
lines_to_sample?: number;
|
|
2508
2608
|
line_merge_size_limit?: number;
|
|
2509
2609
|
timeout?: string;
|