Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elastic/elasticsearch

Package Overview
Dependencies
Maintainers
82
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/elasticsearch - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0-patch.1

free-report-junit.xml

2

index.d.ts

@@ -24,3 +24,5 @@ /*

export * from '@elastic/transport'
export * as estypes from './lib/api/types'
export * as estypesWithBody from './lib/api/types'
export { Client, SniffingTransport }
export type { ClientOptions, NodeOptions } from './lib/client'

@@ -16,2 +16,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

getDesiredNodes(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
health(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
health(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
health(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
updateDesiredNodes(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;

@@ -18,0 +21,0 @@ updateDesiredNodes(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;

@@ -65,2 +65,19 @@ "use strict";

}
async health(params, options) {
const acceptedPath = [];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
querystring[key] = params[key];
}
}
const method = 'GET';
const path = '/_internal/_health';
return await this.transport.request({ path, method, querystring, body }, options);
}
async updateDesiredNodes(params, options) {

@@ -67,0 +84,0 @@ const acceptedPath = ['history_id', 'version'];

12

lib/api/api/async_search.d.ts

@@ -13,12 +13,12 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

delete(this: That, params: T.AsyncSearchDeleteRequest | TB.AsyncSearchDeleteRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchDeleteResponse>;
get<TDocument = unknown>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchGetResponse<TDocument>>;
get<TDocument = unknown>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchGetResponse<TDocument>, unknown>>;
get<TDocument = unknown>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchGetResponse<TDocument>>;
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>;
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchGetResponse<TDocument, TAggregations>, unknown>>;
get<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params: T.AsyncSearchGetRequest | TB.AsyncSearchGetRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchGetResponse<TDocument, TAggregations>>;
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchStatusResponse>;
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchStatusResponse, unknown>>;
status(this: That, params: T.AsyncSearchStatusRequest | TB.AsyncSearchStatusRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchStatusResponse>;
submit<TDocument = unknown>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchSubmitResponse<TDocument>>;
submit<TDocument = unknown>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchSubmitResponse<TDocument>, unknown>>;
submit<TDocument = unknown>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument>>;
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>;
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.AsyncSearchSubmitResponse<TDocument, TAggregations>, unknown>>;
submit<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>>(this: That, params?: T.AsyncSearchSubmitRequest | TB.AsyncSearchSubmitRequest, options?: TransportRequestOptions): Promise<T.AsyncSearchSubmitResponse<TDocument, TAggregations>>;
}
export {};

@@ -16,2 +16,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptions): Promise<T.CatAllocationResponse>;
componentTemplates(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
componentTemplates(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
componentTemplates(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatCountResponse>;

@@ -18,0 +21,0 @@ count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatCountResponse, unknown>>;

@@ -83,2 +83,27 @@ "use strict";

}
async componentTemplates(params, options) {
const acceptedPath = ['name'];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
querystring[key] = params[key];
}
}
let method = '';
let path = '';
if (params.name != null) {
method = 'GET';
path = `/_cat/component_templates/${encodeURIComponent(params.name.toString())}`;
}
else {
method = 'GET';
path = '/_cat/component_templates';
}
return await this.transport.request({ path, method, querystring, body }, options);
}
async count(params, options) {

@@ -85,0 +110,0 @@ const acceptedPath = ['index'];

@@ -100,5 +100,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

migrateToDataStream(this: That, params: T.IndicesMigrateToDataStreamRequest | TB.IndicesMigrateToDataStreamRequest, options?: TransportRequestOptions): Promise<T.IndicesMigrateToDataStreamResponse>;
modifyDataStream(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
modifyDataStream(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
modifyDataStream(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
modifyDataStream(this: That, params: T.IndicesModifyDataStreamRequest | TB.IndicesModifyDataStreamRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesModifyDataStreamResponse>;
modifyDataStream(this: That, params: T.IndicesModifyDataStreamRequest | TB.IndicesModifyDataStreamRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesModifyDataStreamResponse, unknown>>;
modifyDataStream(this: That, params: T.IndicesModifyDataStreamRequest | TB.IndicesModifyDataStreamRequest, options?: TransportRequestOptions): Promise<T.IndicesModifyDataStreamResponse>;
open(this: That, params: T.IndicesOpenRequest | TB.IndicesOpenRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesOpenResponse>;

@@ -105,0 +105,0 @@ open(this: That, params: T.IndicesOpenRequest | TB.IndicesOpenRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesOpenResponse, unknown>>;

@@ -724,10 +724,24 @@ "use strict";

const acceptedPath = [];
const acceptedBody = ['actions'];
const querystring = {};
const body = undefined;
params = params !== null && params !== void 0 ? params : {};
// @ts-expect-error
const userBody = params === null || params === void 0 ? void 0 : params.body;
let body;
if (typeof userBody === 'string') {
body = userBody;
}
else {
body = userBody != null ? { ...userBody } : undefined;
}
for (const key in params) {
if (acceptedPath.includes(key)) {
if (acceptedBody.includes(key)) {
body = body !== null && body !== void 0 ? body : {};
// @ts-expect-error
body[key] = params[key];
}
else if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];

@@ -734,0 +748,0 @@ }

@@ -23,3 +23,3 @@ "use strict";

const acceptedPath = ['index'];
const acceptedBody = ['_source', 'docvalue_fields', 'stored_fields', 'fields', 'knn'];
const acceptedBody = ['_source', 'docvalue_fields', 'stored_fields', 'fields', 'filter', 'knn'];
const querystring = {};

@@ -26,0 +26,0 @@ // @ts-expect-error

@@ -13,9 +13,9 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

deprecations(this: That, params?: T.MigrationDeprecationsRequest | TB.MigrationDeprecationsRequest, options?: TransportRequestOptions): Promise<T.MigrationDeprecationsResponse>;
getFeatureUpgradeStatus(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
getFeatureUpgradeStatus(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
getFeatureUpgradeStatus(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
postFeatureUpgrade(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;
postFeatureUpgrade(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;
postFeatureUpgrade(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>;
getFeatureUpgradeStatus(this: That, params?: T.MigrationGetFeatureUpgradeStatusRequest | TB.MigrationGetFeatureUpgradeStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MigrationGetFeatureUpgradeStatusResponse>;
getFeatureUpgradeStatus(this: That, params?: T.MigrationGetFeatureUpgradeStatusRequest | TB.MigrationGetFeatureUpgradeStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MigrationGetFeatureUpgradeStatusResponse, unknown>>;
getFeatureUpgradeStatus(this: That, params?: T.MigrationGetFeatureUpgradeStatusRequest | TB.MigrationGetFeatureUpgradeStatusRequest, options?: TransportRequestOptions): Promise<T.MigrationGetFeatureUpgradeStatusResponse>;
postFeatureUpgrade(this: That, params?: T.MigrationPostFeatureUpgradeRequest | TB.MigrationPostFeatureUpgradeRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MigrationPostFeatureUpgradeResponse>;
postFeatureUpgrade(this: That, params?: T.MigrationPostFeatureUpgradeRequest | TB.MigrationPostFeatureUpgradeRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MigrationPostFeatureUpgradeResponse, unknown>>;
postFeatureUpgrade(this: That, params?: T.MigrationPostFeatureUpgradeRequest | TB.MigrationPostFeatureUpgradeRequest, options?: TransportRequestOptions): Promise<T.MigrationPostFeatureUpgradeResponse>;
}
export {};

@@ -67,2 +67,3 @@ "use strict";

else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];

@@ -85,2 +86,3 @@ }

else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];

@@ -87,0 +89,0 @@ }

@@ -100,2 +100,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

getJobs(this: That, params?: T.MlGetJobsRequest | TB.MlGetJobsRequest, options?: TransportRequestOptions): Promise<T.MlGetJobsResponse>;
getMemoryStats(this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlGetMemoryStatsResponse>;
getMemoryStats(this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlGetMemoryStatsResponse, unknown>>;
getMemoryStats(this: That, params?: T.MlGetMemoryStatsRequest | TB.MlGetMemoryStatsRequest, options?: TransportRequestOptions): Promise<T.MlGetMemoryStatsResponse>;
getModelSnapshotUpgradeStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>;

@@ -102,0 +105,0 @@ getModelSnapshotUpgradeStats(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>;

@@ -10,2 +10,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport';

constructor(transport: Transport);
activateUserProfile(this: That, params: T.SecurityActivateUserProfileRequest | TB.SecurityActivateUserProfileRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityActivateUserProfileResponse>;
activateUserProfile(this: That, params: T.SecurityActivateUserProfileRequest | TB.SecurityActivateUserProfileRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityActivateUserProfileResponse, unknown>>;
activateUserProfile(this: That, params: T.SecurityActivateUserProfileRequest | TB.SecurityActivateUserProfileRequest, options?: TransportRequestOptions): Promise<T.SecurityActivateUserProfileResponse>;
authenticate(this: That, params?: T.SecurityAuthenticateRequest | TB.SecurityAuthenticateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityAuthenticateResponse>;

@@ -56,5 +59,11 @@ authenticate(this: That, params?: T.SecurityAuthenticateRequest | TB.SecurityAuthenticateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityAuthenticateResponse, unknown>>;

disableUser(this: That, params: T.SecurityDisableUserRequest | TB.SecurityDisableUserRequest, options?: TransportRequestOptions): Promise<T.SecurityDisableUserResponse>;
disableUserProfile(this: That, params: T.SecurityDisableUserProfileRequest | TB.SecurityDisableUserProfileRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityDisableUserProfileResponse>;
disableUserProfile(this: That, params: T.SecurityDisableUserProfileRequest | TB.SecurityDisableUserProfileRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityDisableUserProfileResponse, unknown>>;
disableUserProfile(this: That, params: T.SecurityDisableUserProfileRequest | TB.SecurityDisableUserProfileRequest, options?: TransportRequestOptions): Promise<T.SecurityDisableUserProfileResponse>;
enableUser(this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityEnableUserResponse>;
enableUser(this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityEnableUserResponse, unknown>>;
enableUser(this: That, params: T.SecurityEnableUserRequest | TB.SecurityEnableUserRequest, options?: TransportRequestOptions): Promise<T.SecurityEnableUserResponse>;
enableUserProfile(this: That, params: T.SecurityEnableUserProfileRequest | TB.SecurityEnableUserProfileRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityEnableUserProfileResponse>;
enableUserProfile(this: That, params: T.SecurityEnableUserProfileRequest | TB.SecurityEnableUserProfileRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityEnableUserProfileResponse, unknown>>;
enableUserProfile(this: That, params: T.SecurityEnableUserProfileRequest | TB.SecurityEnableUserProfileRequest, options?: TransportRequestOptions): Promise<T.SecurityEnableUserProfileResponse>;
enrollKibana(this: That, params?: T.SecurityEnrollKibanaRequest | TB.SecurityEnrollKibanaRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityEnrollKibanaResponse>;

@@ -96,2 +105,5 @@ enrollKibana(this: That, params?: T.SecurityEnrollKibanaRequest | TB.SecurityEnrollKibanaRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityEnrollKibanaResponse, unknown>>;

getUserPrivileges(this: That, params?: T.SecurityGetUserPrivilegesRequest | TB.SecurityGetUserPrivilegesRequest, options?: TransportRequestOptions): Promise<T.SecurityGetUserPrivilegesResponse>;
getUserProfile(this: That, params: T.SecurityGetUserProfileRequest | TB.SecurityGetUserProfileRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityGetUserProfileResponse>;
getUserProfile(this: That, params: T.SecurityGetUserProfileRequest | TB.SecurityGetUserProfileRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityGetUserProfileResponse, unknown>>;
getUserProfile(this: That, params: T.SecurityGetUserProfileRequest | TB.SecurityGetUserProfileRequest, options?: TransportRequestOptions): Promise<T.SecurityGetUserProfileResponse>;
grantApiKey(this: That, params: T.SecurityGrantApiKeyRequest | TB.SecurityGrantApiKeyRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityGrantApiKeyResponse>;

@@ -151,3 +163,9 @@ grantApiKey(this: That, params: T.SecurityGrantApiKeyRequest | TB.SecurityGrantApiKeyRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityGrantApiKeyResponse, unknown>>;

samlServiceProviderMetadata(this: That, params: T.SecuritySamlServiceProviderMetadataRequest | TB.SecuritySamlServiceProviderMetadataRequest, options?: TransportRequestOptions): Promise<T.SecuritySamlServiceProviderMetadataResponse>;
suggestUserProfiles(this: That, params?: T.SecuritySuggestUserProfilesRequest | TB.SecuritySuggestUserProfilesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecuritySuggestUserProfilesResponse>;
suggestUserProfiles(this: That, params?: T.SecuritySuggestUserProfilesRequest | TB.SecuritySuggestUserProfilesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecuritySuggestUserProfilesResponse, unknown>>;
suggestUserProfiles(this: That, params?: T.SecuritySuggestUserProfilesRequest | TB.SecuritySuggestUserProfilesRequest, options?: TransportRequestOptions): Promise<T.SecuritySuggestUserProfilesResponse>;
updateUserProfileData(this: That, params: T.SecurityUpdateUserProfileDataRequest | TB.SecurityUpdateUserProfileDataRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SecurityUpdateUserProfileDataResponse>;
updateUserProfileData(this: That, params: T.SecurityUpdateUserProfileDataRequest | TB.SecurityUpdateUserProfileDataRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SecurityUpdateUserProfileDataResponse, unknown>>;
updateUserProfileData(this: That, params: T.SecurityUpdateUserProfileDataRequest | TB.SecurityUpdateUserProfileDataRequest, options?: TransportRequestOptions): Promise<T.SecurityUpdateUserProfileDataResponse>;
}
export {};

@@ -31,2 +31,33 @@ "use strict";

}
async activateUserProfile(params, options) {
const acceptedPath = [];
const acceptedBody = ['access_token', 'grant_type', 'password', 'username'];
const querystring = {};
// @ts-expect-error
const userBody = params === null || params === void 0 ? void 0 : params.body;
let body;
if (typeof userBody === 'string') {
body = userBody;
}
else {
body = userBody != null ? { ...userBody } : undefined;
}
for (const key in params) {
if (acceptedBody.includes(key)) {
body = body !== null && body !== void 0 ? body : {};
// @ts-expect-error
body[key] = params[key];
}
else if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = 'POST';
const path = '/_security/profile/_activate';
return await this.transport.request({ path, method, querystring, body }, options);
}
async authenticate(params, options) {

@@ -334,2 +365,19 @@ const acceptedPath = [];

}
async disableUserProfile(params, options) {
const acceptedPath = ['uid'];
const querystring = {};
const body = undefined;
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = 'PUT';
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_disable`;
return await this.transport.request({ path, method, querystring, body }, options);
}
async enableUser(params, options) {

@@ -352,2 +400,19 @@ const acceptedPath = ['username'];

}
async enableUserProfile(params, options) {
const acceptedPath = ['uid'];
const querystring = {};
const body = undefined;
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = 'PUT';
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_enable`;
return await this.transport.request({ path, method, querystring, body }, options);
}
async enrollKibana(params, options) {

@@ -630,2 +695,19 @@ const acceptedPath = [];

}
async getUserProfile(params, options) {
const acceptedPath = ['uid'];
const querystring = {};
const body = undefined;
for (const key in params) {
if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = 'GET';
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}`;
return await this.transport.request({ path, method, querystring, body }, options);
}
async grantApiKey(params, options) {

@@ -1139,4 +1221,67 @@ const acceptedPath = [];

}
async suggestUserProfiles(params, options) {
const acceptedPath = [];
const acceptedBody = ['name', 'size'];
const querystring = {};
// @ts-expect-error
const userBody = params === null || params === void 0 ? void 0 : params.body;
let body;
if (typeof userBody === 'string') {
body = userBody;
}
else {
body = userBody != null ? { ...userBody } : undefined;
}
params = params !== null && params !== void 0 ? params : {};
for (const key in params) {
if (acceptedBody.includes(key)) {
body = body !== null && body !== void 0 ? body : {};
// @ts-expect-error
body[key] = params[key];
}
else if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = body != null ? 'POST' : 'GET';
const path = '/_security/profile/_suggest';
return await this.transport.request({ path, method, querystring, body }, options);
}
async updateUserProfileData(params, options) {
const acceptedPath = ['uid'];
const acceptedBody = ['access', 'data'];
const querystring = {};
// @ts-expect-error
const userBody = params === null || params === void 0 ? void 0 : params.body;
let body;
if (typeof userBody === 'string') {
body = userBody;
}
else {
body = userBody != null ? { ...userBody } : undefined;
}
for (const key in params) {
if (acceptedBody.includes(key)) {
body = body !== null && body !== void 0 ? body : {};
// @ts-expect-error
body[key] = params[key];
}
else if (acceptedPath.includes(key)) {
continue;
}
else if (key !== 'body') {
// @ts-expect-error
querystring[key] = params[key];
}
}
const method = 'PUT';
const path = `/_security/profile/${encodeURIComponent(params.uid.toString())}/_data`;
return await this.transport.request({ path, method, querystring, body }, options);
}
}
exports.default = Security;
//# sourceMappingURL=security.js.map

@@ -30,79 +30,79 @@ "use strict";

// and elastic/elastic-client-generator-js to regenerate this file again.
const _internal_1 = (0, tslib_1.__importDefault)(require("./api/_internal"));
const async_search_1 = (0, tslib_1.__importDefault)(require("./api/async_search"));
const autoscaling_1 = (0, tslib_1.__importDefault)(require("./api/autoscaling"));
const bulk_1 = (0, tslib_1.__importDefault)(require("./api/bulk"));
const cat_1 = (0, tslib_1.__importDefault)(require("./api/cat"));
const ccr_1 = (0, tslib_1.__importDefault)(require("./api/ccr"));
const clear_scroll_1 = (0, tslib_1.__importDefault)(require("./api/clear_scroll"));
const close_point_in_time_1 = (0, tslib_1.__importDefault)(require("./api/close_point_in_time"));
const cluster_1 = (0, tslib_1.__importDefault)(require("./api/cluster"));
const count_1 = (0, tslib_1.__importDefault)(require("./api/count"));
const create_1 = (0, tslib_1.__importDefault)(require("./api/create"));
const dangling_indices_1 = (0, tslib_1.__importDefault)(require("./api/dangling_indices"));
const delete_1 = (0, tslib_1.__importDefault)(require("./api/delete"));
const delete_by_query_1 = (0, tslib_1.__importDefault)(require("./api/delete_by_query"));
const delete_by_query_rethrottle_1 = (0, tslib_1.__importDefault)(require("./api/delete_by_query_rethrottle"));
const delete_script_1 = (0, tslib_1.__importDefault)(require("./api/delete_script"));
const enrich_1 = (0, tslib_1.__importDefault)(require("./api/enrich"));
const eql_1 = (0, tslib_1.__importDefault)(require("./api/eql"));
const exists_1 = (0, tslib_1.__importDefault)(require("./api/exists"));
const exists_source_1 = (0, tslib_1.__importDefault)(require("./api/exists_source"));
const explain_1 = (0, tslib_1.__importDefault)(require("./api/explain"));
const features_1 = (0, tslib_1.__importDefault)(require("./api/features"));
const field_caps_1 = (0, tslib_1.__importDefault)(require("./api/field_caps"));
const fleet_1 = (0, tslib_1.__importDefault)(require("./api/fleet"));
const get_1 = (0, tslib_1.__importDefault)(require("./api/get"));
const get_script_1 = (0, tslib_1.__importDefault)(require("./api/get_script"));
const get_script_context_1 = (0, tslib_1.__importDefault)(require("./api/get_script_context"));
const get_script_languages_1 = (0, tslib_1.__importDefault)(require("./api/get_script_languages"));
const get_source_1 = (0, tslib_1.__importDefault)(require("./api/get_source"));
const graph_1 = (0, tslib_1.__importDefault)(require("./api/graph"));
const ilm_1 = (0, tslib_1.__importDefault)(require("./api/ilm"));
const index_1 = (0, tslib_1.__importDefault)(require("./api/index"));
const indices_1 = (0, tslib_1.__importDefault)(require("./api/indices"));
const info_1 = (0, tslib_1.__importDefault)(require("./api/info"));
const ingest_1 = (0, tslib_1.__importDefault)(require("./api/ingest"));
const knn_search_1 = (0, tslib_1.__importDefault)(require("./api/knn_search"));
const license_1 = (0, tslib_1.__importDefault)(require("./api/license"));
const logstash_1 = (0, tslib_1.__importDefault)(require("./api/logstash"));
const mget_1 = (0, tslib_1.__importDefault)(require("./api/mget"));
const migration_1 = (0, tslib_1.__importDefault)(require("./api/migration"));
const ml_1 = (0, tslib_1.__importDefault)(require("./api/ml"));
const monitoring_1 = (0, tslib_1.__importDefault)(require("./api/monitoring"));
const msearch_1 = (0, tslib_1.__importDefault)(require("./api/msearch"));
const msearch_template_1 = (0, tslib_1.__importDefault)(require("./api/msearch_template"));
const mtermvectors_1 = (0, tslib_1.__importDefault)(require("./api/mtermvectors"));
const nodes_1 = (0, tslib_1.__importDefault)(require("./api/nodes"));
const open_point_in_time_1 = (0, tslib_1.__importDefault)(require("./api/open_point_in_time"));
const ping_1 = (0, tslib_1.__importDefault)(require("./api/ping"));
const put_script_1 = (0, tslib_1.__importDefault)(require("./api/put_script"));
const rank_eval_1 = (0, tslib_1.__importDefault)(require("./api/rank_eval"));
const reindex_1 = (0, tslib_1.__importDefault)(require("./api/reindex"));
const reindex_rethrottle_1 = (0, tslib_1.__importDefault)(require("./api/reindex_rethrottle"));
const render_search_template_1 = (0, tslib_1.__importDefault)(require("./api/render_search_template"));
const rollup_1 = (0, tslib_1.__importDefault)(require("./api/rollup"));
const scripts_painless_execute_1 = (0, tslib_1.__importDefault)(require("./api/scripts_painless_execute"));
const scroll_1 = (0, tslib_1.__importDefault)(require("./api/scroll"));
const search_1 = (0, tslib_1.__importDefault)(require("./api/search"));
const search_mvt_1 = (0, tslib_1.__importDefault)(require("./api/search_mvt"));
const search_shards_1 = (0, tslib_1.__importDefault)(require("./api/search_shards"));
const search_template_1 = (0, tslib_1.__importDefault)(require("./api/search_template"));
const searchable_snapshots_1 = (0, tslib_1.__importDefault)(require("./api/searchable_snapshots"));
const security_1 = (0, tslib_1.__importDefault)(require("./api/security"));
const shutdown_1 = (0, tslib_1.__importDefault)(require("./api/shutdown"));
const slm_1 = (0, tslib_1.__importDefault)(require("./api/slm"));
const snapshot_1 = (0, tslib_1.__importDefault)(require("./api/snapshot"));
const sql_1 = (0, tslib_1.__importDefault)(require("./api/sql"));
const ssl_1 = (0, tslib_1.__importDefault)(require("./api/ssl"));
const tasks_1 = (0, tslib_1.__importDefault)(require("./api/tasks"));
const terms_enum_1 = (0, tslib_1.__importDefault)(require("./api/terms_enum"));
const termvectors_1 = (0, tslib_1.__importDefault)(require("./api/termvectors"));
const text_structure_1 = (0, tslib_1.__importDefault)(require("./api/text_structure"));
const transform_1 = (0, tslib_1.__importDefault)(require("./api/transform"));
const update_1 = (0, tslib_1.__importDefault)(require("./api/update"));
const update_by_query_1 = (0, tslib_1.__importDefault)(require("./api/update_by_query"));
const update_by_query_rethrottle_1 = (0, tslib_1.__importDefault)(require("./api/update_by_query_rethrottle"));
const watcher_1 = (0, tslib_1.__importDefault)(require("./api/watcher"));
const xpack_1 = (0, tslib_1.__importDefault)(require("./api/xpack"));
const _internal_1 = tslib_1.__importDefault(require("./api/_internal"));
const async_search_1 = tslib_1.__importDefault(require("./api/async_search"));
const autoscaling_1 = tslib_1.__importDefault(require("./api/autoscaling"));
const bulk_1 = tslib_1.__importDefault(require("./api/bulk"));
const cat_1 = tslib_1.__importDefault(require("./api/cat"));
const ccr_1 = tslib_1.__importDefault(require("./api/ccr"));
const clear_scroll_1 = tslib_1.__importDefault(require("./api/clear_scroll"));
const close_point_in_time_1 = tslib_1.__importDefault(require("./api/close_point_in_time"));
const cluster_1 = tslib_1.__importDefault(require("./api/cluster"));
const count_1 = tslib_1.__importDefault(require("./api/count"));
const create_1 = tslib_1.__importDefault(require("./api/create"));
const dangling_indices_1 = tslib_1.__importDefault(require("./api/dangling_indices"));
const delete_1 = tslib_1.__importDefault(require("./api/delete"));
const delete_by_query_1 = tslib_1.__importDefault(require("./api/delete_by_query"));
const delete_by_query_rethrottle_1 = tslib_1.__importDefault(require("./api/delete_by_query_rethrottle"));
const delete_script_1 = tslib_1.__importDefault(require("./api/delete_script"));
const enrich_1 = tslib_1.__importDefault(require("./api/enrich"));
const eql_1 = tslib_1.__importDefault(require("./api/eql"));
const exists_1 = tslib_1.__importDefault(require("./api/exists"));
const exists_source_1 = tslib_1.__importDefault(require("./api/exists_source"));
const explain_1 = tslib_1.__importDefault(require("./api/explain"));
const features_1 = tslib_1.__importDefault(require("./api/features"));
const field_caps_1 = tslib_1.__importDefault(require("./api/field_caps"));
const fleet_1 = tslib_1.__importDefault(require("./api/fleet"));
const get_1 = tslib_1.__importDefault(require("./api/get"));
const get_script_1 = tslib_1.__importDefault(require("./api/get_script"));
const get_script_context_1 = tslib_1.__importDefault(require("./api/get_script_context"));
const get_script_languages_1 = tslib_1.__importDefault(require("./api/get_script_languages"));
const get_source_1 = tslib_1.__importDefault(require("./api/get_source"));
const graph_1 = tslib_1.__importDefault(require("./api/graph"));
const ilm_1 = tslib_1.__importDefault(require("./api/ilm"));
const index_1 = tslib_1.__importDefault(require("./api/index"));
const indices_1 = tslib_1.__importDefault(require("./api/indices"));
const info_1 = tslib_1.__importDefault(require("./api/info"));
const ingest_1 = tslib_1.__importDefault(require("./api/ingest"));
const knn_search_1 = tslib_1.__importDefault(require("./api/knn_search"));
const license_1 = tslib_1.__importDefault(require("./api/license"));
const logstash_1 = tslib_1.__importDefault(require("./api/logstash"));
const mget_1 = tslib_1.__importDefault(require("./api/mget"));
const migration_1 = tslib_1.__importDefault(require("./api/migration"));
const ml_1 = tslib_1.__importDefault(require("./api/ml"));
const monitoring_1 = tslib_1.__importDefault(require("./api/monitoring"));
const msearch_1 = tslib_1.__importDefault(require("./api/msearch"));
const msearch_template_1 = tslib_1.__importDefault(require("./api/msearch_template"));
const mtermvectors_1 = tslib_1.__importDefault(require("./api/mtermvectors"));
const nodes_1 = tslib_1.__importDefault(require("./api/nodes"));
const open_point_in_time_1 = tslib_1.__importDefault(require("./api/open_point_in_time"));
const ping_1 = tslib_1.__importDefault(require("./api/ping"));
const put_script_1 = tslib_1.__importDefault(require("./api/put_script"));
const rank_eval_1 = tslib_1.__importDefault(require("./api/rank_eval"));
const reindex_1 = tslib_1.__importDefault(require("./api/reindex"));
const reindex_rethrottle_1 = tslib_1.__importDefault(require("./api/reindex_rethrottle"));
const render_search_template_1 = tslib_1.__importDefault(require("./api/render_search_template"));
const rollup_1 = tslib_1.__importDefault(require("./api/rollup"));
const scripts_painless_execute_1 = tslib_1.__importDefault(require("./api/scripts_painless_execute"));
const scroll_1 = tslib_1.__importDefault(require("./api/scroll"));
const search_1 = tslib_1.__importDefault(require("./api/search"));
const search_mvt_1 = tslib_1.__importDefault(require("./api/search_mvt"));
const search_shards_1 = tslib_1.__importDefault(require("./api/search_shards"));
const search_template_1 = tslib_1.__importDefault(require("./api/search_template"));
const searchable_snapshots_1 = tslib_1.__importDefault(require("./api/searchable_snapshots"));
const security_1 = tslib_1.__importDefault(require("./api/security"));
const shutdown_1 = tslib_1.__importDefault(require("./api/shutdown"));
const slm_1 = tslib_1.__importDefault(require("./api/slm"));
const snapshot_1 = tslib_1.__importDefault(require("./api/snapshot"));
const sql_1 = tslib_1.__importDefault(require("./api/sql"));
const ssl_1 = tslib_1.__importDefault(require("./api/ssl"));
const tasks_1 = tslib_1.__importDefault(require("./api/tasks"));
const terms_enum_1 = tslib_1.__importDefault(require("./api/terms_enum"));
const termvectors_1 = tslib_1.__importDefault(require("./api/termvectors"));
const text_structure_1 = tslib_1.__importDefault(require("./api/text_structure"));
const transform_1 = tslib_1.__importDefault(require("./api/transform"));
const update_1 = tslib_1.__importDefault(require("./api/update"));
const update_by_query_1 = tslib_1.__importDefault(require("./api/update_by_query"));
const update_by_query_rethrottle_1 = tslib_1.__importDefault(require("./api/update_by_query_rethrottle"));
const watcher_1 = tslib_1.__importDefault(require("./api/watcher"));
const xpack_1 = tslib_1.__importDefault(require("./api/xpack"));
const kInternal = Symbol('Internal');

@@ -109,0 +109,0 @@ const kAsyncSearch = Symbol('AsyncSearch');

@@ -23,8 +23,8 @@ "use strict";

const url_1 = require("url");
const buffer_1 = (0, tslib_1.__importDefault)(require("buffer"));
const buffer_1 = tslib_1.__importDefault(require("buffer"));
const transport_1 = require("@elastic/transport");
const BaseConnection_1 = require("@elastic/transport/lib/connection/BaseConnection");
const sniffingTransport_1 = (0, tslib_1.__importDefault)(require("./sniffingTransport"));
const helpers_1 = (0, tslib_1.__importDefault)(require("./helpers"));
const api_1 = (0, tslib_1.__importDefault)(require("./api"));
const sniffingTransport_1 = tslib_1.__importDefault(require("./sniffingTransport"));
const helpers_1 = tslib_1.__importDefault(require("./helpers"));
const api_1 = tslib_1.__importDefault(require("./api"));
const kChild = Symbol('elasticsearchjs-child');

@@ -143,9 +143,9 @@ const kInitialOptions = Symbol('elasticsearchjs-initial-options');

}, opts);
if (options.caFingerprint !== null && isHttpConnection((_c = opts.node) !== null && _c !== void 0 ? _c : opts.nodes)) {
if (options.caFingerprint != null && isHttpConnection((_c = opts.node) !== null && _c !== void 0 ? _c : opts.nodes)) {
throw new transport_1.errors.ConfigurationError('You can\'t configure the caFingerprint with a http connection');
}
if (options.maxResponseSize !== null && options.maxResponseSize > buffer_1.default.constants.MAX_STRING_LENGTH) {
if (options.maxResponseSize != null && options.maxResponseSize > buffer_1.default.constants.MAX_STRING_LENGTH) {
throw new transport_1.errors.ConfigurationError(`The maxResponseSize cannot be bigger than ${buffer_1.default.constants.MAX_STRING_LENGTH}`);
}
if (options.maxCompressedResponseSize !== null && options.maxCompressedResponseSize > buffer_1.default.constants.MAX_LENGTH) {
if (options.maxCompressedResponseSize != null && options.maxCompressedResponseSize > buffer_1.default.constants.MAX_LENGTH) {
throw new transport_1.errors.ConfigurationError(`The maxCompressedResponseSize cannot be bigger than ${buffer_1.default.constants.MAX_LENGTH}`);

@@ -152,0 +152,0 @@ }

@@ -25,3 +25,3 @@ "use strict";

/* eslint-disable @typescript-eslint/promise-function-async */
const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
const assert_1 = tslib_1.__importDefault(require("assert"));
const util_1 = require("util");

@@ -28,0 +28,0 @@ const stream_1 = require("stream");

@@ -22,3 +22,3 @@ "use strict";

const tslib_1 = require("tslib");
const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
const assert_1 = tslib_1.__importDefault(require("assert"));
const transport_1 = require("@elastic/transport");

@@ -25,0 +25,0 @@ class SniffingTransport extends transport_1.Transport {

{
"name": "@elastic/elasticsearch",
"version": "8.1.0",
"versionCanary": "8.1.0-canary.3",
"version": "8.2.0-patch.1",
"versionCanary": "8.2.0-canary.2",
"description": "The official Elasticsearch client for Node.js",

@@ -48,33 +48,32 @@ "main": "index.js",

"engines": {
"node": ">=12"
"node": ">=14"
},
"devDependencies": {
"@sinonjs/fake-timers": "github:sinonjs/fake-timers#0bfffc1",
"@types/debug": "^4.1.6",
"@types/debug": "^4.1.7",
"@types/ms": "^0.7.31",
"@types/node": "^16.4.1",
"@types/sinonjs__fake-timers": "^6.0.3",
"@types/node": "^17.0.31",
"@types/sinonjs__fake-timers": "^8.1.2",
"@types/split2": "^3.2.1",
"@types/stoppable": "^1.1.1",
"@types/tap": "^15.0.5",
"@types/tap": "^15.0.7",
"cross-zip": "^4.0.0",
"fast-deep-equal": "^3.1.3",
"into-stream": "^6.0.0",
"into-stream": "^7.0.0",
"js-yaml": "^4.1.0",
"license-checker": "^25.0.1",
"minimist": "^1.2.5",
"minimist": "^1.2.6",
"ms": "^2.1.3",
"node-abort-controller": "^2.0.0",
"node-fetch": "^2.6.2",
"node-abort-controller": "^3.0.1",
"node-fetch": "^2.6.7",
"ora": "^5.4.1",
"proxy": "^1.0.2",
"rimraf": "^3.0.2",
"semver": "^7.3.5",
"split2": "^3.2.2",
"standard": "^16.0.3",
"semver": "^7.3.7",
"split2": "^4.1.0",
"stoppable": "^1.1.0",
"tap": "^15.0.9",
"ts-node": "^10.1.0",
"ts-standard": "^10.0.0",
"typescript": "^4.3.5",
"tap": "^16.1.0",
"ts-node": "^10.7.0",
"ts-standard": "^11.0.0",
"typescript": "^4.6.4",
"workq": "^3.0.0",

@@ -84,4 +83,4 @@ "xmlbuilder2": "^3.0.2"

"dependencies": {
"@elastic/transport": "^8.0.2",
"tslib": "^2.3.0"
"@elastic/transport": "^8.2.0",
"tslib": "^2.4.0"
},

@@ -88,0 +87,0 @@ "tap": {

@@ -5,3 +5,3 @@ <img align="right" width="auto" height="auto" src="https://www.elastic.co/static-res/images/elastic-logo-200.png">

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![Build Status](https://clients-ci.elastic.co/buildStatus/icon?job=elastic%2Belasticsearch-js%2Bmain)](https://clients-ci.elastic.co/view/Javascript/job/elastic+elasticsearch-js+main/) [![Node CI](https://github.com/elastic/elasticsearch-js/actions/workflows/nodejs.yml/badge.svg)](https://github.com/elastic/elasticsearch-js/actions/workflows/nodejs.yml) [![codecov](https://codecov.io/gh/elastic/elasticsearch-js/branch/master/graph/badge.svg)](https://codecov.io/gh/elastic/elasticsearch-js) [![NPM downloads](https://img.shields.io/npm/dm/@elastic/elasticsearch.svg?style=flat)](https://www.npmjs.com/package/@elastic/elasticsearch)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![Build Status](https://clients-ci.elastic.co/buildStatus/icon?job=elastic%2Belasticsearch-js%2Bmain)](https://clients-ci.elastic.co/view/JavaScript/job/elastic+elasticsearch-js+main/) [![Node CI](https://github.com/elastic/elasticsearch-js/actions/workflows/nodejs.yml/badge.svg)](https://github.com/elastic/elasticsearch-js/actions/workflows/nodejs.yml) [![codecov](https://codecov.io/gh/elastic/elasticsearch-js/branch/master/graph/badge.svg)](https://codecov.io/gh/elastic/elasticsearch-js) [![NPM downloads](https://img.shields.io/npm/dm/@elastic/elasticsearch.svg?style=flat)](https://www.npmjs.com/package/@elastic/elasticsearch)

@@ -26,3 +26,3 @@ The official Node.js client for Elasticsearch.

NOTE: The minimum supported version of Node.js is `v12`.
NOTE: The minimum supported version of Node.js is `v14`.

@@ -49,4 +49,5 @@ The client versioning follows the Elastic Stack versioning, this means that

| `8.x` | `December 2019` | `7.11` (early 2021) |
| `10.x` | `April 2021` | `7.12` (mid 2021) |
| `12.x` | `April 2022` | `8.2` (early 2022) |
| `10.x` | `April 2021` | `7.12` (mid 2021) |
| `12.x` | `April 2022` | `8.2` (early 2022) |
| `14.x` | `April 2023` | `8.8` (early 2023) |

@@ -95,3 +96,6 @@ ### Compatibility

const { Client } = require('@elastic/elasticsearch')
const client = new Client({ node: 'http://localhost:9200' })
const client = new Client({
cloud: { id: '<cloud-id>' },
auth: { apiKey: 'base64EncodedKey' }
})

@@ -166,4 +170,10 @@ async function run () {

const client6 = new Client6({ node: 'http://localhost:9200' })
const client7 = new Client7({ node: 'http://localhost:9201' })
const client6 = new Client6({
cloud: { id: '<cloud-id>' },
auth: { apiKey: 'base64EncodedKey' }
})
const client7 = new Client7({
cloud: { id: '<cloud-id>' },
auth: { apiKey: 'base64EncodedKey' }
})

@@ -181,2 +191,2 @@ client6.info().then(console.log, console.log)

This software is licensed under the [Apache 2 license](./LICENSE).
This software is licensed under the [Apache License 2.0](./LICENSE).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc