@elastic/elasticsearch 8.18.2 → 8.19.1

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 (108) hide show
  1. package/index.d.ts +1 -0
  2. package/lib/api/api/async_search.d.ts +4 -4
  3. package/lib/api/api/autoscaling.d.ts +4 -4
  4. package/lib/api/api/bulk.d.ts +2 -2
  5. package/lib/api/api/cat.d.ts +26 -26
  6. package/lib/api/api/ccr.d.ts +13 -13
  7. package/lib/api/api/clear_scroll.d.ts +1 -1
  8. package/lib/api/api/close_point_in_time.d.ts +1 -1
  9. package/lib/api/api/cluster.d.ts +17 -17
  10. package/lib/api/api/connector.d.ts +30 -30
  11. package/lib/api/api/count.d.ts +1 -1
  12. package/lib/api/api/create.d.ts +1 -1
  13. package/lib/api/api/dangling_indices.d.ts +3 -3
  14. package/lib/api/api/delete.d.ts +1 -1
  15. package/lib/api/api/delete_by_query.d.ts +1 -1
  16. package/lib/api/api/delete_by_query.js +1 -1
  17. package/lib/api/api/delete_by_query.js.map +1 -1
  18. package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
  19. package/lib/api/api/delete_script.d.ts +1 -1
  20. package/lib/api/api/enrich.d.ts +5 -5
  21. package/lib/api/api/eql.d.ts +3 -3
  22. package/lib/api/api/esql.d.ts +5 -5
  23. package/lib/api/api/esql.js +1 -1
  24. package/lib/api/api/esql.js.map +1 -1
  25. package/lib/api/api/exists.d.ts +1 -1
  26. package/lib/api/api/exists_source.d.ts +1 -1
  27. package/lib/api/api/explain.d.ts +1 -1
  28. package/lib/api/api/features.d.ts +2 -2
  29. package/lib/api/api/field_caps.d.ts +1 -1
  30. package/lib/api/api/fleet.d.ts +4 -4
  31. package/lib/api/api/get.d.ts +1 -1
  32. package/lib/api/api/get_script.d.ts +1 -1
  33. package/lib/api/api/get_script_context.d.ts +1 -1
  34. package/lib/api/api/get_script_languages.d.ts +1 -1
  35. package/lib/api/api/get_source.d.ts +1 -1
  36. package/lib/api/api/graph.d.ts +1 -1
  37. package/lib/api/api/health_report.d.ts +1 -1
  38. package/lib/api/api/ilm.d.ts +11 -11
  39. package/lib/api/api/index.d.ts +1 -1
  40. package/lib/api/api/indices.d.ts +94 -59
  41. package/lib/api/api/indices.js +115 -0
  42. package/lib/api/api/indices.js.map +1 -1
  43. package/lib/api/api/inference.d.ts +64 -43
  44. package/lib/api/api/inference.js +116 -2
  45. package/lib/api/api/inference.js.map +1 -1
  46. package/lib/api/api/info.d.ts +2 -2
  47. package/lib/api/api/ingest.d.ts +9 -9
  48. package/lib/api/api/knn_search.d.ts +1 -1
  49. package/lib/api/api/license.d.ts +7 -7
  50. package/lib/api/api/logstash.d.ts +3 -3
  51. package/lib/api/api/mget.d.ts +1 -1
  52. package/lib/api/api/migration.d.ts +3 -3
  53. package/lib/api/api/ml.d.ts +75 -75
  54. package/lib/api/api/msearch.d.ts +1 -1
  55. package/lib/api/api/msearch_template.d.ts +1 -1
  56. package/lib/api/api/mtermvectors.d.ts +1 -1
  57. package/lib/api/api/nodes.d.ts +7 -7
  58. package/lib/api/api/open_point_in_time.d.ts +1 -1
  59. package/lib/api/api/ping.d.ts +1 -1
  60. package/lib/api/api/profiling.d.ts +4 -4
  61. package/lib/api/api/put_script.d.ts +1 -1
  62. package/lib/api/api/query_rules.d.ts +8 -8
  63. package/lib/api/api/rank_eval.d.ts +1 -1
  64. package/lib/api/api/reindex.d.ts +1 -1
  65. package/lib/api/api/reindex_rethrottle.d.ts +1 -1
  66. package/lib/api/api/render_search_template.d.ts +1 -1
  67. package/lib/api/api/rollup.d.ts +8 -8
  68. package/lib/api/api/scripts_painless_execute.d.ts +1 -1
  69. package/lib/api/api/scroll.d.ts +1 -1
  70. package/lib/api/api/search.d.ts +1 -1
  71. package/lib/api/api/search_application.d.ts +10 -10
  72. package/lib/api/api/search_mvt.d.ts +1 -1
  73. package/lib/api/api/search_shards.d.ts +1 -1
  74. package/lib/api/api/search_template.d.ts +1 -1
  75. package/lib/api/api/searchable_snapshots.d.ts +4 -4
  76. package/lib/api/api/security.d.ts +64 -64
  77. package/lib/api/api/shutdown.d.ts +3 -3
  78. package/lib/api/api/simulate.d.ts +1 -1
  79. package/lib/api/api/slm.d.ts +9 -9
  80. package/lib/api/api/snapshot.d.ts +13 -13
  81. package/lib/api/api/sql.d.ts +6 -6
  82. package/lib/api/api/ssl.d.ts +1 -1
  83. package/lib/api/api/streams.d.ts +32 -0
  84. package/lib/api/api/streams.js +93 -0
  85. package/lib/api/api/streams.js.map +1 -0
  86. package/lib/api/api/synonyms.d.ts +7 -7
  87. package/lib/api/api/tasks.d.ts +3 -3
  88. package/lib/api/api/terms_enum.d.ts +1 -1
  89. package/lib/api/api/termvectors.d.ts +1 -1
  90. package/lib/api/api/text_structure.d.ts +4 -4
  91. package/lib/api/api/transform.d.ts +19 -12
  92. package/lib/api/api/transform.js +21 -0
  93. package/lib/api/api/transform.js.map +1 -1
  94. package/lib/api/api/update.d.ts +1 -1
  95. package/lib/api/api/update_by_query.d.ts +1 -1
  96. package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
  97. package/lib/api/api/watcher.d.ts +13 -13
  98. package/lib/api/api/xpack.d.ts +2 -2
  99. package/lib/api/index.d.ts +4 -0
  100. package/lib/api/index.js +14 -2
  101. package/lib/api/index.js.map +1 -1
  102. package/lib/api/types.d.ts +782 -186
  103. package/lib/api/typesWithBodyKey.d.ts +791 -186
  104. package/lib/client.js +9 -12
  105. package/lib/client.js.map +1 -1
  106. package/lib/helpers.js +1 -1
  107. package/lib/helpers.js.map +1 -1
  108. package/package.json +12 -12
@@ -9,28 +9,28 @@ export default class TextStructure {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Find the structure of a text field. Find the structure of a text field in an Elasticsearch index. This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. For example, if you have ingested data into a very simple index that has just `@timestamp` and message fields, you can use this API to see what common structure exists in the message field. The response from the API contains: * Sample messages. * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. * Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/find-field-structure.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/find-field-structure.html | Elasticsearch API documentation}
13
13
  */
14
14
  findFieldStructure(this: That, params: T.TextStructureFindFieldStructureRequest | TB.TextStructureFindFieldStructureRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureFindFieldStructureResponse>;
15
15
  findFieldStructure(this: That, params: T.TextStructureFindFieldStructureRequest | TB.TextStructureFindFieldStructureRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureFindFieldStructureResponse, unknown>>;
16
16
  findFieldStructure(this: That, params: T.TextStructureFindFieldStructureRequest | TB.TextStructureFindFieldStructureRequest, options?: TransportRequestOptions): Promise<T.TextStructureFindFieldStructureResponse>;
17
17
  /**
18
18
  * Find the structure of text messages. Find the structure of a list of text messages. The messages must contain data that is suitable to be ingested into Elasticsearch. This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. The response from the API contains: * Sample messages. * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response. It helps determine why the returned structure was chosen.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/find-message-structure.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/find-message-structure.html | Elasticsearch API documentation}
20
20
  */
21
21
  findMessageStructure(this: That, params: T.TextStructureFindMessageStructureRequest | TB.TextStructureFindMessageStructureRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureFindMessageStructureResponse>;
22
22
  findMessageStructure(this: That, params: T.TextStructureFindMessageStructureRequest | TB.TextStructureFindMessageStructureRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureFindMessageStructureResponse, unknown>>;
23
23
  findMessageStructure(this: That, params: T.TextStructureFindMessageStructureRequest | TB.TextStructureFindMessageStructureRequest, options?: TransportRequestOptions): Promise<T.TextStructureFindMessageStructureResponse>;
24
24
  /**
25
25
  * Find the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch. This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. Unlike other Elasticsearch endpoints, the data that is posted to this endpoint does not need to be UTF-8 encoded and in JSON format. It must, however, be text; binary text formats are not currently supported. The size is limited to the Elasticsearch HTTP receive buffer size, which defaults to 100 Mb. The response from the API contains: * A couple of messages from the beginning of the text. * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. * Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. All this information can be calculated by the structure finder with no guidance. However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/find-structure.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/find-structure.html | Elasticsearch API documentation}
27
27
  */
28
28
  findStructure<TJsonDocument = unknown>(this: That, params: T.TextStructureFindStructureRequest<TJsonDocument> | TB.TextStructureFindStructureRequest<TJsonDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureFindStructureResponse>;
29
29
  findStructure<TJsonDocument = unknown>(this: That, params: T.TextStructureFindStructureRequest<TJsonDocument> | TB.TextStructureFindStructureRequest<TJsonDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureFindStructureResponse, unknown>>;
30
30
  findStructure<TJsonDocument = unknown>(this: That, params: T.TextStructureFindStructureRequest<TJsonDocument> | TB.TextStructureFindStructureRequest<TJsonDocument>, options?: TransportRequestOptions): Promise<T.TextStructureFindStructureResponse>;
31
31
  /**
32
32
  * Test a Grok pattern. Test a Grok pattern on one or more lines of text. The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings.
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/test-grok-pattern.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/test-grok-pattern.html | Elasticsearch API documentation}
34
34
  */
35
35
  testGrokPattern(this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureTestGrokPatternResponse>;
36
36
  testGrokPattern(this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureTestGrokPatternResponse, unknown>>;
@@ -9,84 +9,91 @@ export default class Transform {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Delete a transform.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/delete-transform.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/delete-transform.html | Elasticsearch API documentation}
13
13
  */
14
14
  deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformDeleteTransformResponse>;
15
15
  deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformDeleteTransformResponse, unknown>>;
16
16
  deleteTransform(this: That, params: T.TransformDeleteTransformRequest | TB.TransformDeleteTransformRequest, options?: TransportRequestOptions): Promise<T.TransformDeleteTransformResponse>;
17
17
  /**
18
18
  * Retrieves transform usage information for transform nodes.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-transform-node-stats.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-transform-node-stats.html | Elasticsearch API documentation}
20
20
  */
21
21
  getNodeStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
22
22
  getNodeStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
23
23
  getNodeStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
24
24
  /**
25
25
  * Get transforms. Get configuration information for transforms.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-transform.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-transform.html | Elasticsearch API documentation}
27
27
  */
28
28
  getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformGetTransformResponse>;
29
29
  getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformGetTransformResponse, unknown>>;
30
30
  getTransform(this: That, params?: T.TransformGetTransformRequest | TB.TransformGetTransformRequest, options?: TransportRequestOptions): Promise<T.TransformGetTransformResponse>;
31
31
  /**
32
32
  * Get transform stats. Get usage information for transforms.
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/get-transform-stats.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/get-transform-stats.html | Elasticsearch API documentation}
34
34
  */
35
35
  getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformGetTransformStatsResponse>;
36
36
  getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformGetTransformStatsResponse, unknown>>;
37
37
  getTransformStats(this: That, params: T.TransformGetTransformStatsRequest | TB.TransformGetTransformStatsRequest, options?: TransportRequestOptions): Promise<T.TransformGetTransformStatsResponse>;
38
38
  /**
39
39
  * Preview a transform. Generates a preview of the results that you will get when you create a transform with the same configuration. It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also generates a list of mappings and settings for the destination index. These values are determined based on the field types of the source index and the transform aggregations.
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/preview-transform.html | Elasticsearch API documentation}
40
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/preview-transform.html | Elasticsearch API documentation}
41
41
  */
42
42
  previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformPreviewTransformResponse<TTransform>>;
43
43
  previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformPreviewTransformResponse<TTransform>, unknown>>;
44
44
  previewTransform<TTransform = unknown>(this: That, params?: T.TransformPreviewTransformRequest | TB.TransformPreviewTransformRequest, options?: TransportRequestOptions): Promise<T.TransformPreviewTransformResponse<TTransform>>;
45
45
  /**
46
46
  * Create a transform. Creates a transform. A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a unique row per entity. You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values in the latest object. You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and `view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the time of creation and uses those same roles. If those roles do not have the required privileges on the source and destination indices, the transform fails when it attempts unauthorized operations. NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any `.transform-internal*` indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do not give users any privileges on `.transform-internal*` indices. If you used transforms prior to 7.5, also do not give users any privileges on `.data-frame-internal*` indices.
47
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/put-transform.html | Elasticsearch API documentation}
47
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/put-transform.html | Elasticsearch API documentation}
48
48
  */
49
49
  putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformPutTransformResponse>;
50
50
  putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformPutTransformResponse, unknown>>;
51
51
  putTransform(this: That, params: T.TransformPutTransformRequest | TB.TransformPutTransformRequest, options?: TransportRequestOptions): Promise<T.TransformPutTransformResponse>;
52
52
  /**
53
53
  * Reset a transform. Before you can reset it, you must stop it; alternatively, use the `force` query parameter. If the destination index was created by the transform, it is deleted.
54
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/reset-transform.html | Elasticsearch API documentation}
54
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/reset-transform.html | Elasticsearch API documentation}
55
55
  */
56
56
  resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformResetTransformResponse>;
57
57
  resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformResetTransformResponse, unknown>>;
58
58
  resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptions): Promise<T.TransformResetTransformResponse>;
59
59
  /**
60
60
  * Schedule a transform to start now. Instantly run a transform to process data. If you run this API, the transform will process the new data instantly, without waiting for the configured frequency interval. After the API is called, the transform will be processed again at `now + frequency` unless the API is called again in the meantime.
61
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/schedule-now-transform.html | Elasticsearch API documentation}
61
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/schedule-now-transform.html | Elasticsearch API documentation}
62
62
  */
63
63
  scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformScheduleNowTransformResponse>;
64
64
  scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformScheduleNowTransformResponse, unknown>>;
65
65
  scheduleNowTransform(this: That, params: T.TransformScheduleNowTransformRequest | TB.TransformScheduleNowTransformRequest, options?: TransportRequestOptions): Promise<T.TransformScheduleNowTransformResponse>;
66
+ /**
67
+ * Set upgrade_mode for transform indices. Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. When upgrading your cluster, in some circumstances you must restart your nodes and reindex your transform indices. In those circumstances, there must be no transforms running. You can close the transforms, do the upgrade, then open all the transforms again. Alternatively, you can use this API to temporarily halt tasks associated with the transforms and prevent new transforms from opening. You can also use this API during upgrades that do not require you to reindex your transform indices, though stopping transforms is not a requirement in that case. You can see the current value for the upgrade_mode setting by using the get transform info API.
68
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-set-upgrade-mode | Elasticsearch API documentation}
69
+ */
70
+ setUpgradeMode(this: That, params?: T.TransformSetUpgradeModeRequest | TB.TransformSetUpgradeModeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformSetUpgradeModeResponse>;
71
+ setUpgradeMode(this: That, params?: T.TransformSetUpgradeModeRequest | TB.TransformSetUpgradeModeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformSetUpgradeModeResponse, unknown>>;
72
+ setUpgradeMode(this: That, params?: T.TransformSetUpgradeModeRequest | TB.TransformSetUpgradeModeRequest, options?: TransportRequestOptions): Promise<T.TransformSetUpgradeModeResponse>;
66
73
  /**
67
74
  * Start a transform. When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping definitions for the destination index from the source indices and the transform aggregations. If fields in the destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations), the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings in a pivot transform. When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you created the transform, they occur when you start the transform—with the exception of privilege checks. When Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the time of creation and uses those same roles. If those roles do not have the required privileges on the source and destination indices, the transform fails when it attempts unauthorized operations.
68
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/start-transform.html | Elasticsearch API documentation}
75
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/start-transform.html | Elasticsearch API documentation}
69
76
  */
70
77
  startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformStartTransformResponse>;
71
78
  startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformStartTransformResponse, unknown>>;
72
79
  startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptions): Promise<T.TransformStartTransformResponse>;
73
80
  /**
74
81
  * Stop transforms. Stops one or more transforms.
75
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/stop-transform.html | Elasticsearch API documentation}
82
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/stop-transform.html | Elasticsearch API documentation}
76
83
  */
77
84
  stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformStopTransformResponse>;
78
85
  stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformStopTransformResponse, unknown>>;
79
86
  stopTransform(this: That, params: T.TransformStopTransformRequest | TB.TransformStopTransformRequest, options?: TransportRequestOptions): Promise<T.TransformStopTransformResponse>;
80
87
  /**
81
88
  * Update a transform. Updates certain properties of a transform. All updated properties except `description` do not take effect until after the transform starts the next checkpoint, thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata` privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the time of update and runs with those privileges.
82
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-transform.html | Elasticsearch API documentation}
89
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-update-transform | Elasticsearch API documentation}
83
90
  */
84
91
  updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformUpdateTransformResponse>;
85
92
  updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformUpdateTransformResponse, unknown>>;
86
93
  updateTransform(this: That, params: T.TransformUpdateTransformRequest | TB.TransformUpdateTransformRequest, options?: TransportRequestOptions): Promise<T.TransformUpdateTransformResponse>;
87
94
  /**
88
95
  * Upgrade all transforms. Transforms are compatible across minor versions and between supported major versions. However, over time, the format of transform configuration information may change. This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not affect the source and destination indices. The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. Resolve the issue then re-run the process again. A summary is returned when the upgrade is finished. To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. You may want to perform a recent cluster backup prior to the upgrade.
89
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/upgrade-transforms.html | Elasticsearch API documentation}
96
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-upgrade-transforms | Elasticsearch API documentation}
90
97
  */
91
98
  upgradeTransforms(this: That, params?: T.TransformUpgradeTransformsRequest | TB.TransformUpgradeTransformsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformUpgradeTransformsResponse>;
92
99
  upgradeTransforms(this: That, params?: T.TransformUpgradeTransformsRequest | TB.TransformUpgradeTransformsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformUpgradeTransformsResponse, unknown>>;
@@ -255,6 +255,27 @@ class Transform {
255
255
  };
256
256
  return await this.transport.request({ path, method, querystring, body, meta }, options);
257
257
  }
258
+ async setUpgradeMode(params, options) {
259
+ const acceptedPath = [];
260
+ const querystring = {};
261
+ const body = undefined;
262
+ params = params !== null && params !== void 0 ? params : {};
263
+ for (const key in params) {
264
+ if (acceptedPath.includes(key)) {
265
+ continue;
266
+ }
267
+ else if (key !== 'body') {
268
+ // @ts-expect-error
269
+ querystring[key] = params[key];
270
+ }
271
+ }
272
+ const method = 'POST';
273
+ const path = '/_transform/set_upgrade_mode';
274
+ const meta = {
275
+ name: 'transform.set_upgrade_mode'
276
+ };
277
+ return await this.transport.request({ path, method, querystring, body, meta }, options);
278
+ }
258
279
  async startTransform(params, options) {
259
280
  const acceptedPath = ['transform_id'];
260
281
  const querystring = {};
@@ -1 +1 @@
1
- {"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../src/api/api/transform.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAuBH,MAAqB,SAAS;IAE5B,YAAa,SAAoB;QADjC;;;;;WAAoB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IASD,KAAK,CAAC,eAAe,CAAc,MAA8E,EAAE,OAAiC;QAClJ,MAAM,YAAY,GAAa,CAAC,cAAc,CAAC,CAAA;QAC/C,MAAM,WAAW,GAAwB,EAAE,CAAA;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAA;QAEtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,SAAQ;YACV,CAAC;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;gBAC1B,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAA;QACvB,MAAM,IAAI,GAAG,eAAe,kBAAkB,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAChF,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,4BAA4B;YAClC,SAAS,EAAE;gBACT,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC;SACF,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OA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AAG,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,SAAQ;YACV,CAAC;iBAAM,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;gBAC1B,mBAAmB;gBACnB,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,CAAA;QACrB,MAAM,IAAI,GAAG,sBAAsB,CAAA;QACnC,MAAM,IAAI,GAA6B;YACrC,IAAI,EAAE,8BAA8B;SACrC,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACF;AAldD,4BAkdC"}
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Update a document. Update a document by running a script or passing a partial document. If the Elasticsearch security features are enabled, you must have the `index` or `write` index privilege for the target index or index alias. The script can update, delete, or skip modifying the document. The API also supports passing a partial document, which is merged into the existing document. To fully replace an existing document, use the index API. This operation: * Gets the document (collocated with the shard) from the index. * Runs the specified script. * Indexes the result. The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. The `_source` field must be enabled to use this API. In addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp).
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-update.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/docs-update.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function UpdateApi<TDocument = unknown, TPartialDocument = unknown, TDocumentR = unknown>(this: That, params: T.UpdateRequest<TDocument, TPartialDocument> | TB.UpdateRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateResponse<TDocumentR>>;
12
12
  export default function UpdateApi<TDocument = unknown, TPartialDocument = unknown, TDocumentR = unknown>(this: That, params: T.UpdateRequest<TDocument, TPartialDocument> | TB.UpdateRequest<TDocument, TPartialDocument>, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateResponse<TDocumentR>, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Update documents. Updates documents that match the specified query. If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: * `read` * `index` or `write` You can specify the query criteria in the request URI or the request body using the same syntax as the search API. When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. When the versions match, the document is updated and the version number is incremented. If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. You can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`. Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than `max_docs` until it has successfully updated `max_docs` documents or it has gone through every document in the source query. NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. A bulk update request is performed for each batch of matching documents. Any query or update failures cause the update by query request to fail and the failures are shown in the response. Any update requests that completed successfully still stick, they are not rolled back. **Throttling update requests** To control the rate at which update by query issues batches of update operations, you can set `requests_per_second` to any positive decimal number. This pads each batch with a wait time to throttle the rate. Set `requests_per_second` to `-1` to turn off throttling. Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. By default the batch size is 1000, so if `requests_per_second` is set to `500`: ``` target_time = 1000 / 500 per second = 2 seconds wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds ``` Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. This is "bursty" instead of "smooth". **Slicing** Update by query supports sliced scroll to parallelize the update process. This can improve efficiency and provide a convenient way to break the request down into smaller parts. Setting `slices` to `auto` chooses a reasonable number for most data streams and indices. This setting will use one slice per shard, up to a certain limit. If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. Adding `slices` to `_update_by_query` just automates the manual process of creating sub-requests, which means it has some quirks: * You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. * Fetching the status of the task for the request with `slices` only contains the status of completed slices. * These sub-requests are individually addressable for things like cancellation and rethrottling. * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. * Canceling the request with slices will cancel each sub-request. * Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. * Parameters like `requests_per_second` and `max_docs` on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being updated. * Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. * Update performance scales linearly across available resources with the number of slices. Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. **Update the document source** Update by query supports scripts to update the document source. As with the update API, you can set `ctx.op` to change the operation that is performed. Set `ctx.op = "noop"` if your script decides that it doesn't have to make any changes. The update by query operation skips updating the document and increments the `noop` counter. Set `ctx.op = "delete"` if your script decides that the document should be deleted. The update by query operation deletes the document and increments the `deleted` counter. Update by query supports only `index`, `noop`, and `delete`. Setting `ctx.op` to anything else is an error. Setting any other field in `ctx` is an error. This API enables you to only modify the source of matching documents; you cannot move them.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-update-by-query.html | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/docs-update-by-query.html | Elasticsearch API documentation}
10
10
  */
11
11
  export default function UpdateByQueryApi(this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateByQueryResponse>;
12
12
  export default function UpdateByQueryApi(this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateByQueryResponse, unknown>>;
@@ -6,7 +6,7 @@ interface That {
6
6
  }
7
7
  /**
8
8
  * Throttle an update by query operation. Change the number of requests per second for a particular update by query operation. Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.
9
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-update-by-query.html#docs-update-by-query-rethrottle | Elasticsearch API documentation}
9
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/docs-update-by-query.html#docs-update-by-query-rethrottle | Elasticsearch API documentation}
10
10
  */
11
11
  export default function UpdateByQueryRethrottleApi(this: That, params: T.UpdateByQueryRethrottleRequest | TB.UpdateByQueryRethrottleRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateByQueryRethrottleResponse>;
12
12
  export default function UpdateByQueryRethrottleApi(this: That, params: T.UpdateByQueryRethrottleRequest | TB.UpdateByQueryRethrottleRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.UpdateByQueryRethrottleResponse, unknown>>;
@@ -9,91 +9,91 @@ export default class Watcher {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Acknowledge a watch. Acknowledging a watch enables you to manually throttle the execution of the watch's actions. The acknowledgement state of an action is stored in the `status.actions.<id>.ack.state` structure. IMPORTANT: If the specified watch is currently being executed, this API will return an error The reason for this behavior is to prevent overwriting the watch status from a watch execution. Acknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`. This happens when the condition of the watch is not met (the condition evaluates to false).
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-ack-watch.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-ack-watch | Elasticsearch API documentation}
13
13
  */
14
14
  ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherAckWatchResponse>;
15
15
  ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherAckWatchResponse, unknown>>;
16
16
  ackWatch(this: That, params: T.WatcherAckWatchRequest | TB.WatcherAckWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherAckWatchResponse>;
17
17
  /**
18
18
  * Activate a watch. A watch can be either active or inactive.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-activate-watch.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-activate-watch | Elasticsearch API documentation}
20
20
  */
21
21
  activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherActivateWatchResponse>;
22
22
  activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherActivateWatchResponse, unknown>>;
23
23
  activateWatch(this: That, params: T.WatcherActivateWatchRequest | TB.WatcherActivateWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherActivateWatchResponse>;
24
24
  /**
25
25
  * Deactivate a watch. A watch can be either active or inactive.
26
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-deactivate-watch.html | Elasticsearch API documentation}
26
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-deactivate-watch | Elasticsearch API documentation}
27
27
  */
28
28
  deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherDeactivateWatchResponse>;
29
29
  deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherDeactivateWatchResponse, unknown>>;
30
30
  deactivateWatch(this: That, params: T.WatcherDeactivateWatchRequest | TB.WatcherDeactivateWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherDeactivateWatchResponse>;
31
31
  /**
32
32
  * Delete a watch. When the watch is removed, the document representing the watch in the `.watches` index is gone and it will never be run again. Deleting a watch does not delete any watch execution records related to this watch from the watch history. IMPORTANT: Deleting a watch must be done by using only this API. Do not delete the watch directly from the `.watches` index using the Elasticsearch delete document API When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index.
33
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-delete-watch.html | Elasticsearch API documentation}
33
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-delete-watch | Elasticsearch API documentation}
34
34
  */
35
35
  deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherDeleteWatchResponse>;
36
36
  deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherDeleteWatchResponse, unknown>>;
37
37
  deleteWatch(this: That, params: T.WatcherDeleteWatchRequest | TB.WatcherDeleteWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherDeleteWatchResponse>;
38
38
  /**
39
39
  * Run a watch. This API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes. For testing and debugging purposes, you also have fine-grained control on how the watch runs. You can run the watch without running all of its actions or alternatively by simulating them. You can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs. You can use the run watch API to run watches that are not yet registered by specifying the watch definition inline. This serves as great tool for testing and debugging your watches prior to adding them to Watcher. When Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches. If your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch. When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.
40
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-execute-watch.html | Elasticsearch API documentation}
40
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-execute-watch | Elasticsearch API documentation}
41
41
  */
42
42
  executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherExecuteWatchResponse>;
43
43
  executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherExecuteWatchResponse, unknown>>;
44
44
  executeWatch(this: That, params?: T.WatcherExecuteWatchRequest | TB.WatcherExecuteWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherExecuteWatchResponse>;
45
45
  /**
46
46
  * Get Watcher index settings. Get settings for the Watcher internal index (`.watches`). Only a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.
47
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-get-settings.html | Elasticsearch API documentation}
47
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-settings | Elasticsearch API documentation}
48
48
  */
49
49
  getSettings(this: That, params?: T.WatcherGetSettingsRequest | TB.WatcherGetSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherGetSettingsResponse>;
50
50
  getSettings(this: That, params?: T.WatcherGetSettingsRequest | TB.WatcherGetSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherGetSettingsResponse, unknown>>;
51
51
  getSettings(this: That, params?: T.WatcherGetSettingsRequest | TB.WatcherGetSettingsRequest, options?: TransportRequestOptions): Promise<T.WatcherGetSettingsResponse>;
52
52
  /**
53
53
  * Get a watch.
54
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-get-watch.html | Elasticsearch API documentation}
54
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-watch | Elasticsearch API documentation}
55
55
  */
56
56
  getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherGetWatchResponse>;
57
57
  getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherGetWatchResponse, unknown>>;
58
58
  getWatch(this: That, params: T.WatcherGetWatchRequest | TB.WatcherGetWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherGetWatchResponse>;
59
59
  /**
60
60
  * Create or update a watch. When a watch is registered, a new document that represents the watch is added to the `.watches` index and its trigger is immediately registered with the relevant trigger engine. Typically for the `schedule` trigger, the scheduler is the trigger engine. IMPORTANT: You must use Kibana or this API to create a watch. Do not add a watch directly to the `.watches` index by using the Elasticsearch index API. If Elasticsearch security features are enabled, do not give users write privileges on the `.watches` index. When you add a watch you can also define its initial active state by setting the *active* parameter. When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges. If the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.
61
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-put-watch.html | Elasticsearch API documentation}
61
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-put-watch | Elasticsearch API documentation}
62
62
  */
63
63
  putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherPutWatchResponse>;
64
64
  putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherPutWatchResponse, unknown>>;
65
65
  putWatch(this: That, params: T.WatcherPutWatchRequest | TB.WatcherPutWatchRequest, options?: TransportRequestOptions): Promise<T.WatcherPutWatchResponse>;
66
66
  /**
67
67
  * Query watches. Get all registered watches in a paginated manner and optionally filter watches by a query. Note that only the `_id` and `metadata.*` fields are queryable or sortable.
68
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-query-watches.html | Elasticsearch API documentation}
68
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-query-watches | Elasticsearch API documentation}
69
69
  */
70
70
  queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherQueryWatchesResponse>;
71
71
  queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherQueryWatchesResponse, unknown>>;
72
72
  queryWatches(this: That, params?: T.WatcherQueryWatchesRequest | TB.WatcherQueryWatchesRequest, options?: TransportRequestOptions): Promise<T.WatcherQueryWatchesResponse>;
73
73
  /**
74
74
  * Start the watch service. Start the Watcher service if it is not already running.
75
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-start.html | Elasticsearch API documentation}
75
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-start | Elasticsearch API documentation}
76
76
  */
77
77
  start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStartResponse>;
78
78
  start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStartResponse, unknown>>;
79
79
  start(this: That, params?: T.WatcherStartRequest | TB.WatcherStartRequest, options?: TransportRequestOptions): Promise<T.WatcherStartResponse>;
80
80
  /**
81
81
  * Get Watcher statistics. This API always returns basic metrics. You retrieve more metrics by using the metric parameter.
82
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-stats.html | Elasticsearch API documentation}
82
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stats | Elasticsearch API documentation}
83
83
  */
84
84
  stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStatsResponse>;
85
85
  stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStatsResponse, unknown>>;
86
86
  stats(this: That, params?: T.WatcherStatsRequest | TB.WatcherStatsRequest, options?: TransportRequestOptions): Promise<T.WatcherStatsResponse>;
87
87
  /**
88
88
  * Stop the watch service. Stop the Watcher service if it is running.
89
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-stop.html | Elasticsearch API documentation}
89
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stop | Elasticsearch API documentation}
90
90
  */
91
91
  stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherStopResponse>;
92
92
  stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherStopResponse, unknown>>;
93
93
  stop(this: That, params?: T.WatcherStopRequest | TB.WatcherStopRequest, options?: TransportRequestOptions): Promise<T.WatcherStopResponse>;
94
94
  /**
95
95
  * Update Watcher index settings. Update settings for the Watcher internal index (`.watches`). Only a subset of settings can be modified. This includes `index.auto_expand_replicas`, `index.number_of_replicas`, `index.routing.allocation.exclude.*`, `index.routing.allocation.include.*` and `index.routing.allocation.require.*`. Modification of `index.routing.allocation.include._tier_preference` is an exception and is not allowed as the Watcher shards must always be in the `data_content` tier.
96
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/watcher-api-update-settings.html | Elasticsearch API documentation}
96
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-update-settings | Elasticsearch API documentation}
97
97
  */
98
98
  updateSettings(this: That, params?: T.WatcherUpdateSettingsRequest | TB.WatcherUpdateSettingsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.WatcherUpdateSettingsResponse>;
99
99
  updateSettings(this: That, params?: T.WatcherUpdateSettingsRequest | TB.WatcherUpdateSettingsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.WatcherUpdateSettingsResponse, unknown>>;
@@ -9,14 +9,14 @@ export default class Xpack {
9
9
  constructor(transport: Transport);
10
10
  /**
11
11
  * Get information. The information provided by the API includes: * Build information including the build number and timestamp. * License information about the currently installed license. * Feature information for the features that are currently enabled and available under the current license.
12
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/info-api.html | Elasticsearch API documentation}
12
+ * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.19/info-api.html | Elasticsearch API documentation}
13
13
  */
14
14
  info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.XpackInfoResponse>;
15
15
  info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.XpackInfoResponse, unknown>>;
16
16
  info(this: That, params?: T.XpackInfoRequest | TB.XpackInfoRequest, options?: TransportRequestOptions): Promise<T.XpackInfoResponse>;
17
17
  /**
18
18
  * Get usage information. Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.
19
- * @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.18/usage-api.html | Elasticsearch API documentation}
19
+ * @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/group/endpoint-xpack | Elasticsearch API documentation}
20
20
  */
21
21
  usage(this: That, params?: T.XpackUsageRequest | TB.XpackUsageRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.XpackUsageResponse>;
22
22
  usage(this: That, params?: T.XpackUsageRequest | TB.XpackUsageRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.XpackUsageResponse, unknown>>;
@@ -73,6 +73,7 @@ import SlmApi from './api/slm';
73
73
  import SnapshotApi from './api/snapshot';
74
74
  import SqlApi from './api/sql';
75
75
  import SslApi from './api/ssl';
76
+ import StreamsApi from './api/streams';
76
77
  import SynonymsApi from './api/synonyms';
77
78
  import TasksApi from './api/tasks';
78
79
  import termsEnumApi from './api/terms_enum';
@@ -161,6 +162,7 @@ export default interface API {
161
162
  snapshot: SnapshotApi;
162
163
  sql: SqlApi;
163
164
  ssl: SslApi;
165
+ streams: StreamsApi;
164
166
  synonyms: SynonymsApi;
165
167
  tasks: TasksApi;
166
168
  termsEnum: typeof termsEnumApi;
@@ -208,6 +210,7 @@ declare const kSlm: unique symbol;
208
210
  declare const kSnapshot: unique symbol;
209
211
  declare const kSql: unique symbol;
210
212
  declare const kSsl: unique symbol;
213
+ declare const kStreams: unique symbol;
211
214
  declare const kSynonyms: unique symbol;
212
215
  declare const kTasks: unique symbol;
213
216
  declare const kTextStructure: unique symbol;
@@ -250,6 +253,7 @@ export default class API {
250
253
  [kSnapshot]: symbol | null;
251
254
  [kSql]: symbol | null;
252
255
  [kSsl]: symbol | null;
256
+ [kStreams]: symbol | null;
253
257
  [kSynonyms]: symbol | null;
254
258
  [kTasks]: symbol | null;
255
259
  [kTextStructure]: symbol | null;
package/lib/api/index.js CHANGED
@@ -17,7 +17,7 @@
17
17
  * specific language governing permissions and limitations
18
18
  * under the License.
19
19
  */
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  const tslib_1 = require("tslib");
23
23
  /* eslint-disable import/export */
@@ -102,6 +102,7 @@ const slm_1 = tslib_1.__importDefault(require("./api/slm"));
102
102
  const snapshot_1 = tslib_1.__importDefault(require("./api/snapshot"));
103
103
  const sql_1 = tslib_1.__importDefault(require("./api/sql"));
104
104
  const ssl_1 = tslib_1.__importDefault(require("./api/ssl"));
105
+ const streams_1 = tslib_1.__importDefault(require("./api/streams"));
105
106
  const synonyms_1 = tslib_1.__importDefault(require("./api/synonyms"));
106
107
  const tasks_1 = tslib_1.__importDefault(require("./api/tasks"));
107
108
  const terms_enum_1 = tslib_1.__importDefault(require("./api/terms_enum"));
@@ -148,6 +149,7 @@ const kSlm = Symbol('Slm');
148
149
  const kSnapshot = Symbol('Snapshot');
149
150
  const kSql = Symbol('Sql');
150
151
  const kSsl = Symbol('Ssl');
152
+ const kStreams = Symbol('Streams');
151
153
  const kSynonyms = Symbol('Synonyms');
152
154
  const kTasks = Symbol('Tasks');
153
155
  const kTextStructure = Symbol('TextStructure');
@@ -402,6 +404,12 @@ class API {
402
404
  writable: true,
403
405
  value: void 0
404
406
  });
407
+ Object.defineProperty(this, _17, {
408
+ enumerable: true,
409
+ configurable: true,
410
+ writable: true,
411
+ value: void 0
412
+ });
405
413
  this[kAsyncSearch] = null;
406
414
  this[kAutoscaling] = null;
407
415
  this[kCat] = null;
@@ -437,6 +445,7 @@ class API {
437
445
  this[kSnapshot] = null;
438
446
  this[kSql] = null;
439
447
  this[kSsl] = null;
448
+ this[kStreams] = null;
440
449
  this[kSynonyms] = null;
441
450
  this[kTasks] = null;
442
451
  this[kTextStructure] = null;
@@ -445,7 +454,7 @@ class API {
445
454
  this[kXpack] = null;
446
455
  }
447
456
  }
448
- _a = kAsyncSearch, _b = kAutoscaling, _c = kCat, _d = kCcr, _e = kCluster, _f = kConnector, _g = kDanglingIndices, _h = kEnrich, _j = kEql, _k = kEsql, _l = kFeatures, _m = kFleet, _o = kGraph, _p = kIlm, _q = kIndices, _r = kInference, _s = kIngest, _t = kLicense, _u = kLogstash, _v = kMigration, _w = kMl, _x = kMonitoring, _y = kNodes, _z = kProfiling, _0 = kQueryRules, _1 = kRollup, _2 = kSearchApplication, _3 = kSearchableSnapshots, _4 = kSecurity, _5 = kShutdown, _6 = kSimulate, _7 = kSlm, _8 = kSnapshot, _9 = kSql, _10 = kSsl, _11 = kSynonyms, _12 = kTasks, _13 = kTextStructure, _14 = kTransform, _15 = kWatcher, _16 = kXpack;
457
+ _a = kAsyncSearch, _b = kAutoscaling, _c = kCat, _d = kCcr, _e = kCluster, _f = kConnector, _g = kDanglingIndices, _h = kEnrich, _j = kEql, _k = kEsql, _l = kFeatures, _m = kFleet, _o = kGraph, _p = kIlm, _q = kIndices, _r = kInference, _s = kIngest, _t = kLicense, _u = kLogstash, _v = kMigration, _w = kMl, _x = kMonitoring, _y = kNodes, _z = kProfiling, _0 = kQueryRules, _1 = kRollup, _2 = kSearchApplication, _3 = kSearchableSnapshots, _4 = kSecurity, _5 = kShutdown, _6 = kSimulate, _7 = kSlm, _8 = kSnapshot, _9 = kSql, _10 = kSsl, _11 = kStreams, _12 = kSynonyms, _13 = kTasks, _14 = kTextStructure, _15 = kTransform, _16 = kWatcher, _17 = kXpack;
449
458
  exports.default = API;
450
459
  API.prototype.bulk = bulk_1.default;
451
460
  API.prototype.capabilities = capabilities_1.default;
@@ -598,6 +607,9 @@ Object.defineProperties(API.prototype, {
598
607
  ssl: {
599
608
  get() { return this[kSsl] === null ? (this[kSsl] = new ssl_1.default(this.transport)) : this[kSsl]; }
600
609
  },
610
+ streams: {
611
+ get() { return this[kStreams] === null ? (this[kStreams] = new streams_1.default(this.transport)) : this[kStreams]; }
612
+ },
601
613
  synonyms: {
602
614
  get() { return this[kSynonyms] === null ? (this[kSynonyms] = new synonyms_1.default(this.transport)) : this[kSynonyms]; }
603
615
  },