@opensearch-project/opensearch 1.1.0 → 2.0.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.
Files changed (86) hide show
  1. package/.eslintignore +2 -0
  2. package/.eslintrc.json +26 -0
  3. package/.prettierrc.json +5 -0
  4. package/.whitesource +15 -0
  5. package/ADMINS.md +18 -11
  6. package/COMPATIBILITY.md +24 -0
  7. package/DEVELOPER_GUIDE.md +22 -5
  8. package/MAINTAINERS.md +23 -18
  9. package/README.md +100 -101
  10. package/RELEASING.md +3 -3
  11. package/SECURITY.md +1 -1
  12. package/api/api/bulk.js +53 -26
  13. package/api/api/cat.js +354 -264
  14. package/api/api/clear_scroll.js +17 -17
  15. package/api/api/cluster.js +366 -219
  16. package/api/api/count.js +55 -24
  17. package/api/api/create.js +50 -24
  18. package/api/api/dangling_indices.js +95 -51
  19. package/api/api/delete.js +49 -22
  20. package/api/api/delete_by_query.js +88 -25
  21. package/api/api/delete_by_query_rethrottle.js +33 -19
  22. package/api/api/delete_script.js +31 -17
  23. package/api/api/exists.js +55 -22
  24. package/api/api/exists_source.js +60 -27
  25. package/api/api/explain.js +60 -22
  26. package/api/api/features.js +56 -35
  27. package/api/api/field_caps.js +36 -18
  28. package/api/api/get.js +55 -22
  29. package/api/api/get_script.js +30 -17
  30. package/api/api/get_script_context.js +15 -15
  31. package/api/api/get_script_languages.js +15 -15
  32. package/api/api/get_source.js +55 -22
  33. package/api/api/index.js +60 -28
  34. package/api/api/indices.js +1068 -857
  35. package/api/api/info.js +15 -15
  36. package/api/api/ingest.js +132 -96
  37. package/api/api/mget.js +50 -26
  38. package/api/api/msearch.js +49 -26
  39. package/api/api/msearch_template.js +53 -26
  40. package/api/api/mtermvectors.js +48 -24
  41. package/api/api/nodes.js +281 -154
  42. package/api/api/ping.js +15 -15
  43. package/api/api/put_script.js +40 -25
  44. package/api/api/rank_eval.js +37 -20
  45. package/api/api/reindex.js +38 -17
  46. package/api/api/reindex_rethrottle.js +32 -19
  47. package/api/api/render_search_template.js +18 -18
  48. package/api/api/scripts_painless_execute.js +15 -15
  49. package/api/api/scroll.js +31 -17
  50. package/api/api/search.js +108 -24
  51. package/api/api/search_shards.js +36 -18
  52. package/api/api/search_template.js +64 -26
  53. package/api/api/shutdown.js +66 -54
  54. package/api/api/snapshot.js +347 -224
  55. package/api/api/tasks.js +65 -46
  56. package/api/api/terms_enum.js +17 -17
  57. package/api/api/termvectors.js +57 -26
  58. package/api/api/update.js +64 -24
  59. package/api/api/update_by_query.js +89 -23
  60. package/api/api/update_by_query_rethrottle.js +33 -19
  61. package/api/index.js +267 -179
  62. package/api/new.d.ts +2042 -529
  63. package/api/opensearch_dashboards.d.ts +239 -236
  64. package/api/requestParams.d.ts +301 -69
  65. package/api/types.d.ts +6204 -5719
  66. package/api/utils.js +22 -22
  67. package/codecov.yml +2 -2
  68. package/index.d.ts +4776 -935
  69. package/index.js +152 -140
  70. package/index.mjs +9 -9
  71. package/lib/Connection.d.ts +37 -26
  72. package/lib/Connection.js +163 -168
  73. package/lib/Helpers.d.ts +103 -64
  74. package/lib/Helpers.js +398 -371
  75. package/lib/Serializer.d.ts +2 -2
  76. package/lib/Serializer.js +39 -39
  77. package/lib/Transport.d.ts +30 -12
  78. package/lib/Transport.js +375 -336
  79. package/lib/errors.d.ts +25 -7
  80. package/lib/errors.js +75 -71
  81. package/lib/pool/BaseConnectionPool.js +100 -97
  82. package/lib/pool/CloudConnectionPool.js +16 -16
  83. package/lib/pool/ConnectionPool.js +105 -105
  84. package/lib/pool/index.d.ts +8 -6
  85. package/lib/pool/index.js +6 -6
  86. package/package.json +13 -8
@@ -28,7 +28,7 @@
28
28
  * under the License.
29
29
  */
30
30
 
31
- import { RequestBody, RequestNDBody } from '../lib/Transport'
31
+ import { RequestBody, RequestNDBody } from '../lib/Transport';
32
32
 
33
33
  export interface Generic {
34
34
  method?: string;
@@ -40,7 +40,6 @@ export interface Generic {
40
40
  }
41
41
  export interface Bulk<T = RequestNDBody> extends Generic {
42
42
  index?: string;
43
- type?: string;
44
43
  _source_exclude?: string | string[];
45
44
  _source_include?: string | string[];
46
45
  wait_for_active_shards?: string;
@@ -71,6 +70,10 @@ export interface CatAllocation extends Generic {
71
70
  format?: string;
72
71
  bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
73
72
  local?: boolean;
73
+ cluster_manager_timeout?: string;
74
+ /**
75
+ * @deprecated use cluster_manager_timeout instead
76
+ */
74
77
  master_timeout?: string;
75
78
  h?: string | string[];
76
79
  help?: boolean;
@@ -117,6 +120,10 @@ export interface CatIndices extends Generic {
117
120
  format?: string;
118
121
  bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
119
122
  local?: boolean;
123
+ cluster_manager_timeout?: string;
124
+ /**
125
+ * @deprecated use cluster_manager_timeout instead
126
+ */
120
127
  master_timeout?: string;
121
128
  h?: string | string[];
122
129
  health?: 'green' | 'yellow' | 'red';
@@ -129,9 +136,27 @@ export interface CatIndices extends Generic {
129
136
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
130
137
  }
131
138
 
139
+ export interface CatClusterManager extends Generic {
140
+ format?: string;
141
+ local?: boolean;
142
+ cluster_manager_timeout?: string;
143
+ h?: string | string[];
144
+ help?: boolean;
145
+ s?: string | string[];
146
+ v?: boolean;
147
+ }
148
+
149
+ /**
150
+ * // TODO: delete CatMaster interface when it is removed from OpenSearch
151
+ * @deprecated use CatClusterManager instead
152
+ */
132
153
  export interface CatMaster extends Generic {
133
154
  format?: string;
134
155
  local?: boolean;
156
+ cluster_manager_timeout?: string;
157
+ /**
158
+ * @deprecated use cluster_manager_timeout instead
159
+ */
135
160
  master_timeout?: string;
136
161
  h?: string | string[];
137
162
  help?: boolean;
@@ -142,6 +167,10 @@ export interface CatMaster extends Generic {
142
167
  export interface CatNodeattrs extends Generic {
143
168
  format?: string;
144
169
  local?: boolean;
170
+ cluster_manager_timeout?: string;
171
+ /**
172
+ * @deprecated use cluster_manager_timeout instead
173
+ */
145
174
  master_timeout?: string;
146
175
  h?: string | string[];
147
176
  help?: boolean;
@@ -154,6 +183,10 @@ export interface CatNodes extends Generic {
154
183
  format?: string;
155
184
  full_id?: boolean;
156
185
  local?: boolean;
186
+ cluster_manager_timeout?: string;
187
+ /**
188
+ * @deprecated use cluster_manager_timeout instead
189
+ */
157
190
  master_timeout?: string;
158
191
  h?: string | string[];
159
192
  help?: boolean;
@@ -166,6 +199,10 @@ export interface CatNodes extends Generic {
166
199
  export interface CatPendingTasks extends Generic {
167
200
  format?: string;
168
201
  local?: boolean;
202
+ cluster_manager_timeout?: string;
203
+ /**
204
+ * @deprecated use cluster_manager_timeout instead
205
+ */
169
206
  master_timeout?: string;
170
207
  h?: string | string[];
171
208
  help?: boolean;
@@ -177,6 +214,10 @@ export interface CatPendingTasks extends Generic {
177
214
  export interface CatPlugins extends Generic {
178
215
  format?: string;
179
216
  local?: boolean;
217
+ cluster_manager_timeout?: string;
218
+ /**
219
+ * @deprecated use cluster_manager_timeout instead
220
+ */
180
221
  master_timeout?: string;
181
222
  h?: string | string[];
182
223
  help?: boolean;
@@ -201,6 +242,10 @@ export interface CatRecovery extends Generic {
201
242
  export interface CatRepositories extends Generic {
202
243
  format?: string;
203
244
  local?: boolean;
245
+ cluster_manager_timeout?: string;
246
+ /**
247
+ * @deprecated use cluster_manager_timeout instead
248
+ */
204
249
  master_timeout?: string;
205
250
  h?: string | string[];
206
251
  help?: boolean;
@@ -223,6 +268,10 @@ export interface CatShards extends Generic {
223
268
  format?: string;
224
269
  bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
225
270
  local?: boolean;
271
+ cluster_manager_timeout?: string;
272
+ /**
273
+ * @deprecated use cluster_manager_timeout instead
274
+ */
226
275
  master_timeout?: string;
227
276
  h?: string | string[];
228
277
  help?: boolean;
@@ -235,6 +284,10 @@ export interface CatSnapshots extends Generic {
235
284
  repository?: string | string[];
236
285
  format?: string;
237
286
  ignore_unavailable?: boolean;
287
+ cluster_manager_timeout?: string;
288
+ /**
289
+ * @deprecated use cluster_manager_timeout instead
290
+ */
238
291
  master_timeout?: string;
239
292
  h?: string | string[];
240
293
  help?: boolean;
@@ -260,6 +313,10 @@ export interface CatTemplates extends Generic {
260
313
  name?: string;
261
314
  format?: string;
262
315
  local?: boolean;
316
+ cluster_manager_timeout?: string;
317
+ /**
318
+ * @deprecated use cluster_manager_timeout instead
319
+ */
263
320
  master_timeout?: string;
264
321
  h?: string | string[];
265
322
  help?: boolean;
@@ -272,6 +329,10 @@ export interface CatThreadPool extends Generic {
272
329
  format?: string;
273
330
  size?: '' | 'k' | 'm' | 'g' | 't' | 'p';
274
331
  local?: boolean;
332
+ cluster_manager_timeout?: string;
333
+ /**
334
+ * @deprecated use cluster_manager_timeout instead
335
+ */
275
336
  master_timeout?: string;
276
337
  h?: string | string[];
277
338
  help?: boolean;
@@ -293,6 +354,10 @@ export interface ClusterAllocationExplain<T = RequestBody> extends Generic {
293
354
  export interface ClusterDeleteComponentTemplate extends Generic {
294
355
  name: string;
295
356
  timeout?: string;
357
+ cluster_manager_timeout?: string;
358
+ /**
359
+ * @deprecated use cluster_manager_timeout instead
360
+ */
296
361
  master_timeout?: string;
297
362
  }
298
363
 
@@ -302,18 +367,30 @@ export interface ClusterDeleteVotingConfigExclusions extends Generic {
302
367
 
303
368
  export interface ClusterExistsComponentTemplate extends Generic {
304
369
  name: string;
370
+ cluster_manager_timeout?: string;
371
+ /**
372
+ * @deprecated use cluster_manager_timeout instead
373
+ */
305
374
  master_timeout?: string;
306
375
  local?: boolean;
307
376
  }
308
377
 
309
378
  export interface ClusterGetComponentTemplate extends Generic {
310
379
  name?: string | string[];
380
+ cluster_manager_timeout?: string;
381
+ /**
382
+ * @deprecated use cluster_manager_timeout instead
383
+ */
311
384
  master_timeout?: string;
312
385
  local?: boolean;
313
386
  }
314
387
 
315
388
  export interface ClusterGetSettings extends Generic {
316
389
  flat_settings?: boolean;
390
+ cluster_manager_timeout?: string;
391
+ /**
392
+ * @deprecated use cluster_manager_timeout instead
393
+ */
317
394
  master_timeout?: string;
318
395
  timeout?: string;
319
396
  include_defaults?: boolean;
@@ -324,6 +401,10 @@ export interface ClusterHealth extends Generic {
324
401
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
325
402
  level?: 'cluster' | 'indices' | 'shards';
326
403
  local?: boolean;
404
+ cluster_manager_timeout?: string;
405
+ /**
406
+ * @deprecated use cluster_manager_timeout instead
407
+ */
327
408
  master_timeout?: string;
328
409
  timeout?: string;
329
410
  wait_for_active_shards?: string;
@@ -336,6 +417,10 @@ export interface ClusterHealth extends Generic {
336
417
 
337
418
  export interface ClusterPendingTasks extends Generic {
338
419
  local?: boolean;
420
+ cluster_manager_timeout?: string;
421
+ /**
422
+ * @deprecated use cluster_manager_timeout instead
423
+ */
339
424
  master_timeout?: string;
340
425
  }
341
426
 
@@ -349,25 +434,36 @@ export interface ClusterPutComponentTemplate<T = RequestBody> extends Generic {
349
434
  name: string;
350
435
  create?: boolean;
351
436
  timeout?: string;
437
+ cluster_manager_timeout?: string;
438
+ /**
439
+ * @deprecated use cluster_manager_timeout instead
440
+ */
352
441
  master_timeout?: string;
353
442
  body: T;
354
443
  }
355
444
 
356
445
  export interface ClusterPutSettings<T = RequestBody> extends Generic {
357
446
  flat_settings?: boolean;
447
+ cluster_manager_timeout?: string;
448
+ /**
449
+ * @deprecated use cluster_manager_timeout instead
450
+ */
358
451
  master_timeout?: string;
359
452
  timeout?: string;
360
453
  body: T;
361
454
  }
362
455
 
363
- export interface ClusterRemoteInfo extends Generic {
364
- }
456
+ export interface ClusterRemoteInfo extends Generic { }
365
457
 
366
458
  export interface ClusterReroute<T = RequestBody> extends Generic {
367
459
  dry_run?: boolean;
368
460
  explain?: boolean;
369
461
  retry_failed?: boolean;
370
462
  metric?: string | string[];
463
+ cluster_manager_timeout?: string;
464
+ /**
465
+ * @deprecated use cluster_manager_timeout instead
466
+ */
371
467
  master_timeout?: string;
372
468
  timeout?: string;
373
469
  body?: T;
@@ -377,6 +473,10 @@ export interface ClusterState extends Generic {
377
473
  index?: string | string[];
378
474
  metric?: string | string[];
379
475
  local?: boolean;
476
+ cluster_manager_timeout?: string;
477
+ /**
478
+ * @deprecated use cluster_manager_timeout instead
479
+ */
380
480
  master_timeout?: string;
381
481
  flat_settings?: boolean;
382
482
  wait_for_metadata_version?: number;
@@ -394,7 +494,6 @@ export interface ClusterStats extends Generic {
394
494
 
395
495
  export interface Count<T = RequestBody> extends Generic {
396
496
  index?: string | string[];
397
- type?: string | string[];
398
497
  ignore_unavailable?: boolean;
399
498
  ignore_throttled?: boolean;
400
499
  allow_no_indices?: boolean;
@@ -415,7 +514,6 @@ export interface Count<T = RequestBody> extends Generic {
415
514
  export interface Create<T = RequestBody> extends Generic {
416
515
  id: string;
417
516
  index: string;
418
- type?: string;
419
517
  wait_for_active_shards?: string;
420
518
  refresh?: 'wait_for' | boolean;
421
519
  routing?: string;
@@ -430,6 +528,10 @@ export interface DanglingIndicesDeleteDanglingIndex extends Generic {
430
528
  index_uuid: string;
431
529
  accept_data_loss?: boolean;
432
530
  timeout?: string;
531
+ cluster_manager_timeout?: string;
532
+ /**
533
+ * @deprecated use cluster_manager_timeout instead
534
+ */
433
535
  master_timeout?: string;
434
536
  }
435
537
 
@@ -437,16 +539,18 @@ export interface DanglingIndicesImportDanglingIndex extends Generic {
437
539
  index_uuid: string;
438
540
  accept_data_loss?: boolean;
439
541
  timeout?: string;
542
+ cluster_manager_timeout?: string;
543
+ /**
544
+ * @deprecated use cluster_manager_timeout instead
545
+ */
440
546
  master_timeout?: string;
441
547
  }
442
548
 
443
- export interface DanglingIndicesListDanglingIndices extends Generic {
444
- }
549
+ export interface DanglingIndicesListDanglingIndices extends Generic { }
445
550
 
446
551
  export interface Delete extends Generic {
447
552
  id: string;
448
553
  index: string;
449
- type?: string;
450
554
  wait_for_active_shards?: string;
451
555
  refresh?: 'wait_for' | boolean;
452
556
  routing?: string;
@@ -459,7 +563,6 @@ export interface Delete extends Generic {
459
563
 
460
564
  export interface DeleteByQuery<T = RequestBody> extends Generic {
461
565
  index: string | string[];
462
- type?: string | string[];
463
566
  _source_exclude?: string | string[];
464
567
  _source_include?: string | string[];
465
568
  analyzer?: string;
@@ -506,13 +609,16 @@ export interface DeleteByQueryRethrottle extends Generic {
506
609
  export interface DeleteScript extends Generic {
507
610
  id: string;
508
611
  timeout?: string;
612
+ cluster_manager_timeout?: string;
613
+ /**
614
+ * @deprecated use cluster_manager_timeout instead
615
+ */
509
616
  master_timeout?: string;
510
617
  }
511
618
 
512
619
  export interface Exists extends Generic {
513
620
  id: string;
514
621
  index: string;
515
- type?: string;
516
622
  _source_exclude?: string | string[];
517
623
  _source_include?: string | string[];
518
624
  stored_fields?: string | string[];
@@ -530,7 +636,6 @@ export interface Exists extends Generic {
530
636
  export interface ExistsSource extends Generic {
531
637
  id: string;
532
638
  index: string;
533
- type?: string;
534
639
  _source_exclude?: string | string[];
535
640
  _source_include?: string | string[];
536
641
  preference?: string;
@@ -547,7 +652,6 @@ export interface ExistsSource extends Generic {
547
652
  export interface Explain<T = RequestBody> extends Generic {
548
653
  id: string;
549
654
  index: string;
550
- type?: string;
551
655
  _source_exclude?: string | string[];
552
656
  _source_include?: string | string[];
553
657
  analyze_wildcard?: boolean;
@@ -566,11 +670,14 @@ export interface Explain<T = RequestBody> extends Generic {
566
670
  }
567
671
 
568
672
  export interface FeaturesGetFeatures extends Generic {
673
+ cluster_manager_timeout?: string;
674
+ /**
675
+ * @deprecated use cluster_manager_timeout instead
676
+ */
569
677
  master_timeout?: string;
570
678
  }
571
679
 
572
- export interface FeaturesResetFeatures extends Generic {
573
- }
680
+ export interface FeaturesResetFeatures extends Generic { }
574
681
 
575
682
  export interface FieldCaps<T = RequestBody> extends Generic {
576
683
  index?: string | string[];
@@ -585,7 +692,6 @@ export interface FieldCaps<T = RequestBody> extends Generic {
585
692
  export interface Get extends Generic {
586
693
  id: string;
587
694
  index: string;
588
- type?: string;
589
695
  _source_exclude?: string | string[];
590
696
  _source_include?: string | string[];
591
697
  stored_fields?: string | string[];
@@ -602,19 +708,20 @@ export interface Get extends Generic {
602
708
 
603
709
  export interface GetScript extends Generic {
604
710
  id: string;
711
+ cluster_manager_timeout?: string;
712
+ /**
713
+ * @deprecated use cluster_manager_timeout instead
714
+ */
605
715
  master_timeout?: string;
606
716
  }
607
717
 
608
- export interface GetScriptContext extends Generic {
609
- }
718
+ export interface GetScriptContext extends Generic { }
610
719
 
611
- export interface GetScriptLanguages extends Generic {
612
- }
720
+ export interface GetScriptLanguages extends Generic { }
613
721
 
614
722
  export interface GetSource extends Generic {
615
723
  id: string;
616
724
  index: string;
617
- type?: string;
618
725
  _source_exclude?: string | string[];
619
726
  _source_include?: string | string[];
620
727
  preference?: string;
@@ -631,7 +738,6 @@ export interface GetSource extends Generic {
631
738
  export interface Index<T = RequestBody> extends Generic {
632
739
  id?: string;
633
740
  index: string;
634
- type?: string;
635
741
  wait_for_active_shards?: string;
636
742
  op_type?: 'index' | 'create';
637
743
  refresh?: 'wait_for' | boolean;
@@ -650,6 +756,10 @@ export interface IndicesAddBlock extends Generic {
650
756
  index: string | string[];
651
757
  block: string;
652
758
  timeout?: string;
759
+ cluster_manager_timeout?: string;
760
+ /**
761
+ * @deprecated use cluster_manager_timeout instead
762
+ */
653
763
  master_timeout?: string;
654
764
  ignore_unavailable?: boolean;
655
765
  allow_no_indices?: boolean;
@@ -676,6 +786,10 @@ export interface IndicesClone<T = RequestBody> extends Generic {
676
786
  index: string;
677
787
  target: string;
678
788
  timeout?: string;
789
+ cluster_manager_timeout?: string;
790
+ /**
791
+ * @deprecated use cluster_manager_timeout instead
792
+ */
679
793
  master_timeout?: string;
680
794
  wait_for_active_shards?: string;
681
795
  body?: T;
@@ -684,6 +798,10 @@ export interface IndicesClone<T = RequestBody> extends Generic {
684
798
  export interface IndicesClose extends Generic {
685
799
  index: string | string[];
686
800
  timeout?: string;
801
+ cluster_manager_timeout?: string;
802
+ /**
803
+ * @deprecated use cluster_manager_timeout instead
804
+ */
687
805
  master_timeout?: string;
688
806
  ignore_unavailable?: boolean;
689
807
  allow_no_indices?: boolean;
@@ -693,9 +811,12 @@ export interface IndicesClose extends Generic {
693
811
 
694
812
  export interface IndicesCreate<T = RequestBody> extends Generic {
695
813
  index: string;
696
- include_type_name?: boolean;
697
814
  wait_for_active_shards?: string;
698
815
  timeout?: string;
816
+ cluster_manager_timeout?: string;
817
+ /**
818
+ * @deprecated use cluster_manager_timeout instead
819
+ */
699
820
  master_timeout?: string;
700
821
  body?: T;
701
822
  }
@@ -703,6 +824,10 @@ export interface IndicesCreate<T = RequestBody> extends Generic {
703
824
  export interface IndicesDelete extends Generic {
704
825
  index: string | string[];
705
826
  timeout?: string;
827
+ cluster_manager_timeout?: string;
828
+ /**
829
+ * @deprecated use cluster_manager_timeout instead
830
+ */
706
831
  master_timeout?: string;
707
832
  ignore_unavailable?: boolean;
708
833
  allow_no_indices?: boolean;
@@ -713,17 +838,30 @@ export interface IndicesDeleteAlias extends Generic {
713
838
  index: string | string[];
714
839
  name: string | string[];
715
840
  timeout?: string;
841
+ cluster_manager_timeout?: string;
842
+ /**
843
+ * @deprecated use cluster_manager_timeout instead
844
+ */
716
845
  master_timeout?: string;
717
846
  }
847
+
718
848
  export interface IndicesDeleteIndexTemplate extends Generic {
719
849
  name: string;
720
850
  timeout?: string;
851
+ cluster_manager_timeout?: string;
852
+ /**
853
+ * @deprecated use cluster_manager_timeout instead
854
+ */
721
855
  master_timeout?: string;
722
856
  }
723
857
 
724
858
  export interface IndicesDeleteTemplate extends Generic {
725
859
  name: string;
726
860
  timeout?: string;
861
+ cluster_manager_timeout?: string;
862
+ /**
863
+ * @deprecated use cluster_manager_timeout instead
864
+ */
727
865
  master_timeout?: string;
728
866
  }
729
867
 
@@ -758,6 +896,10 @@ export interface IndicesExistsAlias extends Generic {
758
896
  export interface IndicesExistsIndexTemplate extends Generic {
759
897
  name: string;
760
898
  flat_settings?: boolean;
899
+ cluster_manager_timeout?: string;
900
+ /**
901
+ * @deprecated use cluster_manager_timeout instead
902
+ */
761
903
  master_timeout?: string;
762
904
  local?: boolean;
763
905
  }
@@ -765,19 +907,14 @@ export interface IndicesExistsIndexTemplate extends Generic {
765
907
  export interface IndicesExistsTemplate extends Generic {
766
908
  name: string | string[];
767
909
  flat_settings?: boolean;
910
+ cluster_manager_timeout?: string;
911
+ /**
912
+ * @deprecated use cluster_manager_timeout instead
913
+ */
768
914
  master_timeout?: string;
769
915
  local?: boolean;
770
916
  }
771
917
 
772
- export interface IndicesExistsType extends Generic {
773
- index: string | string[];
774
- type: string | string[];
775
- ignore_unavailable?: boolean;
776
- allow_no_indices?: boolean;
777
- expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
778
- local?: boolean;
779
- }
780
-
781
918
  export interface IndicesFieldUsageStats extends Generic {
782
919
  index: string;
783
920
  fields?: string | string[];
@@ -795,13 +932,6 @@ export interface IndicesFlush extends Generic {
795
932
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
796
933
  }
797
934
 
798
- export interface IndicesFlushSynced extends Generic {
799
- index?: string | string[];
800
- ignore_unavailable?: boolean;
801
- allow_no_indices?: boolean;
802
- expand_wildcards?: 'open' | 'closed' | 'none' | 'all';
803
- }
804
-
805
935
  export interface IndicesForcemerge extends Generic {
806
936
  index?: string | string[];
807
937
  flush?: boolean;
@@ -814,13 +944,16 @@ export interface IndicesForcemerge extends Generic {
814
944
 
815
945
  export interface IndicesGet extends Generic {
816
946
  index: string | string[];
817
- include_type_name?: boolean;
818
947
  local?: boolean;
819
948
  ignore_unavailable?: boolean;
820
949
  allow_no_indices?: boolean;
821
950
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
822
951
  flat_settings?: boolean;
823
952
  include_defaults?: boolean;
953
+ cluster_manager_timeout?: string;
954
+ /**
955
+ * @deprecated use cluster_manager_timeout instead
956
+ */
824
957
  master_timeout?: string;
825
958
  }
826
959
 
@@ -836,8 +969,6 @@ export interface IndicesGetAlias extends Generic {
836
969
  export interface IndicesGetFieldMapping extends Generic {
837
970
  fields: string | string[];
838
971
  index?: string | string[];
839
- type?: string | string[];
840
- include_type_name?: boolean;
841
972
  include_defaults?: boolean;
842
973
  ignore_unavailable?: boolean;
843
974
  allow_no_indices?: boolean;
@@ -848,17 +979,23 @@ export interface IndicesGetFieldMapping extends Generic {
848
979
  export interface IndicesGetIndexTemplate extends Generic {
849
980
  name?: string | string[];
850
981
  flat_settings?: boolean;
982
+ cluster_manager_timeout?: string;
983
+ /**
984
+ * @deprecated use cluster_manager_timeout instead
985
+ */
851
986
  master_timeout?: string;
852
987
  local?: boolean;
853
988
  }
854
989
 
855
990
  export interface IndicesGetMapping extends Generic {
856
991
  index?: string | string[];
857
- type?: string | string[];
858
- include_type_name?: boolean;
859
992
  ignore_unavailable?: boolean;
860
993
  allow_no_indices?: boolean;
861
994
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
995
+ cluster_manager_timeout?: string;
996
+ /**
997
+ * @deprecated use cluster_manager_timeout instead
998
+ */
862
999
  master_timeout?: string;
863
1000
  local?: boolean;
864
1001
  }
@@ -866,6 +1003,10 @@ export interface IndicesGetMapping extends Generic {
866
1003
  export interface IndicesGetSettings extends Generic {
867
1004
  index?: string | string[];
868
1005
  name?: string | string[];
1006
+ cluster_manager_timeout?: string;
1007
+ /**
1008
+ * @deprecated use cluster_manager_timeout instead
1009
+ */
869
1010
  master_timeout?: string;
870
1011
  ignore_unavailable?: boolean;
871
1012
  allow_no_indices?: boolean;
@@ -877,8 +1018,11 @@ export interface IndicesGetSettings extends Generic {
877
1018
 
878
1019
  export interface IndicesGetTemplate extends Generic {
879
1020
  name?: string | string[];
880
- include_type_name?: boolean;
881
1021
  flat_settings?: boolean;
1022
+ cluster_manager_timeout?: string;
1023
+ /**
1024
+ * @deprecated use cluster_manager_timeout instead
1025
+ */
882
1026
  master_timeout?: string;
883
1027
  local?: boolean;
884
1028
  }
@@ -890,10 +1034,13 @@ export interface IndicesGetUpgrade extends Generic {
890
1034
  expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
891
1035
  }
892
1036
 
893
-
894
1037
  export interface IndicesOpen extends Generic {
895
1038
  index: string | string[];
896
1039
  timeout?: string;
1040
+ cluster_manager_timeout?: string;
1041
+ /**
1042
+ * @deprecated use cluster_manager_timeout instead
1043
+ */
897
1044
  master_timeout?: string;
898
1045
  ignore_unavailable?: boolean;
899
1046
  allow_no_indices?: boolean;
@@ -905,6 +1052,10 @@ export interface IndicesPutAlias<T = RequestBody> extends Generic {
905
1052
  index: string | string[];
906
1053
  name: string;
907
1054
  timeout?: string;
1055
+ cluster_manager_timeout?: string;
1056
+ /**
1057
+ * @deprecated use cluster_manager_timeout instead
1058
+ */
908
1059
  master_timeout?: string;
909
1060
  body?: T;
910
1061
  }
@@ -913,15 +1064,21 @@ export interface IndicesPutIndexTemplate<T = RequestBody> extends Generic {
913
1064
  name: string;
914
1065
  create?: boolean;
915
1066
  cause?: string;
1067
+ cluster_manager_timeout?: string;
1068
+ /**
1069
+ * @deprecated use cluster_manager_timeout instead
1070
+ */
916
1071
  master_timeout?: string;
917
1072
  body: T;
918
1073
  }
919
1074
 
920
1075
  export interface IndicesPutMapping<T = RequestBody> extends Generic {
921
1076
  index?: string | string[];
922
- type?: string;
923
- include_type_name?: boolean;
924
1077
  timeout?: string;
1078
+ cluster_manager_timeout?: string;
1079
+ /**
1080
+ * @deprecated use cluster_manager_timeout instead
1081
+ */
925
1082
  master_timeout?: string;
926
1083
  ignore_unavailable?: boolean;
927
1084
  allow_no_indices?: boolean;
@@ -932,6 +1089,10 @@ export interface IndicesPutMapping<T = RequestBody> extends Generic {
932
1089
 
933
1090
  export interface IndicesPutSettings<T = RequestBody> extends Generic {
934
1091
  index?: string | string[];
1092
+ cluster_manager_timeout?: string;
1093
+ /**
1094
+ * @deprecated use cluster_manager_timeout instead
1095
+ */
935
1096
  master_timeout?: string;
936
1097
  timeout?: string;
937
1098
  preserve_existing?: boolean;
@@ -944,9 +1105,12 @@ export interface IndicesPutSettings<T = RequestBody> extends Generic {
944
1105
 
945
1106
  export interface IndicesPutTemplate<T = RequestBody> extends Generic {
946
1107
  name: string;
947
- include_type_name?: boolean;
948
1108
  order?: number;
949
1109
  create?: boolean;
1110
+ cluster_manager_timeout?: string;
1111
+ /**
1112
+ * @deprecated use cluster_manager_timeout instead
1113
+ */
950
1114
  master_timeout?: string;
951
1115
  body: T;
952
1116
  }
@@ -972,9 +1136,12 @@ export interface IndicesResolveIndex extends Generic {
972
1136
  export interface IndicesRollover<T = RequestBody> extends Generic {
973
1137
  alias: string;
974
1138
  new_index?: string;
975
- include_type_name?: boolean;
976
1139
  timeout?: string;
977
1140
  dry_run?: boolean;
1141
+ cluster_manager_timeout?: string;
1142
+ /**
1143
+ * @deprecated use cluster_manager_timeout instead
1144
+ */
978
1145
  master_timeout?: string;
979
1146
  wait_for_active_shards?: string;
980
1147
  body?: T;
@@ -1001,6 +1168,10 @@ export interface IndicesShrink<T = RequestBody> extends Generic {
1001
1168
  target: string;
1002
1169
  copy_settings?: boolean;
1003
1170
  timeout?: string;
1171
+ cluster_manager_timeout?: string;
1172
+ /**
1173
+ * @deprecated use cluster_manager_timeout instead
1174
+ */
1004
1175
  master_timeout?: string;
1005
1176
  wait_for_active_shards?: string;
1006
1177
  body?: T;
@@ -1010,6 +1181,10 @@ export interface IndicesSimulateIndexTemplate<T = RequestBody> extends Generic {
1010
1181
  name: string;
1011
1182
  create?: boolean;
1012
1183
  cause?: string;
1184
+ cluster_manager_timeout?: string;
1185
+ /**
1186
+ * @deprecated use cluster_manager_timeout instead
1187
+ */
1013
1188
  master_timeout?: string;
1014
1189
  body?: T;
1015
1190
  }
@@ -1018,6 +1193,10 @@ export interface IndicesSimulateTemplate<T = RequestBody> extends Generic {
1018
1193
  name?: string;
1019
1194
  create?: boolean;
1020
1195
  cause?: string;
1196
+ cluster_manager_timeout?: string;
1197
+ /**
1198
+ * @deprecated use cluster_manager_timeout instead
1199
+ */
1021
1200
  master_timeout?: string;
1022
1201
  body?: T;
1023
1202
  }
@@ -1027,6 +1206,10 @@ export interface IndicesSplit<T = RequestBody> extends Generic {
1027
1206
  target: string;
1028
1207
  copy_settings?: boolean;
1029
1208
  timeout?: string;
1209
+ cluster_manager_timeout?: string;
1210
+ /**
1211
+ * @deprecated use cluster_manager_timeout instead
1212
+ */
1030
1213
  master_timeout?: string;
1031
1214
  wait_for_active_shards?: string;
1032
1215
  body?: T;
@@ -1049,6 +1232,10 @@ export interface IndicesStats extends Generic {
1049
1232
 
1050
1233
  export interface IndicesUpdateAliases<T = RequestBody> extends Generic {
1051
1234
  timeout?: string;
1235
+ cluster_manager_timeout?: string;
1236
+ /**
1237
+ * @deprecated use cluster_manager_timeout instead
1238
+ */
1052
1239
  master_timeout?: string;
1053
1240
  body: T;
1054
1241
  }
@@ -1064,7 +1251,6 @@ export interface IndicesUpgrade extends Generic {
1064
1251
 
1065
1252
  export interface IndicesValidateQuery<T = RequestBody> extends Generic {
1066
1253
  index?: string | string[];
1067
- type?: string | string[];
1068
1254
  explain?: boolean;
1069
1255
  ignore_unavailable?: boolean;
1070
1256
  allow_no_indices?: boolean;
@@ -1080,29 +1266,38 @@ export interface IndicesValidateQuery<T = RequestBody> extends Generic {
1080
1266
  body?: T;
1081
1267
  }
1082
1268
 
1083
- export interface Info extends Generic {
1084
- }
1269
+ export interface Info extends Generic { }
1085
1270
 
1086
1271
  export interface IngestDeletePipeline extends Generic {
1087
1272
  id: string;
1273
+ cluster_manager_timeout?: string;
1274
+ /**
1275
+ * @deprecated use cluster_manager_timeout instead
1276
+ */
1088
1277
  master_timeout?: string;
1089
1278
  timeout?: string;
1090
1279
  }
1091
1280
 
1092
- export interface IngestGeoIpStats extends Generic {
1093
- }
1281
+ export interface IngestGeoIpStats extends Generic { }
1094
1282
 
1095
1283
  export interface IngestGetPipeline extends Generic {
1096
1284
  id?: string;
1097
1285
  summary?: boolean;
1286
+ cluster_manager_timeout?: string;
1287
+ /**
1288
+ * @deprecated use cluster_manager_timeout instead
1289
+ */
1098
1290
  master_timeout?: string;
1099
1291
  }
1100
1292
 
1101
- export interface IngestProcessorGrok extends Generic {
1102
- }
1293
+ export interface IngestProcessorGrok extends Generic { }
1103
1294
 
1104
1295
  export interface IngestPutPipeline<T = RequestBody> extends Generic {
1105
1296
  id: string;
1297
+ cluster_manager_timeout?: string;
1298
+ /**
1299
+ * @deprecated use cluster_manager_timeout instead
1300
+ */
1106
1301
  master_timeout?: string;
1107
1302
  timeout?: string;
1108
1303
  body: T;
@@ -1116,7 +1311,6 @@ export interface IngestSimulate<T = RequestBody> extends Generic {
1116
1311
 
1117
1312
  export interface Mget<T = RequestBody> extends Generic {
1118
1313
  index?: string;
1119
- type?: string;
1120
1314
  _source_exclude?: string | string[];
1121
1315
  _source_include?: string | string[];
1122
1316
  stored_fields?: string | string[];
@@ -1132,7 +1326,6 @@ export interface Mget<T = RequestBody> extends Generic {
1132
1326
 
1133
1327
  export interface Msearch<T = RequestNDBody> extends Generic {
1134
1328
  index?: string | string[];
1135
- type?: string | string[];
1136
1329
  search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1137
1330
  max_concurrent_searches?: number;
1138
1331
  typed_keys?: boolean;
@@ -1145,7 +1338,6 @@ export interface Msearch<T = RequestNDBody> extends Generic {
1145
1338
 
1146
1339
  export interface MsearchTemplate<T = RequestNDBody> extends Generic {
1147
1340
  index?: string | string[];
1148
- type?: string | string[];
1149
1341
  search_type?: 'query_then_fetch' | 'dfs_query_then_fetch';
1150
1342
  typed_keys?: boolean;
1151
1343
  max_concurrent_searches?: number;
@@ -1156,7 +1348,6 @@ export interface MsearchTemplate<T = RequestNDBody> extends Generic {
1156
1348
 
1157
1349
  export interface Mtermvectors<T = RequestBody> extends Generic {
1158
1350
  index?: string;
1159
- type?: string;
1160
1351
  ids?: string | string[];
1161
1352
  term_statistics?: boolean;
1162
1353
  field_statistics?: boolean;
@@ -1225,13 +1416,16 @@ export interface NodesUsage extends Generic {
1225
1416
  timeout?: string;
1226
1417
  }
1227
1418
 
1228
- export interface Ping extends Generic {
1229
- }
1419
+ export interface Ping extends Generic { }
1230
1420
 
1231
1421
  export interface PutScript<T = RequestBody> extends Generic {
1232
1422
  id: string;
1233
1423
  context?: string;
1234
1424
  timeout?: string;
1425
+ cluster_manager_timeout?: string;
1426
+ /**
1427
+ * @deprecated use cluster_manager_timeout instead
1428
+ */
1235
1429
  master_timeout?: string;
1236
1430
  body: T;
1237
1431
  }
@@ -1280,7 +1474,6 @@ export interface Scroll<T = RequestBody> extends Generic {
1280
1474
 
1281
1475
  export interface Search<T = RequestBody> extends Generic {
1282
1476
  index?: string | string[];
1283
- type?: string | string[];
1284
1477
  _source_exclude?: string | string[];
1285
1478
  _source_include?: string | string[];
1286
1479
  analyzer?: string;
@@ -1341,7 +1534,6 @@ export interface SearchShards extends Generic {
1341
1534
 
1342
1535
  export interface SearchTemplate<T = RequestBody> extends Generic {
1343
1536
  index?: string | string[];
1344
- type?: string | string[];
1345
1537
  ignore_unavailable?: boolean;
1346
1538
  ignore_throttled?: boolean;
1347
1539
  allow_no_indices?: boolean;
@@ -1373,6 +1565,10 @@ export interface ShutdownPutNode<T = RequestBody> extends Generic {
1373
1565
 
1374
1566
  export interface SnapshotCleanupRepository extends Generic {
1375
1567
  repository: string;
1568
+ cluster_manager_timeout?: string;
1569
+ /**
1570
+ * @deprecated use cluster_manager_timeout instead
1571
+ */
1376
1572
  master_timeout?: string;
1377
1573
  timeout?: string;
1378
1574
  }
@@ -1381,6 +1577,10 @@ export interface SnapshotClone<T = RequestBody> extends Generic {
1381
1577
  repository: string;
1382
1578
  snapshot: string;
1383
1579
  target_snapshot: string;
1580
+ cluster_manager_timeout?: string;
1581
+ /**
1582
+ * @deprecated use cluster_manager_timeout instead
1583
+ */
1384
1584
  master_timeout?: string;
1385
1585
  body: T;
1386
1586
  }
@@ -1388,6 +1588,10 @@ export interface SnapshotClone<T = RequestBody> extends Generic {
1388
1588
  export interface SnapshotCreate<T = RequestBody> extends Generic {
1389
1589
  repository: string;
1390
1590
  snapshot: string;
1591
+ cluster_manager_timeout?: string;
1592
+ /**
1593
+ * @deprecated use cluster_manager_timeout instead
1594
+ */
1391
1595
  master_timeout?: string;
1392
1596
  wait_for_completion?: boolean;
1393
1597
  body?: T;
@@ -1395,6 +1599,10 @@ export interface SnapshotCreate<T = RequestBody> extends Generic {
1395
1599
 
1396
1600
  export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
1397
1601
  repository: string;
1602
+ cluster_manager_timeout?: string;
1603
+ /**
1604
+ * @deprecated use cluster_manager_timeout instead
1605
+ */
1398
1606
  master_timeout?: string;
1399
1607
  timeout?: string;
1400
1608
  verify?: boolean;
@@ -1404,11 +1612,19 @@ export interface SnapshotCreateRepository<T = RequestBody> extends Generic {
1404
1612
  export interface SnapshotDelete extends Generic {
1405
1613
  repository: string;
1406
1614
  snapshot: string;
1615
+ cluster_manager_timeout?: string;
1616
+ /**
1617
+ * @deprecated use cluster_manager_timeout instead
1618
+ */
1407
1619
  master_timeout?: string;
1408
1620
  }
1409
1621
 
1410
1622
  export interface SnapshotDeleteRepository extends Generic {
1411
1623
  repository: string | string[];
1624
+ cluster_manager_timeout?: string;
1625
+ /**
1626
+ * @deprecated use cluster_manager_timeout instead
1627
+ */
1412
1628
  master_timeout?: string;
1413
1629
  timeout?: string;
1414
1630
  }
@@ -1416,6 +1632,10 @@ export interface SnapshotDeleteRepository extends Generic {
1416
1632
  export interface SnapshotGet extends Generic {
1417
1633
  repository: string;
1418
1634
  snapshot: string | string[];
1635
+ cluster_manager_timeout?: string;
1636
+ /**
1637
+ * @deprecated use cluster_manager_timeout instead
1638
+ */
1419
1639
  master_timeout?: string;
1420
1640
  ignore_unavailable?: boolean;
1421
1641
  index_details?: boolean;
@@ -1425,6 +1645,10 @@ export interface SnapshotGet extends Generic {
1425
1645
 
1426
1646
  export interface SnapshotGetRepository extends Generic {
1427
1647
  repository?: string | string[];
1648
+ cluster_manager_timeout?: string;
1649
+ /**
1650
+ * @deprecated use cluster_manager_timeout instead
1651
+ */
1428
1652
  master_timeout?: string;
1429
1653
  local?: boolean;
1430
1654
  }
@@ -1447,6 +1671,10 @@ export interface SnapshotRepositoryAnalyze extends Generic {
1447
1671
  export interface SnapshotRestore<T = RequestBody> extends Generic {
1448
1672
  repository: string;
1449
1673
  snapshot: string;
1674
+ cluster_manager_timeout?: string;
1675
+ /**
1676
+ * @deprecated use cluster_manager_timeout instead
1677
+ */
1450
1678
  master_timeout?: string;
1451
1679
  wait_for_completion?: boolean;
1452
1680
  body?: T;
@@ -1455,12 +1683,20 @@ export interface SnapshotRestore<T = RequestBody> extends Generic {
1455
1683
  export interface SnapshotStatus extends Generic {
1456
1684
  repository?: string;
1457
1685
  snapshot?: string | string[];
1686
+ cluster_manager_timeout?: string;
1687
+ /**
1688
+ * @deprecated use cluster_manager_timeout instead
1689
+ */
1458
1690
  master_timeout?: string;
1459
1691
  ignore_unavailable?: boolean;
1460
1692
  }
1461
1693
 
1462
1694
  export interface SnapshotVerifyRepository extends Generic {
1463
1695
  repository: string;
1696
+ cluster_manager_timeout?: string;
1697
+ /**
1698
+ * @deprecated use cluster_manager_timeout instead
1699
+ */
1464
1700
  master_timeout?: string;
1465
1701
  timeout?: string;
1466
1702
  }
@@ -1497,7 +1733,6 @@ export interface TermsEnum<T = RequestBody> extends Generic {
1497
1733
  export interface Termvectors<T = RequestBody> extends Generic {
1498
1734
  index: string;
1499
1735
  id?: string;
1500
- type?: string;
1501
1736
  term_statistics?: boolean;
1502
1737
  field_statistics?: boolean;
1503
1738
  fields?: string | string[];
@@ -1515,7 +1750,6 @@ export interface Termvectors<T = RequestBody> extends Generic {
1515
1750
  export interface Update<T = RequestBody> extends Generic {
1516
1751
  id: string;
1517
1752
  index: string;
1518
- type?: string;
1519
1753
  _source_exclude?: string | string[];
1520
1754
  _source_include?: string | string[];
1521
1755
  wait_for_active_shards?: string;
@@ -1535,7 +1769,6 @@ export interface Update<T = RequestBody> extends Generic {
1535
1769
 
1536
1770
  export interface UpdateByQuery<T = RequestBody> extends Generic {
1537
1771
  index: string | string[];
1538
- type?: string | string[];
1539
1772
  _source_exclude?: string | string[];
1540
1773
  _source_include?: string | string[];
1541
1774
  analyzer?: string;
@@ -1580,4 +1813,3 @@ export interface UpdateByQueryRethrottle extends Generic {
1580
1813
  task_id: string;
1581
1814
  requests_per_second: number;
1582
1815
  }
1583
-