@opensearch-project/opensearch 2.0.0 → 2.2.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 (92) hide show
  1. package/.eslintrc.json +13 -5
  2. package/ADMINS.md +13 -38
  3. package/CHANGELOG.md +54 -0
  4. package/COMPATIBILITY.md +4 -1
  5. package/MAINTAINERS.md +11 -73
  6. package/Makefile +2 -12
  7. package/README.md +4 -107
  8. package/RELEASING.md +7 -1
  9. package/USER_GUIDE.md +248 -0
  10. package/api/api/bulk.js +24 -2
  11. package/api/api/cat.js +320 -2
  12. package/api/api/clear_scroll.js +15 -2
  13. package/api/api/cluster.js +238 -2
  14. package/api/api/count.js +29 -2
  15. package/api/api/create.js +27 -2
  16. package/api/api/create_pit.js +88 -0
  17. package/api/api/dangling_indices.js +46 -2
  18. package/api/api/delete.js +24 -2
  19. package/api/api/delete_all_pits.js +53 -0
  20. package/api/api/delete_by_query.js +49 -2
  21. package/api/api/delete_by_query_rethrottle.js +15 -2
  22. package/api/api/delete_pit.js +61 -0
  23. package/api/api/delete_script.js +15 -2
  24. package/api/api/exists.js +26 -2
  25. package/api/api/exists_source.js +26 -2
  26. package/api/api/explain.js +28 -2
  27. package/api/api/features.js +25 -2
  28. package/api/api/field_caps.js +20 -2
  29. package/api/api/get.js +26 -2
  30. package/api/api/get_all_pits.js +53 -0
  31. package/api/api/get_script.js +17 -2
  32. package/api/api/get_script_context.js +12 -2
  33. package/api/api/get_script_languages.js +12 -2
  34. package/api/api/get_source.js +26 -2
  35. package/api/api/index.js +30 -2
  36. package/api/api/indices.js +816 -2
  37. package/api/api/info.js +12 -2
  38. package/api/api/ingest.js +90 -2
  39. package/api/api/mget.js +25 -2
  40. package/api/api/msearch.js +23 -2
  41. package/api/api/msearch_template.js +20 -2
  42. package/api/api/mtermvectors.js +1 -2
  43. package/api/api/nodes.js +92 -2
  44. package/api/api/ping.js +12 -2
  45. package/api/api/put_script.js +18 -2
  46. package/api/api/rank_eval.js +20 -2
  47. package/api/api/reindex.js +23 -2
  48. package/api/api/reindex_rethrottle.js +15 -2
  49. package/api/api/render_search_template.js +15 -2
  50. package/api/api/scripts_painless_execute.js +14 -2
  51. package/api/api/scroll.js +18 -2
  52. package/api/api/search.js +61 -2
  53. package/api/api/search_shards.js +20 -2
  54. package/api/api/search_template.js +28 -2
  55. package/api/api/shutdown.js +4 -2
  56. package/api/api/snapshot.js +211 -2
  57. package/api/api/tasks.js +57 -2
  58. package/api/api/terms_enum.js +2 -2
  59. package/api/api/termvectors.js +27 -2
  60. package/api/api/update.js +29 -2
  61. package/api/api/update_by_query.js +51 -2
  62. package/api/api/update_by_query_rethrottle.js +15 -2
  63. package/api/index.js +29 -2
  64. package/api/new.d.ts +65 -2
  65. package/api/opensearch_dashboards.d.ts +5 -2
  66. package/api/requestParams.d.ts +17 -2
  67. package/api/types.d.ts +48 -2
  68. package/api/utils.js +1 -2
  69. package/index.d.ts +605 -120
  70. package/index.js +2 -3
  71. package/index.mjs +1 -2
  72. package/jenkins/release.JenkinsFile +11 -0
  73. package/lib/Connection.d.ts +1 -2
  74. package/lib/Connection.js +5 -4
  75. package/lib/Helpers.d.ts +5 -4
  76. package/lib/Helpers.js +13 -17
  77. package/lib/Serializer.d.ts +1 -2
  78. package/lib/Serializer.js +2 -3
  79. package/lib/Transport.d.ts +10 -4
  80. package/lib/Transport.js +34 -7
  81. package/lib/aws/AwsSigv4Signer.js +176 -0
  82. package/lib/aws/errors.js +24 -0
  83. package/lib/aws/index.d.ts +39 -0
  84. package/lib/aws/index.js +19 -0
  85. package/lib/errors.d.ts +1 -2
  86. package/lib/errors.js +1 -2
  87. package/lib/pool/BaseConnectionPool.js +1 -2
  88. package/lib/pool/CloudConnectionPool.js +1 -2
  89. package/lib/pool/ConnectionPool.js +1 -2
  90. package/lib/pool/index.d.ts +1 -2
  91. package/lib/pool/index.js +1 -2
  92. package/package.json +36 -18
package/api/types.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  /*
2
+ * Copyright OpenSearch Contributors
2
3
  * SPDX-License-Identifier: Apache-2.0
3
4
  *
4
5
  * The OpenSearch Contributors require contributions made to
5
6
  * this file be licensed under the Apache-2.0 license or a
6
7
  * compatible open source license.
7
8
  *
8
- * Modifications Copyright OpenSearch Contributors. See
9
- * GitHub history for details.
10
9
  */
11
10
 
12
11
  /*
@@ -9964,3 +9963,50 @@ export interface SpecUtilsCommonCatQueryParameters {
9964
9963
  s?: string[]
9965
9964
  v?: boolean
9966
9965
  }
9966
+
9967
+ export interface PointInTime {
9968
+ pit_id: string;
9969
+ creation_time: Time;
9970
+ keep_alive: Time
9971
+ }
9972
+
9973
+ export interface PointInTimeDelete {
9974
+ pit_id: string;
9975
+ successful: boolean
9976
+ }
9977
+
9978
+ export interface PointInTimeCreateRequest extends RequestBase {
9979
+ index: Indices;
9980
+ keep_alive: string;
9981
+ preference?: string;
9982
+ routing?: string;
9983
+ expand_wildcards?: ExpandWildcards;
9984
+ allow_partial_pit_creation?: boolean
9985
+ }
9986
+
9987
+ export interface PointInTimeCreateResponse extends ShardsOperationResponseBase {
9988
+ pit_id: string;
9989
+ creation_time: Time;
9990
+ }
9991
+
9992
+ export interface PointInTimeGetAllRequest extends RequestBase { }
9993
+
9994
+ export interface PointInTimeGetAllResponse {
9995
+ pits: PointInTime[];
9996
+ }
9997
+
9998
+ export interface PointInTimeDeleteAllRequest extends RequestBase { }
9999
+
10000
+ export interface PointInTimeDeleteAllResponse {
10001
+ pits: PointInTimeDelete[];
10002
+ }
10003
+
10004
+ export interface PointInTimeDeleteRequest extends RequestBase {
10005
+ body?: {
10006
+ pit_id: string[]
10007
+ };
10008
+ }
10009
+
10010
+ export interface PointInTimeDeleteResponse {
10011
+ pits: PointInTimeDelete[];
10012
+ }
package/api/utils.js CHANGED
@@ -1,12 +1,11 @@
1
1
  /*
2
+ * Copyright OpenSearch Contributors
2
3
  * SPDX-License-Identifier: Apache-2.0
3
4
  *
4
5
  * The OpenSearch Contributors require contributions made to
5
6
  * this file be licensed under the Apache-2.0 license or a
6
7
  * compatible open source license.
7
8
  *
8
- * Modifications Copyright OpenSearch Contributors. See
9
- * GitHub history for details.
10
9
  */
11
10
 
12
11
  /*