From 75c999b444a8f723bf204fcba13d165903004cb5 Mon Sep 17 00:00:00 2001 From: "Theo N. Truong" Date: Wed, 18 Dec 2024 15:10:43 -0700 Subject: [PATCH] Changed Request and Response types into interfaces (#944) * # Pre Update Signed-off-by: Theo Truong * Changed Request and Response types into interfaces Signed-off-by: Theo Truong --------- Signed-off-by: Theo Truong --- api/_core/bulk.d.ts | 4 ++-- api/_core/bulkStream.d.ts | 4 ++-- api/_core/clearScroll.d.ts | 4 ++-- api/_core/count.d.ts | 4 ++-- api/_core/create.d.ts | 4 ++-- api/_core/createPit.d.ts | 4 ++-- api/_core/delete.d.ts | 4 ++-- api/_core/deleteAllPits.d.ts | 2 +- api/_core/deleteByQuery.d.ts | 4 ++-- api/_core/deleteByQueryRethrottle.d.ts | 4 ++-- api/_core/deletePit.d.ts | 4 ++-- api/_core/deleteScript.d.ts | 4 ++-- api/_core/exists.d.ts | 4 ++-- api/_core/existsSource.d.ts | 4 ++-- api/_core/explain.d.ts | 4 ++-- api/_core/fieldCaps.d.ts | 4 ++-- api/_core/get.d.ts | 4 ++-- api/_core/getAllPits.d.ts | 2 +- api/_core/getScript.d.ts | 4 ++-- api/_core/getScriptContext.d.ts | 2 +- api/_core/getScriptLanguages.d.ts | 2 +- api/_core/getSource.d.ts | 4 ++-- api/_core/index.d.ts | 4 ++-- api/_core/info.d.ts | 2 +- api/_core/mget.d.ts | 4 ++-- api/_core/msearch.d.ts | 4 ++-- api/_core/msearchTemplate.d.ts | 4 ++-- api/_core/mtermvectors.d.ts | 4 ++-- api/_core/ping.d.ts | 2 +- api/_core/putScript.d.ts | 4 ++-- api/_core/rankEval.d.ts | 4 ++-- api/_core/reindex.d.ts | 4 ++-- api/_core/reindexRethrottle.d.ts | 4 ++-- api/_core/reindexRethrottle.js | 2 +- api/_core/renderSearchTemplate.d.ts | 4 ++-- api/_core/scriptsPainlessExecute.d.ts | 4 ++-- api/_core/scroll.d.ts | 6 +++--- api/_core/scroll.js | 2 +- api/_core/search.d.ts | 4 ++-- api/_core/searchShards.d.ts | 4 ++-- api/_core/searchTemplate.d.ts | 4 ++-- api/_core/termvectors.d.ts | 7 ++++--- api/_core/update.d.ts | 4 ++-- api/_core/updateByQuery.d.ts | 4 ++-- api/_core/updateByQueryRethrottle.d.ts | 4 ++-- api/_types/_core.msearch_template.d.ts | 2 +- api/_types/_core.mtermvectors.d.ts | 1 + api/_types/_core.reindex_rethrottle.d.ts | 2 ++ api/_types/security._common.d.ts | 2 ++ api/_types/tasks._common.d.ts | 1 + api/asynchronousSearch/delete.d.ts | 4 ++-- api/asynchronousSearch/get.d.ts | 4 ++-- api/asynchronousSearch/search.d.ts | 4 ++-- api/asynchronousSearch/stats.d.ts | 2 +- api/cat/aliases.d.ts | 4 ++-- api/cat/allPitSegments.d.ts | 4 ++-- api/cat/allocation.d.ts | 4 ++-- api/cat/clusterManager.d.ts | 4 ++-- api/cat/count.d.ts | 4 ++-- api/cat/fielddata.d.ts | 4 ++-- api/cat/health.d.ts | 4 ++-- api/cat/help.d.ts | 2 +- api/cat/indices.d.ts | 4 ++-- api/cat/master.d.ts | 4 ++-- api/cat/nodeattrs.d.ts | 4 ++-- api/cat/nodes.d.ts | 4 ++-- api/cat/pendingTasks.d.ts | 4 ++-- api/cat/pitSegments.d.ts | 4 ++-- api/cat/plugins.d.ts | 4 ++-- api/cat/recovery.d.ts | 4 ++-- api/cat/repositories.d.ts | 4 ++-- api/cat/segmentReplication.d.ts | 4 ++-- api/cat/segments.d.ts | 4 ++-- api/cat/shards.d.ts | 4 ++-- api/cat/snapshots.d.ts | 4 ++-- api/cat/tasks.d.ts | 4 ++-- api/cat/templates.d.ts | 4 ++-- api/cat/threadPool.d.ts | 4 ++-- api/cluster/allocationExplain.d.ts | 4 ++-- api/cluster/deleteComponentTemplate.d.ts | 4 ++-- api/cluster/deleteDecommissionAwareness.d.ts | 2 +- api/cluster/deleteVotingConfigExclusions.d.ts | 4 ++-- api/cluster/deleteWeightedRouting.d.ts | 4 ++-- api/cluster/existsComponentTemplate.d.ts | 4 ++-- api/cluster/getComponentTemplate.d.ts | 4 ++-- api/cluster/getDecommissionAwareness.d.ts | 4 ++-- api/cluster/getSettings.d.ts | 4 ++-- api/cluster/getWeightedRouting.d.ts | 4 ++-- api/cluster/health.d.ts | 4 ++-- api/cluster/pendingTasks.d.ts | 4 ++-- api/cluster/postVotingConfigExclusions.d.ts | 4 ++-- api/cluster/putComponentTemplate.d.ts | 4 ++-- api/cluster/putDecommissionAwareness.d.ts | 4 ++-- api/cluster/putSettings.d.ts | 4 ++-- api/cluster/putWeightedRouting.d.ts | 4 ++-- api/cluster/remoteInfo.d.ts | 2 +- api/cluster/reroute.d.ts | 4 ++-- api/cluster/state.d.ts | 4 ++-- api/cluster/stats.d.ts | 4 ++-- api/danglingIndices/deleteDanglingIndex.d.ts | 4 ++-- api/danglingIndices/importDanglingIndex.d.ts | 4 ++-- api/danglingIndices/listDanglingIndices.d.ts | 2 +- api/flowFramework/create.d.ts | 4 ++-- api/flowFramework/delete.d.ts | 4 ++-- api/flowFramework/deprovision.d.ts | 4 ++-- api/flowFramework/get.d.ts | 4 ++-- api/flowFramework/getStatus.d.ts | 4 ++-- api/flowFramework/getSteps.d.ts | 4 ++-- api/flowFramework/provision.d.ts | 4 ++-- api/flowFramework/search.d.ts | 4 ++-- api/flowFramework/searchState.d.ts | 4 ++-- api/flowFramework/update.d.ts | 4 ++-- api/indices/addBlock.d.ts | 4 ++-- api/indices/analyze.d.ts | 4 ++-- api/indices/clearCache.d.ts | 4 ++-- api/indices/clone.d.ts | 4 ++-- api/indices/close.d.ts | 4 ++-- api/indices/create.d.ts | 4 ++-- api/indices/createDataStream.d.ts | 4 ++-- api/indices/dataStreamsStats.d.ts | 4 ++-- api/indices/delete.d.ts | 4 ++-- api/indices/deleteAlias.d.ts | 4 ++-- api/indices/deleteDataStream.d.ts | 4 ++-- api/indices/deleteIndexTemplate.d.ts | 4 ++-- api/indices/deleteTemplate.d.ts | 4 ++-- api/indices/exists.d.ts | 4 ++-- api/indices/existsAlias.d.ts | 4 ++-- api/indices/existsIndexTemplate.d.ts | 4 ++-- api/indices/existsTemplate.d.ts | 4 ++-- api/indices/flush.d.ts | 4 ++-- api/indices/forcemerge.d.ts | 6 +++--- api/indices/get.d.ts | 4 ++-- api/indices/getAlias.d.ts | 4 ++-- api/indices/getDataStream.d.ts | 4 ++-- api/indices/getFieldMapping.d.ts | 4 ++-- api/indices/getIndexTemplate.d.ts | 4 ++-- api/indices/getMapping.d.ts | 4 ++-- api/indices/getSettings.d.ts | 4 ++-- api/indices/getTemplate.d.ts | 4 ++-- api/indices/getUpgrade.d.ts | 4 ++-- api/indices/open.d.ts | 4 ++-- api/indices/putAlias.d.ts | 4 ++-- api/indices/putIndexTemplate.d.ts | 4 ++-- api/indices/putMapping.d.ts | 4 ++-- api/indices/putSettings.d.ts | 4 ++-- api/indices/putTemplate.d.ts | 4 ++-- api/indices/recovery.d.ts | 4 ++-- api/indices/refresh.d.ts | 4 ++-- api/indices/resolveIndex.d.ts | 4 ++-- api/indices/rollover.d.ts | 4 ++-- api/indices/segments.d.ts | 4 ++-- api/indices/shardStores.d.ts | 4 ++-- api/indices/shrink.d.ts | 4 ++-- api/indices/simulateIndexTemplate.d.ts | 4 ++-- api/indices/simulateTemplate.d.ts | 4 ++-- api/indices/split.d.ts | 4 ++-- api/indices/stats.d.ts | 4 ++-- api/indices/updateAliases.d.ts | 4 ++-- api/indices/upgrade.d.ts | 4 ++-- api/indices/validateQuery.d.ts | 4 ++-- api/ingest/deletePipeline.d.ts | 4 ++-- api/ingest/getPipeline.d.ts | 4 ++-- api/ingest/processorGrok.d.ts | 4 ++-- api/ingest/putPipeline.d.ts | 4 ++-- api/ingest/simulate.d.ts | 4 ++-- api/insights/topQueries.d.ts | 4 ++-- api/ism/addPolicy.d.ts | 4 ++-- api/ism/changePolicy.d.ts | 4 ++-- api/ism/deletePolicy.d.ts | 4 ++-- api/ism/existsPolicy.d.ts | 4 ++-- api/ism/explainPolicy.d.ts | 4 ++-- api/ism/getPolicies.d.ts | 2 +- api/ism/getPolicy.d.ts | 4 ++-- api/ism/putPolicies.d.ts | 4 ++-- api/ism/putPolicy.d.ts | 4 ++-- api/ism/refreshSearchAnalyzers.d.ts | 4 ++-- api/ism/removePolicy.d.ts | 4 ++-- api/ism/retryIndex.d.ts | 4 ++-- api/knn/deleteModel.d.ts | 4 ++-- api/knn/getModel.d.ts | 4 ++-- api/knn/searchModels.d.ts | 4 ++-- api/knn/stats.d.ts | 4 ++-- api/knn/trainModel.d.ts | 4 ++-- api/knn/warmup.d.ts | 4 ++-- api/list/help.d.ts | 2 +- api/list/indices.d.ts | 4 ++-- api/list/shards.d.ts | 4 ++-- api/ml/createConnector.d.ts | 4 ++-- api/ml/deleteAgent.d.ts | 4 ++-- api/ml/deleteConnector.d.ts | 4 ++-- api/ml/deleteModel.d.ts | 4 ++-- api/ml/deleteModelGroup.d.ts | 4 ++-- api/ml/deleteTask.d.ts | 4 ++-- api/ml/deployModel.d.ts | 4 ++-- api/ml/getModelGroup.d.ts | 4 ++-- api/ml/getTask.d.ts | 4 ++-- api/ml/registerAgents.d.ts | 4 ++-- api/ml/registerModel.d.ts | 4 ++-- api/ml/registerModelGroup.d.ts | 4 ++-- api/ml/searchModels.d.ts | 4 ++-- api/ml/undeployModel.d.ts | 4 ++-- api/nodes/hotThreads.d.ts | 4 ++-- api/nodes/info.d.ts | 4 ++-- api/nodes/reloadSecureSettings.d.ts | 4 ++-- api/nodes/stats.d.ts | 4 ++-- api/nodes/usage.d.ts | 4 ++-- api/notifications/createConfig.d.ts | 4 ++-- api/notifications/deleteConfig.d.ts | 4 ++-- api/notifications/deleteConfigs.d.ts | 4 ++-- api/notifications/getConfig.d.ts | 4 ++-- api/notifications/getConfigs.d.ts | 4 ++-- api/notifications/listChannels.d.ts | 2 +- api/notifications/listFeatures.d.ts | 2 +- api/notifications/sendTest.d.ts | 4 ++-- api/notifications/updateConfig.d.ts | 4 ++-- api/observability/createObject.d.ts | 4 ++-- api/observability/deleteObject.d.ts | 4 ++-- api/observability/deleteObjects.d.ts | 4 ++-- api/observability/getLocalstats.d.ts | 2 +- api/observability/getObject.d.ts | 4 ++-- api/observability/listObjects.d.ts | 2 +- api/observability/updateObject.d.ts | 4 ++-- api/ppl/explain.d.ts | 4 ++-- api/ppl/getStats.d.ts | 4 ++-- api/ppl/postStats.d.ts | 4 ++-- api/ppl/query.d.ts | 4 ++-- api/query/datasourceDelete.d.ts | 4 ++-- api/query/datasourceRetrieve.d.ts | 4 ++-- api/query/datasourcesCreate.d.ts | 4 ++-- api/query/datasourcesList.d.ts | 2 +- api/query/datasourcesUpdate.d.ts | 4 ++-- api/remoteStore/restore.d.ts | 4 ++-- api/replication/autofollowStats.d.ts | 2 +- api/replication/createReplicationRule.d.ts | 4 ++-- api/replication/deleteReplicationRule.d.ts | 4 ++-- api/replication/followerStats.d.ts | 2 +- api/replication/leaderStats.d.ts | 2 +- api/replication/pause.d.ts | 4 ++-- api/replication/resume.d.ts | 4 ++-- api/replication/start.d.ts | 4 ++-- api/replication/status.d.ts | 4 ++-- api/replication/stop.d.ts | 4 ++-- api/replication/updateSettings.d.ts | 4 ++-- api/rollups/delete.d.ts | 4 ++-- api/rollups/explain.d.ts | 4 ++-- api/rollups/get.d.ts | 4 ++-- api/rollups/put.d.ts | 4 ++-- api/rollups/start.d.ts | 4 ++-- api/rollups/stop.d.ts | 4 ++-- api/searchPipeline/delete.d.ts | 4 ++-- api/searchPipeline/get.d.ts | 4 ++-- api/searchPipeline/put.d.ts | 4 ++-- api/security/authinfo.d.ts | 4 ++-- api/security/authtoken.d.ts | 2 +- api/security/changePassword.d.ts | 4 ++-- api/security/configUpgradeCheck.d.ts | 2 +- api/security/configUpgradePerform.d.ts | 4 ++-- api/security/createActionGroup.d.ts | 4 ++-- api/security/createAllowlist.d.ts | 4 ++-- api/security/createRole.d.ts | 4 ++-- api/security/createRoleMapping.d.ts | 4 ++-- api/security/createTenant.d.ts | 4 ++-- api/security/createUpdateTenancyConfig.d.ts | 4 ++-- api/security/createUser.d.ts | 4 ++-- api/security/createUserLegacy.d.ts | 4 ++-- api/security/deleteActionGroup.d.ts | 4 ++-- api/security/deleteDistinguishedName.d.ts | 4 ++-- api/security/deleteRole.d.ts | 4 ++-- api/security/deleteRoleMapping.d.ts | 4 ++-- api/security/deleteTenant.d.ts | 4 ++-- api/security/deleteUser.d.ts | 4 ++-- api/security/deleteUserLegacy.d.ts | 4 ++-- api/security/flushCache.d.ts | 2 +- api/security/generateOboToken.d.ts | 4 ++-- api/security/generateUserToken.d.ts | 4 ++-- api/security/generateUserTokenLegacy.d.ts | 4 ++-- api/security/getAccountDetails.d.ts | 2 +- api/security/getActionGroup.d.ts | 4 ++-- api/security/getActionGroups.d.ts | 2 +- api/security/getAllCertificates.d.ts | 4 ++-- api/security/getAllowlist.d.ts | 2 +- api/security/getAuditConfiguration.d.ts | 2 +- api/security/getCertificates.d.ts | 2 +- api/security/getConfiguration.d.ts | 2 +- api/security/getDashboardsInfo.d.ts | 2 +- api/security/getDistinguishedName.d.ts | 6 +++--- api/security/getDistinguishedNames.d.ts | 4 ++-- api/security/getNodeCertificates.d.ts | 4 ++-- api/security/getPermissionsInfo.d.ts | 2 +- api/security/getRole.d.ts | 4 ++-- api/security/getRoleMapping.d.ts | 4 ++-- api/security/getRoleMappings.d.ts | 2 +- api/security/getRoles.d.ts | 2 +- api/security/getSslinfo.d.ts | 4 ++-- api/security/getTenancyConfig.d.ts | 2 +- api/security/getTenant.d.ts | 4 ++-- api/security/getTenants.d.ts | 2 +- api/security/getUser.d.ts | 4 ++-- api/security/getUserLegacy.d.ts | 4 ++-- api/security/getUsers.d.ts | 2 +- api/security/getUsersLegacy.d.ts | 2 +- api/security/health.d.ts | 4 ++-- api/security/migrate.d.ts | 2 +- api/security/patchActionGroup.d.ts | 4 ++-- api/security/patchActionGroups.d.ts | 4 ++-- api/security/patchAllowlist.d.ts | 4 ++-- api/security/patchAuditConfiguration.d.ts | 4 ++-- api/security/patchConfiguration.d.ts | 4 ++-- api/security/patchDistinguishedName.d.ts | 6 +++--- api/security/patchDistinguishedName.js | 2 +- api/security/patchDistinguishedNames.d.ts | 4 ++-- api/security/patchRole.d.ts | 4 ++-- api/security/patchRoleMapping.d.ts | 4 ++-- api/security/patchRoleMappings.d.ts | 4 ++-- api/security/patchRoles.d.ts | 4 ++-- api/security/patchTenant.d.ts | 4 ++-- api/security/patchTenants.d.ts | 4 ++-- api/security/patchUser.d.ts | 4 ++-- api/security/patchUsers.d.ts | 4 ++-- api/security/postDashboardsInfo.d.ts | 2 +- api/security/reloadHttpCertificates.d.ts | 2 +- api/security/reloadTransportCertificates.d.ts | 2 +- api/security/tenantInfo.d.ts | 2 +- api/security/updateAuditConfiguration.d.ts | 4 ++-- api/security/updateConfiguration.d.ts | 4 ++-- api/security/updateDistinguishedName.d.ts | 4 ++-- api/security/validate.d.ts | 4 ++-- api/security/whoAmI.d.ts | 2 +- api/security/whoAmIProtected.d.ts | 2 +- api/sm/createPolicy.d.ts | 4 ++-- api/sm/deletePolicy.d.ts | 4 ++-- api/sm/explainPolicy.d.ts | 4 ++-- api/sm/getPolicies.d.ts | 4 ++-- api/sm/getPolicy.d.ts | 4 ++-- api/sm/startPolicy.d.ts | 4 ++-- api/sm/stopPolicy.d.ts | 4 ++-- api/sm/updatePolicy.d.ts | 4 ++-- api/snapshot/cleanupRepository.d.ts | 4 ++-- api/snapshot/clone.d.ts | 4 ++-- api/snapshot/create.d.ts | 4 ++-- api/snapshot/createRepository.d.ts | 4 ++-- api/snapshot/delete.d.ts | 4 ++-- api/snapshot/deleteRepository.d.ts | 4 ++-- api/snapshot/get.d.ts | 4 ++-- api/snapshot/getRepository.d.ts | 4 ++-- api/snapshot/restore.d.ts | 4 ++-- api/snapshot/status.d.ts | 4 ++-- api/snapshot/verifyRepository.d.ts | 4 ++-- api/sql/close.d.ts | 4 ++-- api/sql/explain.d.ts | 4 ++-- api/sql/getStats.d.ts | 4 ++-- api/sql/postStats.d.ts | 4 ++-- api/sql/query.d.ts | 4 ++-- api/sql/settings.d.ts | 4 ++-- api/tasks/cancel.d.ts | 4 ++-- api/tasks/get.d.ts | 4 ++-- api/tasks/list.d.ts | 4 ++-- api/transforms/delete.d.ts | 4 ++-- api/transforms/explain.d.ts | 4 ++-- api/transforms/get.d.ts | 4 ++-- api/transforms/preview.d.ts | 4 ++-- api/transforms/put.d.ts | 4 ++-- api/transforms/search.d.ts | 4 ++-- api/transforms/start.d.ts | 4 ++-- api/transforms/stop.d.ts | 4 ++-- api/wlm/createQueryGroup.d.ts | 4 ++-- api/wlm/deleteQueryGroup.d.ts | 4 ++-- api/wlm/getQueryGroup.d.ts | 4 ++-- api/wlm/updateQueryGroup.d.ts | 4 ++-- .../src/renderers/render_types/TypesFileRenderder.ts | 11 +++++++++-- .../src/renderers/templates/type.containers.mustache | 5 +++++ package.json | 2 +- 372 files changed, 708 insertions(+), 689 deletions(-) diff --git a/api/_core/bulk.d.ts b/api/_core/bulk.d.ts index 500268e59..6df4417ae 100644 --- a/api/_core/bulk.d.ts +++ b/api/_core/bulk.d.ts @@ -20,7 +20,7 @@ import * as Core_Bulk from '../_types/_core.bulk' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Bulk_Request = Global.Params & { +export interface Bulk_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -37,7 +37,7 @@ export type Bulk_Request = Global.Params & { export type Bulk_RequestBody = Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record[] -export type Bulk_Response = ApiResponse & { +export interface Bulk_Response extends ApiResponse { body: Bulk_ResponseBody; } diff --git a/api/_core/bulkStream.d.ts b/api/_core/bulkStream.d.ts index 68c8c8a78..4e8715c59 100644 --- a/api/_core/bulkStream.d.ts +++ b/api/_core/bulkStream.d.ts @@ -20,7 +20,7 @@ import * as Core_Bulk from '../_types/_core.bulk' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type BulkStream_Request = Global.Params & { +export interface BulkStream_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -39,7 +39,7 @@ export type BulkStream_Request = Global.Params & { export type BulkStream_RequestBody = Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record[] -export type BulkStream_Response = ApiResponse & { +export interface BulkStream_Response extends ApiResponse { body: BulkStream_ResponseBody; } diff --git a/api/_core/clearScroll.d.ts b/api/_core/clearScroll.d.ts index 417515b5c..c49607a67 100644 --- a/api/_core/clearScroll.d.ts +++ b/api/_core/clearScroll.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type ClearScroll_Request = Global.Params & { +export interface ClearScroll_Request extends Global.Params { body?: ClearScroll_RequestBody; scroll_id?: Common.ScrollIds; } @@ -27,7 +27,7 @@ export type ClearScroll_RequestBody = { scroll_id?: Common.ScrollIds; } -export type ClearScroll_Response = ApiResponse & { +export interface ClearScroll_Response extends ApiResponse { body: ClearScroll_ResponseBody; } diff --git a/api/_core/count.d.ts b/api/_core/count.d.ts index 66274d219..1a3a9df2c 100644 --- a/api/_core/count.d.ts +++ b/api/_core/count.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Global from '../_types/_global' -export type Count_Request = Global.Params & { +export interface Count_Request extends Global.Params { allow_no_indices?: boolean; analyze_wildcard?: boolean; analyzer?: string; @@ -42,7 +42,7 @@ export type Count_RequestBody = { query?: Common_QueryDsl.QueryContainer; } -export type Count_Response = ApiResponse & { +export interface Count_Response extends ApiResponse { body: Count_ResponseBody; } diff --git a/api/_core/create.d.ts b/api/_core/create.d.ts index ad1199813..342bf73c7 100644 --- a/api/_core/create.d.ts +++ b/api/_core/create.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Create_Request = Global.Params & { +export interface Create_Request extends Global.Params { body: Create_RequestBody; id: Common.Id; index: Common.IndexName; @@ -33,7 +33,7 @@ export type Create_Request = Global.Params & { export type Create_RequestBody = Record -export type Create_Response = ApiResponse & { +export interface Create_Response extends ApiResponse { body: Create_ResponseBody; } diff --git a/api/_core/createPit.d.ts b/api/_core/createPit.d.ts index ad3932561..ee1155b4e 100644 --- a/api/_core/createPit.d.ts +++ b/api/_core/createPit.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Common from '../_types/_core._common' import * as Global from '../_types/_global' -export type CreatePit_Request = Global.Params & { +export interface CreatePit_Request extends Global.Params { allow_partial_pit_creation?: boolean; expand_wildcards?: Common.ExpandWildcards; index: string[]; @@ -28,7 +28,7 @@ export type CreatePit_Request = Global.Params & { routing?: Common.RoutingInQueryString; } -export type CreatePit_Response = ApiResponse & { +export interface CreatePit_Response extends ApiResponse { body: CreatePit_ResponseBody; } diff --git a/api/_core/delete.d.ts b/api/_core/delete.d.ts index f920b67ee..203fd3910 100644 --- a/api/_core/delete.d.ts +++ b/api/_core/delete.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Delete_Request = Global.Params & { +export interface Delete_Request extends Global.Params { id: Common.Id; if_primary_term?: number; if_seq_no?: Common.SequenceNumber; @@ -31,7 +31,7 @@ export type Delete_Request = Global.Params & { wait_for_active_shards?: Common.WaitForActiveShards; } -export type Delete_Response = ApiResponse & { +export interface Delete_Response extends ApiResponse { body: Delete_ResponseBody; } diff --git a/api/_core/deleteAllPits.d.ts b/api/_core/deleteAllPits.d.ts index 7be2eec16..3395c26a2 100644 --- a/api/_core/deleteAllPits.d.ts +++ b/api/_core/deleteAllPits.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type DeleteAllPits_Request = Global.Params & Record -export type DeleteAllPits_Response = ApiResponse & { +export interface DeleteAllPits_Response extends ApiResponse { body: DeleteAllPits_ResponseBody; } diff --git a/api/_core/deleteByQuery.d.ts b/api/_core/deleteByQuery.d.ts index 9f0488bc2..b328db7b1 100644 --- a/api/_core/deleteByQuery.d.ts +++ b/api/_core/deleteByQuery.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Global from '../_types/_global' -export type DeleteByQuery_Request = Global.Params & { +export interface DeleteByQuery_Request extends Global.Params { _source?: string[]; _source_excludes?: string[]; _source_includes?: string[]; @@ -63,7 +63,7 @@ export type DeleteByQuery_RequestBody = { slice?: Common.SlicedScroll; } -export type DeleteByQuery_Response = ApiResponse & { +export interface DeleteByQuery_Response extends ApiResponse { body: DeleteByQuery_ResponseBody; } diff --git a/api/_core/deleteByQueryRethrottle.d.ts b/api/_core/deleteByQueryRethrottle.d.ts index d68793886..97da7a082 100644 --- a/api/_core/deleteByQueryRethrottle.d.ts +++ b/api/_core/deleteByQueryRethrottle.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Tasks_Common from '../_types/tasks._common' -export type DeleteByQueryRethrottle_Request = Global.Params & { +export interface DeleteByQueryRethrottle_Request extends Global.Params { requests_per_second?: number; task_id: Common.TaskId; } -export type DeleteByQueryRethrottle_Response = ApiResponse & { +export interface DeleteByQueryRethrottle_Response extends ApiResponse { body: DeleteByQueryRethrottle_ResponseBody; } diff --git a/api/_core/deletePit.d.ts b/api/_core/deletePit.d.ts index 1da2e537f..fc97aade7 100644 --- a/api/_core/deletePit.d.ts +++ b/api/_core/deletePit.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Core_Common from '../_types/_core._common' import * as Global from '../_types/_global' -export type DeletePit_Request = Global.Params & { +export interface DeletePit_Request extends Global.Params { body?: DeletePit_RequestBody; } @@ -26,7 +26,7 @@ export type DeletePit_RequestBody = { pit_id: string[]; } -export type DeletePit_Response = ApiResponse & { +export interface DeletePit_Response extends ApiResponse { body: DeletePit_ResponseBody; } diff --git a/api/_core/deleteScript.d.ts b/api/_core/deleteScript.d.ts index 54e2ae427..53fd9c3be 100644 --- a/api/_core/deleteScript.d.ts +++ b/api/_core/deleteScript.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type DeleteScript_Request = Global.Params & { +export interface DeleteScript_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id: Common.Id; master_timeout?: Common.Duration; timeout?: Common.Duration; } -export type DeleteScript_Response = ApiResponse & { +export interface DeleteScript_Response extends ApiResponse { body: DeleteScript_ResponseBody; } diff --git a/api/_core/exists.d.ts b/api/_core/exists.d.ts index 304e7ffcd..fbb30bf38 100644 --- a/api/_core/exists.d.ts +++ b/api/_core/exists.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Exists_Request = Global.Params & { +export interface Exists_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -34,7 +34,7 @@ export type Exists_Request = Global.Params & { version_type?: Common.VersionType; } -export type Exists_Response = ApiResponse & { +export interface Exists_Response extends ApiResponse { body: Exists_ResponseBody; } diff --git a/api/_core/existsSource.d.ts b/api/_core/existsSource.d.ts index c6c77bb7c..943c427b1 100644 --- a/api/_core/existsSource.d.ts +++ b/api/_core/existsSource.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type ExistsSource_Request = Global.Params & { +export interface ExistsSource_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -33,7 +33,7 @@ export type ExistsSource_Request = Global.Params & { version_type?: Common.VersionType; } -export type ExistsSource_Response = ApiResponse & { +export interface ExistsSource_Response extends ApiResponse { body: ExistsSource_ResponseBody; } diff --git a/api/_core/explain.d.ts b/api/_core/explain.d.ts index 508bdd000..c50cd9a9b 100644 --- a/api/_core/explain.d.ts +++ b/api/_core/explain.d.ts @@ -21,7 +21,7 @@ import * as Core_Explain from '../_types/_core.explain' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Explain_Request = Global.Params & { +export interface Explain_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -43,7 +43,7 @@ export type Explain_RequestBody = { query?: Common_QueryDsl.QueryContainer; } -export type Explain_Response = ApiResponse & { +export interface Explain_Response extends ApiResponse { body: Explain_ResponseBody; } diff --git a/api/_core/fieldCaps.d.ts b/api/_core/fieldCaps.d.ts index f0dd3ba1d..1800132a1 100644 --- a/api/_core/fieldCaps.d.ts +++ b/api/_core/fieldCaps.d.ts @@ -20,7 +20,7 @@ import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Core_FieldCaps from '../_types/_core.field_caps' import * as Global from '../_types/_global' -export type FieldCaps_Request = Global.Params & { +export interface FieldCaps_Request extends Global.Params { allow_no_indices?: boolean; body?: FieldCaps_RequestBody; expand_wildcards?: Common.ExpandWildcards; @@ -35,7 +35,7 @@ export type FieldCaps_RequestBody = { index_filter?: Common_QueryDsl.QueryContainer; } -export type FieldCaps_Response = ApiResponse & { +export interface FieldCaps_Response extends ApiResponse { body: FieldCaps_ResponseBody; } diff --git a/api/_core/get.d.ts b/api/_core/get.d.ts index bd567f64d..9c1fe8f5c 100644 --- a/api/_core/get.d.ts +++ b/api/_core/get.d.ts @@ -20,7 +20,7 @@ import * as Core_Get from '../_types/_core.get' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Get_Request = Global.Params & { +export interface Get_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -35,7 +35,7 @@ export type Get_Request = Global.Params & { version_type?: Common.VersionType; } -export type Get_Response = ApiResponse & { +export interface Get_Response extends ApiResponse { body: Get_ResponseBody; } diff --git a/api/_core/getAllPits.d.ts b/api/_core/getAllPits.d.ts index 67f15d18a..5f994b9ce 100644 --- a/api/_core/getAllPits.d.ts +++ b/api/_core/getAllPits.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type GetAllPits_Request = Global.Params & Record -export type GetAllPits_Response = ApiResponse & { +export interface GetAllPits_Response extends ApiResponse { body: GetAllPits_ResponseBody; } diff --git a/api/_core/getScript.d.ts b/api/_core/getScript.d.ts index 651a8e246..6bec66382 100644 --- a/api/_core/getScript.d.ts +++ b/api/_core/getScript.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type GetScript_Request = Global.Params & { +export interface GetScript_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id: Common.Id; master_timeout?: Common.Duration; } -export type GetScript_Response = ApiResponse & { +export interface GetScript_Response extends ApiResponse { body: GetScript_ResponseBody; } diff --git a/api/_core/getScriptContext.d.ts b/api/_core/getScriptContext.d.ts index c9c1f7eff..078a3c661 100644 --- a/api/_core/getScriptContext.d.ts +++ b/api/_core/getScriptContext.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type GetScriptContext_Request = Global.Params & Record -export type GetScriptContext_Response = ApiResponse & { +export interface GetScriptContext_Response extends ApiResponse { body: GetScriptContext_ResponseBody; } diff --git a/api/_core/getScriptLanguages.d.ts b/api/_core/getScriptLanguages.d.ts index 54739ed66..02097882f 100644 --- a/api/_core/getScriptLanguages.d.ts +++ b/api/_core/getScriptLanguages.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type GetScriptLanguages_Request = Global.Params & Record -export type GetScriptLanguages_Response = ApiResponse & { +export interface GetScriptLanguages_Response extends ApiResponse { body: GetScriptLanguages_ResponseBody; } diff --git a/api/_core/getSource.d.ts b/api/_core/getSource.d.ts index 77a574413..6eaf06812 100644 --- a/api/_core/getSource.d.ts +++ b/api/_core/getSource.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type GetSource_Request = Global.Params & { +export interface GetSource_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -33,7 +33,7 @@ export type GetSource_Request = Global.Params & { version_type?: Common.VersionType; } -export type GetSource_Response = ApiResponse & { +export interface GetSource_Response extends ApiResponse { body: GetSource_ResponseBody; } diff --git a/api/_core/index.d.ts b/api/_core/index.d.ts index c64d9f39d..899f698b8 100644 --- a/api/_core/index.d.ts +++ b/api/_core/index.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Index_Request = Global.Params & { +export interface Index_Request extends Global.Params { body: Index_RequestBody; id?: Common.Id; if_primary_term?: number; @@ -37,7 +37,7 @@ export type Index_Request = Global.Params & { export type Index_RequestBody = Record -export type Index_Response = ApiResponse & { +export interface Index_Response extends ApiResponse { body: Index_ResponseBody; } diff --git a/api/_core/info.d.ts b/api/_core/info.d.ts index ee28f54f1..2f71fd4c0 100644 --- a/api/_core/info.d.ts +++ b/api/_core/info.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type Info_Request = Global.Params & Record -export type Info_Response = ApiResponse & { +export interface Info_Response extends ApiResponse { body: Info_ResponseBody; } diff --git a/api/_core/mget.d.ts b/api/_core/mget.d.ts index dbcb38824..9f478af93 100644 --- a/api/_core/mget.d.ts +++ b/api/_core/mget.d.ts @@ -20,7 +20,7 @@ import * as Core_Mget from '../_types/_core.mget' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Mget_Request = Global.Params & { +export interface Mget_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -38,7 +38,7 @@ export type Mget_RequestBody = { ids?: Common.Ids; } -export type Mget_Response = ApiResponse & { +export interface Mget_Response extends ApiResponse { body: Mget_ResponseBody; } diff --git a/api/_core/msearch.d.ts b/api/_core/msearch.d.ts index eb29b56f1..159a0eede 100644 --- a/api/_core/msearch.d.ts +++ b/api/_core/msearch.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Msearch from '../_types/_core.msearch' import * as Global from '../_types/_global' -export type Msearch_Request = Global.Params & { +export interface Msearch_Request extends Global.Params { body: Msearch_RequestBody; ccs_minimize_roundtrips?: boolean; index?: Common.Indices; @@ -33,7 +33,7 @@ export type Msearch_Request = Global.Params & { export type Msearch_RequestBody = Core_Msearch.RequestItem[] -export type Msearch_Response = ApiResponse & { +export interface Msearch_Response extends ApiResponse { body: Msearch_ResponseBody; } diff --git a/api/_core/msearchTemplate.d.ts b/api/_core/msearchTemplate.d.ts index 88e303fe6..665ecc10f 100644 --- a/api/_core/msearchTemplate.d.ts +++ b/api/_core/msearchTemplate.d.ts @@ -20,7 +20,7 @@ import * as Core_Msearch from '../_types/_core.msearch' import * as Core_MsearchTemplate from '../_types/_core.msearch_template' import * as Global from '../_types/_global' -export type MsearchTemplate_Request = Global.Params & { +export interface MsearchTemplate_Request extends Global.Params { body: MsearchTemplate_RequestBody; ccs_minimize_roundtrips?: boolean; index?: Common.Indices; @@ -32,7 +32,7 @@ export type MsearchTemplate_Request = Global.Params & { export type MsearchTemplate_RequestBody = Core_MsearchTemplate.RequestItem[] -export type MsearchTemplate_Response = ApiResponse & { +export interface MsearchTemplate_Response extends ApiResponse { body: MsearchTemplate_ResponseBody; } diff --git a/api/_core/mtermvectors.d.ts b/api/_core/mtermvectors.d.ts index 600e23653..d1ed40917 100644 --- a/api/_core/mtermvectors.d.ts +++ b/api/_core/mtermvectors.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Mtermvectors from '../_types/_core.mtermvectors' import * as Global from '../_types/_global' -export type Mtermvectors_Request = Global.Params & { +export interface Mtermvectors_Request extends Global.Params { body?: Mtermvectors_RequestBody; field_statistics?: boolean; fields?: Common.Fields; @@ -41,7 +41,7 @@ export type Mtermvectors_RequestBody = { ids?: Common.Id[]; } -export type Mtermvectors_Response = ApiResponse & { +export interface Mtermvectors_Response extends ApiResponse { body: Mtermvectors_ResponseBody; } diff --git a/api/_core/ping.d.ts b/api/_core/ping.d.ts index f665e9b08..821efdce7 100644 --- a/api/_core/ping.d.ts +++ b/api/_core/ping.d.ts @@ -19,7 +19,7 @@ import * as Global from '../_types/_global' export type Ping_Request = Global.Params & Record -export type Ping_Response = ApiResponse & { +export interface Ping_Response extends ApiResponse { body: Ping_ResponseBody; } diff --git a/api/_core/putScript.d.ts b/api/_core/putScript.d.ts index 061f187ac..64249821e 100644 --- a/api/_core/putScript.d.ts +++ b/api/_core/putScript.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type PutScript_Request = Global.Params & { +export interface PutScript_Request extends Global.Params { body: PutScript_RequestBody; cluster_manager_timeout?: Common.Duration; context?: Common.Name; @@ -31,7 +31,7 @@ export type PutScript_RequestBody = { script: Common.StoredScript; } -export type PutScript_Response = ApiResponse & { +export interface PutScript_Response extends ApiResponse { body: PutScript_ResponseBody; } diff --git a/api/_core/rankEval.d.ts b/api/_core/rankEval.d.ts index 34a303dbd..247f462bd 100644 --- a/api/_core/rankEval.d.ts +++ b/api/_core/rankEval.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_RankEval from '../_types/_core.rank_eval' import * as Global from '../_types/_global' -export type RankEval_Request = Global.Params & { +export interface RankEval_Request extends Global.Params { allow_no_indices?: boolean; body: RankEval_RequestBody; expand_wildcards?: Common.ExpandWildcards; @@ -33,7 +33,7 @@ export type RankEval_RequestBody = { requests: Core_RankEval.RankEvalRequestItem[]; } -export type RankEval_Response = ApiResponse & { +export interface RankEval_Response extends ApiResponse { body: RankEval_ResponseBody; } diff --git a/api/_core/reindex.d.ts b/api/_core/reindex.d.ts index 7b618b300..833f33e6f 100644 --- a/api/_core/reindex.d.ts +++ b/api/_core/reindex.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Reindex from '../_types/_core.reindex' import * as Global from '../_types/_global' -export type Reindex_Request = Global.Params & { +export interface Reindex_Request extends Global.Params { body: Reindex_RequestBody; max_docs?: number; refresh?: Common.Refresh; @@ -40,7 +40,7 @@ export type Reindex_RequestBody = { source: Core_Reindex.Source; } -export type Reindex_Response = ApiResponse & { +export interface Reindex_Response extends ApiResponse { body: Reindex_ResponseBody; } diff --git a/api/_core/reindexRethrottle.d.ts b/api/_core/reindexRethrottle.d.ts index fe76b61a5..865fb29f7 100644 --- a/api/_core/reindexRethrottle.d.ts +++ b/api/_core/reindexRethrottle.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Core_ReindexRethrottle from '../_types/_core.reindex_rethrottle' import * as Global from '../_types/_global' -export type ReindexRethrottle_Request = Global.Params & { +export interface ReindexRethrottle_Request extends Global.Params { requests_per_second?: number; task_id: Common.Id; } -export type ReindexRethrottle_Response = ApiResponse & { +export interface ReindexRethrottle_Response extends ApiResponse { body: ReindexRethrottle_ResponseBody; } diff --git a/api/_core/reindexRethrottle.js b/api/_core/reindexRethrottle.js index a43376f96..599d39bc1 100644 --- a/api/_core/reindexRethrottle.js +++ b/api/_core/reindexRethrottle.js @@ -19,7 +19,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils'); /** - * Changes the number of requests per second for a particular Reindex operation. + * Changes the number of requests per second for a particular reindex operation. *
See Also: {@link https://opensearch.org/docs/latest - reindex_rethrottle} * * @memberOf API-Core diff --git a/api/_core/renderSearchTemplate.d.ts b/api/_core/renderSearchTemplate.d.ts index 944b28b94..5b9b20a8c 100644 --- a/api/_core/renderSearchTemplate.d.ts +++ b/api/_core/renderSearchTemplate.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type RenderSearchTemplate_Request = Global.Params & { +export interface RenderSearchTemplate_Request extends Global.Params { body?: RenderSearchTemplate_RequestBody; id?: Common.Id; } @@ -29,7 +29,7 @@ export type RenderSearchTemplate_RequestBody = { source?: string; } -export type RenderSearchTemplate_Response = ApiResponse & { +export interface RenderSearchTemplate_Response extends ApiResponse { body: RenderSearchTemplate_ResponseBody; } diff --git a/api/_core/scriptsPainlessExecute.d.ts b/api/_core/scriptsPainlessExecute.d.ts index 9c20c7f9e..b4354a84e 100644 --- a/api/_core/scriptsPainlessExecute.d.ts +++ b/api/_core/scriptsPainlessExecute.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_ScriptsPainlessExecute from '../_types/_core.scripts_painless_execute' import * as Global from '../_types/_global' -export type ScriptsPainlessExecute_Request = Global.Params & { +export interface ScriptsPainlessExecute_Request extends Global.Params { body?: ScriptsPainlessExecute_RequestBody; } @@ -29,7 +29,7 @@ export type ScriptsPainlessExecute_RequestBody = { script?: Common.InlineScript; } -export type ScriptsPainlessExecute_Response = ApiResponse & { +export interface ScriptsPainlessExecute_Response extends ApiResponse { body: ScriptsPainlessExecute_ResponseBody; } diff --git a/api/_core/scroll.d.ts b/api/_core/scroll.d.ts index 11d84d3cc..fc5a26dca 100644 --- a/api/_core/scroll.d.ts +++ b/api/_core/scroll.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Scroll_Request = Global.Params & { +export interface Scroll_Request extends Global.Params { body?: Scroll_RequestBody; rest_total_hits_as_int?: boolean; scroll?: Common.Duration; @@ -28,10 +28,10 @@ export type Scroll_Request = Global.Params & { export type Scroll_RequestBody = { scroll?: Common.Duration; - scroll_id: Common.ScrollId; + scroll_id?: Common.ScrollId; } -export type Scroll_Response = ApiResponse & { +export interface Scroll_Response extends ApiResponse { body: Scroll_ResponseBody; } diff --git a/api/_core/scroll.js b/api/_core/scroll.js index 3137386e8..1cbc4941b 100644 --- a/api/_core/scroll.js +++ b/api/_core/scroll.js @@ -28,7 +28,7 @@ const { normalizeArguments, parsePathParam } = require('../utils'); * @param {boolean} [params.rest_total_hits_as_int=false] - If `true`, the API response's `hit.total` property is returned as an integer. If `false`, the API response's `hit.total` property is returned as an object. * @param {string} [params.scroll] - Period to retain the search context for scrolling. * @param {string} [params.scroll_id] DEPRECATED - The scroll ID - * @param {object} [params.body] - The scroll ID if not passed by URL or query parameter. + * @param {object} [params.body] * * @param {TransportRequestOptions} [options] - Options for {@link Transport#request} * @param {function} [callback] - Callback that handles errors and response diff --git a/api/_core/search.d.ts b/api/_core/search.d.ts index bd37c1ccf..eaabc1150 100644 --- a/api/_core/search.d.ts +++ b/api/_core/search.d.ts @@ -21,7 +21,7 @@ import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type Search_Request = Global.Params & { +export interface Search_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -106,7 +106,7 @@ export type Search_RequestBody = { version?: boolean; } -export type Search_Response = ApiResponse & { +export interface Search_Response extends ApiResponse { body: Search_ResponseBody; } diff --git a/api/_core/searchShards.d.ts b/api/_core/searchShards.d.ts index dadfeefe8..662e11bb7 100644 --- a/api/_core/searchShards.d.ts +++ b/api/_core/searchShards.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_SearchShards from '../_types/_core.search_shards' import * as Global from '../_types/_global' -export type SearchShards_Request = Global.Params & { +export interface SearchShards_Request extends Global.Params { allow_no_indices?: boolean; body?: SearchShards_RequestBody; expand_wildcards?: Common.ExpandWildcards; @@ -40,7 +40,7 @@ export type SearchShards_RequestBody = { sort?: Record[]; } -export type SearchShards_Response = ApiResponse & { +export interface SearchShards_Response extends ApiResponse { body: SearchShards_ResponseBody; } diff --git a/api/_core/searchTemplate.d.ts b/api/_core/searchTemplate.d.ts index 32926d625..27983d0a4 100644 --- a/api/_core/searchTemplate.d.ts +++ b/api/_core/searchTemplate.d.ts @@ -20,7 +20,7 @@ import * as Common_Aggregations from '../_types/_common.aggregations' import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' -export type SearchTemplate_Request = Global.Params & { +export interface SearchTemplate_Request extends Global.Params { allow_no_indices?: boolean; body: SearchTemplate_RequestBody; ccs_minimize_roundtrips?: boolean; @@ -46,7 +46,7 @@ export type SearchTemplate_RequestBody = { source?: string; } -export type SearchTemplate_Response = ApiResponse & { +export interface SearchTemplate_Response extends ApiResponse { body: SearchTemplate_ResponseBody; } diff --git a/api/_core/termvectors.d.ts b/api/_core/termvectors.d.ts index 92210e28b..007c5f573 100644 --- a/api/_core/termvectors.d.ts +++ b/api/_core/termvectors.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Core_Termvectors from '../_types/_core.termvectors' import * as Global from '../_types/_global' -export type Termvectors_Request = Global.Params & { +export interface Termvectors_Request extends Global.Params { body?: Termvectors_RequestBody; field_statistics?: boolean; fields?: Common.Fields; @@ -42,13 +42,14 @@ export type Termvectors_RequestBody = { per_field_analyzer?: Record; } -export type Termvectors_Response = ApiResponse & { +export interface Termvectors_Response extends ApiResponse { body: Termvectors_ResponseBody; } export type Termvectors_ResponseBody = { - _id: Common.Id; + _id?: Common.Id; _index: Common.IndexName; + _type?: Common.Type; _version: Common.VersionNumber; found: boolean; term_vectors?: Record; diff --git a/api/_core/update.d.ts b/api/_core/update.d.ts index 75a4517ac..3507d0711 100644 --- a/api/_core/update.d.ts +++ b/api/_core/update.d.ts @@ -20,7 +20,7 @@ import * as Core_Search from '../_types/_core.search' import * as Core_Update from '../_types/_core.update' import * as Global from '../_types/_global' -export type Update_Request = Global.Params & { +export interface Update_Request extends Global.Params { _source?: Core_Search.SourceConfigParam; _source_excludes?: Common.Fields; _source_includes?: Common.Fields; @@ -48,7 +48,7 @@ export type Update_RequestBody = { upsert?: Record; } -export type Update_Response = ApiResponse & { +export interface Update_Response extends ApiResponse { body: Update_ResponseBody; } diff --git a/api/_core/updateByQuery.d.ts b/api/_core/updateByQuery.d.ts index 11df000a5..8c97f2a8a 100644 --- a/api/_core/updateByQuery.d.ts +++ b/api/_core/updateByQuery.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Global from '../_types/_global' -export type UpdateByQuery_Request = Global.Params & { +export interface UpdateByQuery_Request extends Global.Params { _source?: string[]; _source_excludes?: string[]; _source_includes?: string[]; @@ -66,7 +66,7 @@ export type UpdateByQuery_RequestBody = { slice?: Common.SlicedScroll; } -export type UpdateByQuery_Response = ApiResponse & { +export interface UpdateByQuery_Response extends ApiResponse { body: UpdateByQuery_ResponseBody; } diff --git a/api/_core/updateByQueryRethrottle.d.ts b/api/_core/updateByQueryRethrottle.d.ts index 4777c602d..400892133 100644 --- a/api/_core/updateByQueryRethrottle.d.ts +++ b/api/_core/updateByQueryRethrottle.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Core_UpdateByQueryRethrottle from '../_types/_core.update_by_query_rethrottle' import * as Global from '../_types/_global' -export type UpdateByQueryRethrottle_Request = Global.Params & { +export interface UpdateByQueryRethrottle_Request extends Global.Params { requests_per_second?: number; task_id: Common.Id; } -export type UpdateByQueryRethrottle_Response = ApiResponse & { +export interface UpdateByQueryRethrottle_Response extends ApiResponse { body: UpdateByQueryRethrottle_ResponseBody; } diff --git a/api/_types/_core.msearch_template.d.ts b/api/_types/_core.msearch_template.d.ts index 31fdafff2..9112c80b0 100644 --- a/api/_types/_core.msearch_template.d.ts +++ b/api/_types/_core.msearch_template.d.ts @@ -22,7 +22,7 @@ export type RequestItem = Core_Msearch.MultisearchHeader | TemplateConfig export type TemplateConfig = { explain?: boolean; id?: Common.Id; - params?: Record>; + params?: Record>; profile?: boolean; source?: string; } diff --git a/api/_types/_core.mtermvectors.d.ts b/api/_types/_core.mtermvectors.d.ts index 3e4c5806b..b0a4b348a 100644 --- a/api/_types/_core.mtermvectors.d.ts +++ b/api/_types/_core.mtermvectors.d.ts @@ -36,6 +36,7 @@ export type Operation = { export type TermVectorsResult = { _id: Common.Id; _index: Common.IndexName; + _type?: Common.Type; _version?: Common.VersionNumber; error?: Common.ErrorCause; found?: boolean; diff --git a/api/_types/_core.reindex_rethrottle.d.ts b/api/_types/_core.reindex_rethrottle.d.ts index 954a30ada..620f4eb52 100644 --- a/api/_types/_core.reindex_rethrottle.d.ts +++ b/api/_types/_core.reindex_rethrottle.d.ts @@ -39,10 +39,12 @@ export type ReindexStatus = { export type ReindexTask = { action: string; cancellable: boolean; + cancelled?: boolean; description: string; headers: Common.HttpHeaders; id: number; node: Common.Name; + resource_stats?: Common.ResourceStats; running_time_in_nanos: Common.DurationValueUnitNanos; start_time_in_millis: Common.EpochTimeUnitMillis; status: ReindexStatus; diff --git a/api/_types/security._common.d.ts b/api/_types/security._common.d.ts index f8e3ec5c2..6c4553e80 100644 --- a/api/_types/security._common.d.ts +++ b/api/_types/security._common.d.ts @@ -247,6 +247,8 @@ export type PatchOperation = { value?: Record; } +export type PatchOperations = PatchOperation[] + export type PermissionsInfo = { disabled_endpoints?: Record; has_api_access?: boolean; diff --git a/api/_types/tasks._common.d.ts b/api/_types/tasks._common.d.ts index ab3666cd8..71a425b67 100644 --- a/api/_types/tasks._common.d.ts +++ b/api/_types/tasks._common.d.ts @@ -43,6 +43,7 @@ export type TaskInfo = TaskInfoBase & Record export type TaskInfoBase = { action: string; cancellable: boolean; + cancellation_time_millis?: Common.EpochTimeUnitMillis; cancelled?: boolean; description?: string; headers: Record; diff --git a/api/asynchronousSearch/delete.d.ts b/api/asynchronousSearch/delete.d.ts index 0d491e1e4..7e288c3aa 100644 --- a/api/asynchronousSearch/delete.d.ts +++ b/api/asynchronousSearch/delete.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type AsynchronousSearch_Delete_Request = Global.Params & { +export interface AsynchronousSearch_Delete_Request extends Global.Params { id: string; } -export type AsynchronousSearch_Delete_Response = ApiResponse & { +export interface AsynchronousSearch_Delete_Response extends ApiResponse { body: AsynchronousSearch_Delete_ResponseBody; } diff --git a/api/asynchronousSearch/get.d.ts b/api/asynchronousSearch/get.d.ts index 480072d13..4c57a9804 100644 --- a/api/asynchronousSearch/get.d.ts +++ b/api/asynchronousSearch/get.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as AsynchronousSearch_Common from '../_types/asynchronous_search._common' import * as Global from '../_types/_global' -export type AsynchronousSearch_Get_Request = Global.Params & { +export interface AsynchronousSearch_Get_Request extends Global.Params { id: string; } -export type AsynchronousSearch_Get_Response = ApiResponse & { +export interface AsynchronousSearch_Get_Response extends ApiResponse { body: AsynchronousSearch_Get_ResponseBody; } diff --git a/api/asynchronousSearch/search.d.ts b/api/asynchronousSearch/search.d.ts index 335b7b36b..f8ed81a1d 100644 --- a/api/asynchronousSearch/search.d.ts +++ b/api/asynchronousSearch/search.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as AsynchronousSearch_Common from '../_types/asynchronous_search._common' import * as Global from '../_types/_global' -export type AsynchronousSearch_Search_Request = Global.Params & { +export interface AsynchronousSearch_Search_Request extends Global.Params { body?: AsynchronousSearch_Common.Search; index?: string; keep_alive?: string; @@ -26,7 +26,7 @@ export type AsynchronousSearch_Search_Request = Global.Params & { wait_for_completion_timeout?: string; } -export type AsynchronousSearch_Search_Response = ApiResponse & { +export interface AsynchronousSearch_Search_Response extends ApiResponse { body: AsynchronousSearch_Search_ResponseBody; } diff --git a/api/asynchronousSearch/stats.d.ts b/api/asynchronousSearch/stats.d.ts index 82d5b228c..cb9b49164 100644 --- a/api/asynchronousSearch/stats.d.ts +++ b/api/asynchronousSearch/stats.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type AsynchronousSearch_Stats_Request = Global.Params & Record -export type AsynchronousSearch_Stats_Response = ApiResponse & { +export interface AsynchronousSearch_Stats_Response extends ApiResponse { body: AsynchronousSearch_Stats_ResponseBody; } diff --git a/api/cat/aliases.d.ts b/api/cat/aliases.d.ts index c87d16bf0..81afc022f 100644 --- a/api/cat/aliases.d.ts +++ b/api/cat/aliases.d.ts @@ -19,7 +19,7 @@ import * as Cat_Aliases from '../_types/cat.aliases' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Aliases_Request = Global.Params & { +export interface Cat_Aliases_Request extends Global.Params { expand_wildcards?: Common.ExpandWildcards; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_Aliases_Request = Global.Params & { v?: boolean; } -export type Cat_Aliases_Response = ApiResponse & { +export interface Cat_Aliases_Response extends ApiResponse { body: Cat_Aliases_ResponseBody; } diff --git a/api/cat/allPitSegments.d.ts b/api/cat/allPitSegments.d.ts index 7b25627b6..17443b772 100644 --- a/api/cat/allPitSegments.d.ts +++ b/api/cat/allPitSegments.d.ts @@ -19,7 +19,7 @@ import * as Cat_Common from '../_types/cat._common' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_AllPitSegments_Request = Global.Params & { +export interface Cat_AllPitSegments_Request extends Global.Params { bytes?: Common.ByteUnit; format?: string; h?: string[]; @@ -28,7 +28,7 @@ export type Cat_AllPitSegments_Request = Global.Params & { v?: boolean; } -export type Cat_AllPitSegments_Response = ApiResponse & { +export interface Cat_AllPitSegments_Response extends ApiResponse { body: Cat_AllPitSegments_ResponseBody; } diff --git a/api/cat/allocation.d.ts b/api/cat/allocation.d.ts index 6ddd86c8c..432089c62 100644 --- a/api/cat/allocation.d.ts +++ b/api/cat/allocation.d.ts @@ -19,7 +19,7 @@ import * as Cat_Allocation from '../_types/cat.allocation' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Allocation_Request = Global.Params & { +export interface Cat_Allocation_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; format?: string; @@ -32,7 +32,7 @@ export type Cat_Allocation_Request = Global.Params & { v?: boolean; } -export type Cat_Allocation_Response = ApiResponse & { +export interface Cat_Allocation_Response extends ApiResponse { body: Cat_Allocation_ResponseBody; } diff --git a/api/cat/clusterManager.d.ts b/api/cat/clusterManager.d.ts index 9d428dff0..06e5482ab 100644 --- a/api/cat/clusterManager.d.ts +++ b/api/cat/clusterManager.d.ts @@ -19,7 +19,7 @@ import * as Cat_ClusterManager from '../_types/cat.cluster_manager' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_ClusterManager_Request = Global.Params & { +export interface Cat_ClusterManager_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_ClusterManager_Request = Global.Params & { v?: boolean; } -export type Cat_ClusterManager_Response = ApiResponse & { +export interface Cat_ClusterManager_Response extends ApiResponse { body: Cat_ClusterManager_ResponseBody; } diff --git a/api/cat/count.d.ts b/api/cat/count.d.ts index 66f289164..15e9964d2 100644 --- a/api/cat/count.d.ts +++ b/api/cat/count.d.ts @@ -19,7 +19,7 @@ import * as Cat_Count from '../_types/cat.count' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Count_Request = Global.Params & { +export interface Cat_Count_Request extends Global.Params { format?: string; h?: string[]; help?: boolean; @@ -28,7 +28,7 @@ export type Cat_Count_Request = Global.Params & { v?: boolean; } -export type Cat_Count_Response = ApiResponse & { +export interface Cat_Count_Response extends ApiResponse { body: Cat_Count_ResponseBody; } diff --git a/api/cat/fielddata.d.ts b/api/cat/fielddata.d.ts index cd51575bd..29b757181 100644 --- a/api/cat/fielddata.d.ts +++ b/api/cat/fielddata.d.ts @@ -19,7 +19,7 @@ import * as Cat_Fielddata from '../_types/cat.fielddata' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Fielddata_Request = Global.Params & { +export interface Cat_Fielddata_Request extends Global.Params { bytes?: Common.ByteUnit; fields?: Common.Fields; format?: string; @@ -29,7 +29,7 @@ export type Cat_Fielddata_Request = Global.Params & { v?: boolean; } -export type Cat_Fielddata_Response = ApiResponse & { +export interface Cat_Fielddata_Response extends ApiResponse { body: Cat_Fielddata_ResponseBody; } diff --git a/api/cat/health.d.ts b/api/cat/health.d.ts index 4a6e681d6..7afcfe188 100644 --- a/api/cat/health.d.ts +++ b/api/cat/health.d.ts @@ -19,7 +19,7 @@ import * as Cat_Health from '../_types/cat.health' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Health_Request = Global.Params & { +export interface Cat_Health_Request extends Global.Params { format?: string; h?: string[]; help?: boolean; @@ -29,7 +29,7 @@ export type Cat_Health_Request = Global.Params & { v?: boolean; } -export type Cat_Health_Response = ApiResponse & { +export interface Cat_Health_Response extends ApiResponse { body: Cat_Health_ResponseBody; } diff --git a/api/cat/help.d.ts b/api/cat/help.d.ts index 0adadb212..9c98ea885 100644 --- a/api/cat/help.d.ts +++ b/api/cat/help.d.ts @@ -19,7 +19,7 @@ import * as Global from '../_types/_global' export type Cat_Help_Request = Global.Params & Record -export type Cat_Help_Response = ApiResponse & { +export interface Cat_Help_Response extends ApiResponse { body: Cat_Help_ResponseBody; } diff --git a/api/cat/indices.d.ts b/api/cat/indices.d.ts index 1e1e167a3..9ac85a6bf 100644 --- a/api/cat/indices.d.ts +++ b/api/cat/indices.d.ts @@ -19,7 +19,7 @@ import * as Cat_Indices from '../_types/cat.indices' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Indices_Request = Global.Params & { +export interface Cat_Indices_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -37,7 +37,7 @@ export type Cat_Indices_Request = Global.Params & { v?: boolean; } -export type Cat_Indices_Response = ApiResponse & { +export interface Cat_Indices_Response extends ApiResponse { body: Cat_Indices_ResponseBody; } diff --git a/api/cat/master.d.ts b/api/cat/master.d.ts index cb144232d..f7bb1bfbd 100644 --- a/api/cat/master.d.ts +++ b/api/cat/master.d.ts @@ -19,7 +19,7 @@ import * as Cat_Master from '../_types/cat.master' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Master_Request = Global.Params & { +export interface Cat_Master_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_Master_Request = Global.Params & { v?: boolean; } -export type Cat_Master_Response = ApiResponse & { +export interface Cat_Master_Response extends ApiResponse { body: Cat_Master_ResponseBody; } diff --git a/api/cat/nodeattrs.d.ts b/api/cat/nodeattrs.d.ts index 56e3c4f5b..bcea05f77 100644 --- a/api/cat/nodeattrs.d.ts +++ b/api/cat/nodeattrs.d.ts @@ -19,7 +19,7 @@ import * as Cat_Nodeattrs from '../_types/cat.nodeattrs' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Nodeattrs_Request = Global.Params & { +export interface Cat_Nodeattrs_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_Nodeattrs_Request = Global.Params & { v?: boolean; } -export type Cat_Nodeattrs_Response = ApiResponse & { +export interface Cat_Nodeattrs_Response extends ApiResponse { body: Cat_Nodeattrs_ResponseBody; } diff --git a/api/cat/nodes.d.ts b/api/cat/nodes.d.ts index 014d41883..426ebdd38 100644 --- a/api/cat/nodes.d.ts +++ b/api/cat/nodes.d.ts @@ -19,7 +19,7 @@ import * as Cat_Nodes from '../_types/cat.nodes' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Nodes_Request = Global.Params & { +export interface Cat_Nodes_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; format?: string; @@ -33,7 +33,7 @@ export type Cat_Nodes_Request = Global.Params & { v?: boolean; } -export type Cat_Nodes_Response = ApiResponse & { +export interface Cat_Nodes_Response extends ApiResponse { body: Cat_Nodes_ResponseBody; } diff --git a/api/cat/pendingTasks.d.ts b/api/cat/pendingTasks.d.ts index bd7f7931c..0fa7d6530 100644 --- a/api/cat/pendingTasks.d.ts +++ b/api/cat/pendingTasks.d.ts @@ -19,7 +19,7 @@ import * as Cat_PendingTasks from '../_types/cat.pending_tasks' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_PendingTasks_Request = Global.Params & { +export interface Cat_PendingTasks_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -31,7 +31,7 @@ export type Cat_PendingTasks_Request = Global.Params & { v?: boolean; } -export type Cat_PendingTasks_Response = ApiResponse & { +export interface Cat_PendingTasks_Response extends ApiResponse { body: Cat_PendingTasks_ResponseBody; } diff --git a/api/cat/pitSegments.d.ts b/api/cat/pitSegments.d.ts index 617af7ec2..7f0d54404 100644 --- a/api/cat/pitSegments.d.ts +++ b/api/cat/pitSegments.d.ts @@ -19,7 +19,7 @@ import * as Cat_Common from '../_types/cat._common' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_PitSegments_Request = Global.Params & { +export interface Cat_PitSegments_Request extends Global.Params { body?: Cat_PitSegments_RequestBody; bytes?: Common.ByteUnit; format?: string; @@ -33,7 +33,7 @@ export type Cat_PitSegments_RequestBody = { pit_id: string[]; } -export type Cat_PitSegments_Response = ApiResponse & { +export interface Cat_PitSegments_Response extends ApiResponse { body: Cat_PitSegments_ResponseBody; } diff --git a/api/cat/plugins.d.ts b/api/cat/plugins.d.ts index 14f36b404..f32c9d368 100644 --- a/api/cat/plugins.d.ts +++ b/api/cat/plugins.d.ts @@ -19,7 +19,7 @@ import * as Cat_Plugins from '../_types/cat.plugins' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Plugins_Request = Global.Params & { +export interface Cat_Plugins_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_Plugins_Request = Global.Params & { v?: boolean; } -export type Cat_Plugins_Response = ApiResponse & { +export interface Cat_Plugins_Response extends ApiResponse { body: Cat_Plugins_ResponseBody; } diff --git a/api/cat/recovery.d.ts b/api/cat/recovery.d.ts index f4a7d13e7..3a307ac7a 100644 --- a/api/cat/recovery.d.ts +++ b/api/cat/recovery.d.ts @@ -19,7 +19,7 @@ import * as Cat_Recovery from '../_types/cat.recovery' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Recovery_Request = Global.Params & { +export interface Cat_Recovery_Request extends Global.Params { active_only?: boolean; bytes?: Common.ByteUnit; detailed?: boolean; @@ -32,7 +32,7 @@ export type Cat_Recovery_Request = Global.Params & { v?: boolean; } -export type Cat_Recovery_Response = ApiResponse & { +export interface Cat_Recovery_Response extends ApiResponse { body: Cat_Recovery_ResponseBody; } diff --git a/api/cat/repositories.d.ts b/api/cat/repositories.d.ts index fb68ecde8..939670b66 100644 --- a/api/cat/repositories.d.ts +++ b/api/cat/repositories.d.ts @@ -19,7 +19,7 @@ import * as Cat_Repositories from '../_types/cat.repositories' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Repositories_Request = Global.Params & { +export interface Cat_Repositories_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -30,7 +30,7 @@ export type Cat_Repositories_Request = Global.Params & { v?: boolean; } -export type Cat_Repositories_Response = ApiResponse & { +export interface Cat_Repositories_Response extends ApiResponse { body: Cat_Repositories_ResponseBody; } diff --git a/api/cat/segmentReplication.d.ts b/api/cat/segmentReplication.d.ts index 72b71e833..742da1a21 100644 --- a/api/cat/segmentReplication.d.ts +++ b/api/cat/segmentReplication.d.ts @@ -19,7 +19,7 @@ import * as Cat_Common from '../_types/cat._common' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_SegmentReplication_Request = Global.Params & { +export interface Cat_SegmentReplication_Request extends Global.Params { active_only?: boolean; allow_no_indices?: boolean; bytes?: Common.ByteUnit; @@ -39,7 +39,7 @@ export type Cat_SegmentReplication_Request = Global.Params & { v?: boolean; } -export type Cat_SegmentReplication_Response = ApiResponse & { +export interface Cat_SegmentReplication_Response extends ApiResponse { body: Cat_SegmentReplication_ResponseBody; } diff --git a/api/cat/segments.d.ts b/api/cat/segments.d.ts index dd936edc3..41c3dc48d 100644 --- a/api/cat/segments.d.ts +++ b/api/cat/segments.d.ts @@ -19,7 +19,7 @@ import * as Cat_Segments from '../_types/cat.segments' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Segments_Request = Global.Params & { +export interface Cat_Segments_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; format?: string; @@ -31,7 +31,7 @@ export type Cat_Segments_Request = Global.Params & { v?: boolean; } -export type Cat_Segments_Response = ApiResponse & { +export interface Cat_Segments_Response extends ApiResponse { body: Cat_Segments_ResponseBody; } diff --git a/api/cat/shards.d.ts b/api/cat/shards.d.ts index 846d2f733..9be7ca924 100644 --- a/api/cat/shards.d.ts +++ b/api/cat/shards.d.ts @@ -19,7 +19,7 @@ import * as Cat_Shards from '../_types/cat.shards' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Shards_Request = Global.Params & { +export interface Cat_Shards_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; format?: string; @@ -33,7 +33,7 @@ export type Cat_Shards_Request = Global.Params & { v?: boolean; } -export type Cat_Shards_Response = ApiResponse & { +export interface Cat_Shards_Response extends ApiResponse { body: Cat_Shards_ResponseBody; } diff --git a/api/cat/snapshots.d.ts b/api/cat/snapshots.d.ts index 7adfa34e7..f560b1645 100644 --- a/api/cat/snapshots.d.ts +++ b/api/cat/snapshots.d.ts @@ -19,7 +19,7 @@ import * as Cat_Snapshots from '../_types/cat.snapshots' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Snapshots_Request = Global.Params & { +export interface Cat_Snapshots_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -32,7 +32,7 @@ export type Cat_Snapshots_Request = Global.Params & { v?: boolean; } -export type Cat_Snapshots_Response = ApiResponse & { +export interface Cat_Snapshots_Response extends ApiResponse { body: Cat_Snapshots_ResponseBody; } diff --git a/api/cat/tasks.d.ts b/api/cat/tasks.d.ts index 0a4fe80ab..f0dcc16c6 100644 --- a/api/cat/tasks.d.ts +++ b/api/cat/tasks.d.ts @@ -19,7 +19,7 @@ import * as Cat_Tasks from '../_types/cat.tasks' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Tasks_Request = Global.Params & { +export interface Cat_Tasks_Request extends Global.Params { actions?: string[]; detailed?: boolean; format?: string; @@ -32,7 +32,7 @@ export type Cat_Tasks_Request = Global.Params & { v?: boolean; } -export type Cat_Tasks_Response = ApiResponse & { +export interface Cat_Tasks_Response extends ApiResponse { body: Cat_Tasks_ResponseBody; } diff --git a/api/cat/templates.d.ts b/api/cat/templates.d.ts index 58666e067..5bcbea6c6 100644 --- a/api/cat/templates.d.ts +++ b/api/cat/templates.d.ts @@ -19,7 +19,7 @@ import * as Cat_Templates from '../_types/cat.templates' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_Templates_Request = Global.Params & { +export interface Cat_Templates_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -31,7 +31,7 @@ export type Cat_Templates_Request = Global.Params & { v?: boolean; } -export type Cat_Templates_Response = ApiResponse & { +export interface Cat_Templates_Response extends ApiResponse { body: Cat_Templates_ResponseBody; } diff --git a/api/cat/threadPool.d.ts b/api/cat/threadPool.d.ts index fd8b4a68e..410090207 100644 --- a/api/cat/threadPool.d.ts +++ b/api/cat/threadPool.d.ts @@ -19,7 +19,7 @@ import * as Cat_ThreadPool from '../_types/cat.thread_pool' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cat_ThreadPool_Request = Global.Params & { +export interface Cat_ThreadPool_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; format?: string; h?: string[]; @@ -32,7 +32,7 @@ export type Cat_ThreadPool_Request = Global.Params & { v?: boolean; } -export type Cat_ThreadPool_Response = ApiResponse & { +export interface Cat_ThreadPool_Response extends ApiResponse { body: Cat_ThreadPool_ResponseBody; } diff --git a/api/cluster/allocationExplain.d.ts b/api/cluster/allocationExplain.d.ts index e7df6065e..e7b276c25 100644 --- a/api/cluster/allocationExplain.d.ts +++ b/api/cluster/allocationExplain.d.ts @@ -19,7 +19,7 @@ import * as Cluster_AllocationExplain from '../_types/cluster.allocation_explain import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_AllocationExplain_Request = Global.Params & { +export interface Cluster_AllocationExplain_Request extends Global.Params { body?: Cluster_AllocationExplain_RequestBody; include_disk_info?: boolean; include_yes_decisions?: boolean; @@ -32,7 +32,7 @@ export type Cluster_AllocationExplain_RequestBody = { shard?: number; } -export type Cluster_AllocationExplain_Response = ApiResponse & { +export interface Cluster_AllocationExplain_Response extends ApiResponse { body: Cluster_AllocationExplain_ResponseBody; } diff --git a/api/cluster/deleteComponentTemplate.d.ts b/api/cluster/deleteComponentTemplate.d.ts index 62450a209..ebb184123 100644 --- a/api/cluster/deleteComponentTemplate.d.ts +++ b/api/cluster/deleteComponentTemplate.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_DeleteComponentTemplate_Request = Global.Params & { +export interface Cluster_DeleteComponentTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; name: Common.Name; timeout?: Common.Duration; } -export type Cluster_DeleteComponentTemplate_Response = ApiResponse & { +export interface Cluster_DeleteComponentTemplate_Response extends ApiResponse { body: Cluster_DeleteComponentTemplate_ResponseBody; } diff --git a/api/cluster/deleteDecommissionAwareness.d.ts b/api/cluster/deleteDecommissionAwareness.d.ts index 6ae0f6e89..5b6da4846 100644 --- a/api/cluster/deleteDecommissionAwareness.d.ts +++ b/api/cluster/deleteDecommissionAwareness.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type Cluster_DeleteDecommissionAwareness_Request = Global.Params & Record -export type Cluster_DeleteDecommissionAwareness_Response = ApiResponse & { +export interface Cluster_DeleteDecommissionAwareness_Response extends ApiResponse { body: Cluster_DeleteDecommissionAwareness_ResponseBody; } diff --git a/api/cluster/deleteVotingConfigExclusions.d.ts b/api/cluster/deleteVotingConfigExclusions.d.ts index 7d80bd7d1..b44af7a25 100644 --- a/api/cluster/deleteVotingConfigExclusions.d.ts +++ b/api/cluster/deleteVotingConfigExclusions.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Cluster_DeleteVotingConfigExclusions_Request = Global.Params & { +export interface Cluster_DeleteVotingConfigExclusions_Request extends Global.Params { wait_for_removal?: boolean; } -export type Cluster_DeleteVotingConfigExclusions_Response = ApiResponse & { +export interface Cluster_DeleteVotingConfigExclusions_Response extends ApiResponse { body: Cluster_DeleteVotingConfigExclusions_ResponseBody; } diff --git a/api/cluster/deleteWeightedRouting.d.ts b/api/cluster/deleteWeightedRouting.d.ts index 025ec8654..f31f138e9 100644 --- a/api/cluster/deleteWeightedRouting.d.ts +++ b/api/cluster/deleteWeightedRouting.d.ts @@ -19,11 +19,11 @@ import * as Cluster_WeightedRouting from '../_types/cluster.weighted_routing' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_DeleteWeightedRouting_Request = Global.Params & { +export interface Cluster_DeleteWeightedRouting_Request extends Global.Params { body?: Cluster_WeightedRouting.WeightsBase; } -export type Cluster_DeleteWeightedRouting_Response = ApiResponse & { +export interface Cluster_DeleteWeightedRouting_Response extends ApiResponse { body: Cluster_DeleteWeightedRouting_ResponseBody; } diff --git a/api/cluster/existsComponentTemplate.d.ts b/api/cluster/existsComponentTemplate.d.ts index fb4e0cb06..0041d63be 100644 --- a/api/cluster/existsComponentTemplate.d.ts +++ b/api/cluster/existsComponentTemplate.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_ExistsComponentTemplate_Request = Global.Params & { +export interface Cluster_ExistsComponentTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; local?: boolean; master_timeout?: Common.Duration; name: Common.Name; } -export type Cluster_ExistsComponentTemplate_Response = ApiResponse & { +export interface Cluster_ExistsComponentTemplate_Response extends ApiResponse { body: Cluster_ExistsComponentTemplate_ResponseBody; } diff --git a/api/cluster/getComponentTemplate.d.ts b/api/cluster/getComponentTemplate.d.ts index a345d28bd..e561a0822 100644 --- a/api/cluster/getComponentTemplate.d.ts +++ b/api/cluster/getComponentTemplate.d.ts @@ -19,14 +19,14 @@ import * as Cluster_Common from '../_types/cluster._common' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_GetComponentTemplate_Request = Global.Params & { +export interface Cluster_GetComponentTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; local?: boolean; master_timeout?: Common.Duration; name?: Common.Name; } -export type Cluster_GetComponentTemplate_Response = ApiResponse & { +export interface Cluster_GetComponentTemplate_Response extends ApiResponse { body: Cluster_GetComponentTemplate_ResponseBody; } diff --git a/api/cluster/getDecommissionAwareness.d.ts b/api/cluster/getDecommissionAwareness.d.ts index c26a87c07..6dd808aaf 100644 --- a/api/cluster/getDecommissionAwareness.d.ts +++ b/api/cluster/getDecommissionAwareness.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Cluster_DecommissionAwareness from '../_types/cluster.decommission_awareness' import * as Global from '../_types/_global' -export type Cluster_GetDecommissionAwareness_Request = Global.Params & { +export interface Cluster_GetDecommissionAwareness_Request extends Global.Params { awareness_attribute_name: string; } -export type Cluster_GetDecommissionAwareness_Response = ApiResponse & { +export interface Cluster_GetDecommissionAwareness_Response extends ApiResponse { body: Cluster_GetDecommissionAwareness_ResponseBody; } diff --git a/api/cluster/getSettings.d.ts b/api/cluster/getSettings.d.ts index d2ae794cb..2c7ff0b5d 100644 --- a/api/cluster/getSettings.d.ts +++ b/api/cluster/getSettings.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_GetSettings_Request = Global.Params & { +export interface Cluster_GetSettings_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; include_defaults?: boolean; @@ -26,7 +26,7 @@ export type Cluster_GetSettings_Request = Global.Params & { timeout?: Common.Duration; } -export type Cluster_GetSettings_Response = ApiResponse & { +export interface Cluster_GetSettings_Response extends ApiResponse { body: Cluster_GetSettings_ResponseBody; } diff --git a/api/cluster/getWeightedRouting.d.ts b/api/cluster/getWeightedRouting.d.ts index b2ad3a50a..5b3f64668 100644 --- a/api/cluster/getWeightedRouting.d.ts +++ b/api/cluster/getWeightedRouting.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Cluster_WeightedRouting from '../_types/cluster.weighted_routing' import * as Global from '../_types/_global' -export type Cluster_GetWeightedRouting_Request = Global.Params & { +export interface Cluster_GetWeightedRouting_Request extends Global.Params { attribute: string; } -export type Cluster_GetWeightedRouting_Response = ApiResponse & { +export interface Cluster_GetWeightedRouting_Response extends ApiResponse { body: Cluster_GetWeightedRouting_ResponseBody; } diff --git a/api/cluster/health.d.ts b/api/cluster/health.d.ts index 83750f42f..22729f6c0 100644 --- a/api/cluster/health.d.ts +++ b/api/cluster/health.d.ts @@ -19,7 +19,7 @@ import * as Cluster_Health from '../_types/cluster.health' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_Health_Request = Global.Params & { +export interface Cluster_Health_Request extends Global.Params { awareness_attribute?: string; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -36,7 +36,7 @@ export type Cluster_Health_Request = Global.Params & { wait_for_status?: Common.HealthStatus; } -export type Cluster_Health_Response = ApiResponse & { +export interface Cluster_Health_Response extends ApiResponse { body: Cluster_Health_ResponseBody; } diff --git a/api/cluster/pendingTasks.d.ts b/api/cluster/pendingTasks.d.ts index 737ef24e9..35681b160 100644 --- a/api/cluster/pendingTasks.d.ts +++ b/api/cluster/pendingTasks.d.ts @@ -19,13 +19,13 @@ import * as Cluster_PendingTasks from '../_types/cluster.pending_tasks' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_PendingTasks_Request = Global.Params & { +export interface Cluster_PendingTasks_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; local?: boolean; master_timeout?: Common.Duration; } -export type Cluster_PendingTasks_Response = ApiResponse & { +export interface Cluster_PendingTasks_Response extends ApiResponse { body: Cluster_PendingTasks_ResponseBody; } diff --git a/api/cluster/postVotingConfigExclusions.d.ts b/api/cluster/postVotingConfigExclusions.d.ts index 0a93e545b..8b01d1637 100644 --- a/api/cluster/postVotingConfigExclusions.d.ts +++ b/api/cluster/postVotingConfigExclusions.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_PostVotingConfigExclusions_Request = Global.Params & { +export interface Cluster_PostVotingConfigExclusions_Request extends Global.Params { node_ids?: Common.Ids; node_names?: Common.Names; timeout?: Common.Duration; } -export type Cluster_PostVotingConfigExclusions_Response = ApiResponse & { +export interface Cluster_PostVotingConfigExclusions_Response extends ApiResponse { body: Cluster_PostVotingConfigExclusions_ResponseBody; } diff --git a/api/cluster/putComponentTemplate.d.ts b/api/cluster/putComponentTemplate.d.ts index 035c224f5..92c036704 100644 --- a/api/cluster/putComponentTemplate.d.ts +++ b/api/cluster/putComponentTemplate.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Cluster_PutComponentTemplate_Request = Global.Params & { +export interface Cluster_PutComponentTemplate_Request extends Global.Params { body: Cluster_PutComponentTemplate_RequestBody; cluster_manager_timeout?: Common.Duration; create?: boolean; @@ -35,7 +35,7 @@ export type Cluster_PutComponentTemplate_RequestBody = { version?: Common.VersionNumber; } -export type Cluster_PutComponentTemplate_Response = ApiResponse & { +export interface Cluster_PutComponentTemplate_Response extends ApiResponse { body: Cluster_PutComponentTemplate_ResponseBody; } diff --git a/api/cluster/putDecommissionAwareness.d.ts b/api/cluster/putDecommissionAwareness.d.ts index b85aa383a..f026b6623 100644 --- a/api/cluster/putDecommissionAwareness.d.ts +++ b/api/cluster/putDecommissionAwareness.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_PutDecommissionAwareness_Request = Global.Params & { +export interface Cluster_PutDecommissionAwareness_Request extends Global.Params { awareness_attribute_name: string; awareness_attribute_value: string; } -export type Cluster_PutDecommissionAwareness_Response = ApiResponse & { +export interface Cluster_PutDecommissionAwareness_Response extends ApiResponse { body: Cluster_PutDecommissionAwareness_ResponseBody; } diff --git a/api/cluster/putSettings.d.ts b/api/cluster/putSettings.d.ts index ca4fbeb35..db6f867f4 100644 --- a/api/cluster/putSettings.d.ts +++ b/api/cluster/putSettings.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_PutSettings_Request = Global.Params & { +export interface Cluster_PutSettings_Request extends Global.Params { body: Cluster_PutSettings_RequestBody; cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; @@ -33,7 +33,7 @@ export type Cluster_PutSettings_RequestBody = { }; } -export type Cluster_PutSettings_Response = ApiResponse & { +export interface Cluster_PutSettings_Response extends ApiResponse { body: Cluster_PutSettings_ResponseBody; } diff --git a/api/cluster/putWeightedRouting.d.ts b/api/cluster/putWeightedRouting.d.ts index 73930b239..8e18825d6 100644 --- a/api/cluster/putWeightedRouting.d.ts +++ b/api/cluster/putWeightedRouting.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Cluster_WeightedRouting from '../_types/cluster.weighted_routing' import * as Global from '../_types/_global' -export type Cluster_PutWeightedRouting_Request = Global.Params & { +export interface Cluster_PutWeightedRouting_Request extends Global.Params { attribute: string; body?: Cluster_WeightedRouting.Weights; } -export type Cluster_PutWeightedRouting_Response = ApiResponse & { +export interface Cluster_PutWeightedRouting_Response extends ApiResponse { body: Cluster_PutWeightedRouting_ResponseBody; } diff --git a/api/cluster/remoteInfo.d.ts b/api/cluster/remoteInfo.d.ts index c812335b9..bcd4a6e58 100644 --- a/api/cluster/remoteInfo.d.ts +++ b/api/cluster/remoteInfo.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' export type Cluster_RemoteInfo_Request = Global.Params & Record -export type Cluster_RemoteInfo_Response = ApiResponse & { +export interface Cluster_RemoteInfo_Response extends ApiResponse { body: Cluster_RemoteInfo_ResponseBody; } diff --git a/api/cluster/reroute.d.ts b/api/cluster/reroute.d.ts index 6f3e810a7..144d07a6e 100644 --- a/api/cluster/reroute.d.ts +++ b/api/cluster/reroute.d.ts @@ -19,7 +19,7 @@ import * as Cluster_Reroute from '../_types/cluster.reroute' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_Reroute_Request = Global.Params & { +export interface Cluster_Reroute_Request extends Global.Params { body?: Cluster_Reroute_RequestBody; cluster_manager_timeout?: Common.Duration; dry_run?: boolean; @@ -34,7 +34,7 @@ export type Cluster_Reroute_RequestBody = { commands?: Cluster_Reroute.Command[]; } -export type Cluster_Reroute_Response = ApiResponse & { +export interface Cluster_Reroute_Response extends ApiResponse { body: Cluster_Reroute_ResponseBody; } diff --git a/api/cluster/state.d.ts b/api/cluster/state.d.ts index c798f658f..585743cd5 100644 --- a/api/cluster/state.d.ts +++ b/api/cluster/state.d.ts @@ -19,7 +19,7 @@ import * as Cluster_State from '../_types/cluster.state' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_State_Request = Global.Params & { +export interface Cluster_State_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -33,7 +33,7 @@ export type Cluster_State_Request = Global.Params & { wait_for_timeout?: Common.Duration; } -export type Cluster_State_Response = ApiResponse & { +export interface Cluster_State_Response extends ApiResponse { body: Cluster_State_ResponseBody; } diff --git a/api/cluster/stats.d.ts b/api/cluster/stats.d.ts index edef3b682..574890636 100644 --- a/api/cluster/stats.d.ts +++ b/api/cluster/stats.d.ts @@ -19,7 +19,7 @@ import * as Cluster_Stats from '../_types/cluster.stats' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Cluster_Stats_Request = Global.Params & { +export interface Cluster_Stats_Request extends Global.Params { flat_settings?: boolean; index_metric?: Cluster_Stats.IndexMetric[]; metric?: Cluster_Stats.Metric[]; @@ -27,7 +27,7 @@ export type Cluster_Stats_Request = Global.Params & { timeout?: Common.Duration; } -export type Cluster_Stats_Response = ApiResponse & { +export interface Cluster_Stats_Response extends ApiResponse { body: Cluster_Stats_ResponseBody; } diff --git a/api/danglingIndices/deleteDanglingIndex.d.ts b/api/danglingIndices/deleteDanglingIndex.d.ts index 462cea18c..a5936fe94 100644 --- a/api/danglingIndices/deleteDanglingIndex.d.ts +++ b/api/danglingIndices/deleteDanglingIndex.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type DanglingIndices_DeleteDanglingIndex_Request = Global.Params & { +export interface DanglingIndices_DeleteDanglingIndex_Request extends Global.Params { accept_data_loss: boolean; cluster_manager_timeout?: Common.Duration; index_uuid: Common.Uuid; @@ -26,7 +26,7 @@ export type DanglingIndices_DeleteDanglingIndex_Request = Global.Params & { timeout?: Common.Duration; } -export type DanglingIndices_DeleteDanglingIndex_Response = ApiResponse & { +export interface DanglingIndices_DeleteDanglingIndex_Response extends ApiResponse { body: DanglingIndices_DeleteDanglingIndex_ResponseBody; } diff --git a/api/danglingIndices/importDanglingIndex.d.ts b/api/danglingIndices/importDanglingIndex.d.ts index 8a2aeb21b..13386360a 100644 --- a/api/danglingIndices/importDanglingIndex.d.ts +++ b/api/danglingIndices/importDanglingIndex.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type DanglingIndices_ImportDanglingIndex_Request = Global.Params & { +export interface DanglingIndices_ImportDanglingIndex_Request extends Global.Params { accept_data_loss: boolean; cluster_manager_timeout?: Common.Duration; index_uuid: Common.Uuid; @@ -26,7 +26,7 @@ export type DanglingIndices_ImportDanglingIndex_Request = Global.Params & { timeout?: Common.Duration; } -export type DanglingIndices_ImportDanglingIndex_Response = ApiResponse & { +export interface DanglingIndices_ImportDanglingIndex_Response extends ApiResponse { body: DanglingIndices_ImportDanglingIndex_ResponseBody; } diff --git a/api/danglingIndices/listDanglingIndices.d.ts b/api/danglingIndices/listDanglingIndices.d.ts index e91b11a1c..58e009145 100644 --- a/api/danglingIndices/listDanglingIndices.d.ts +++ b/api/danglingIndices/listDanglingIndices.d.ts @@ -21,7 +21,7 @@ import * as Global from '../_types/_global' export type DanglingIndices_ListDanglingIndices_Request = Global.Params & Record -export type DanglingIndices_ListDanglingIndices_Response = ApiResponse & { +export interface DanglingIndices_ListDanglingIndices_Response extends ApiResponse { body: DanglingIndices_ListDanglingIndices_ResponseBody; } diff --git a/api/flowFramework/create.d.ts b/api/flowFramework/create.d.ts index d7da3df0b..dc4a47d84 100644 --- a/api/flowFramework/create.d.ts +++ b/api/flowFramework/create.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Create_Request = Global.Params & { +export interface FlowFramework_Create_Request extends Global.Params { body?: FlowFramework_Common.FlowFrameworkCreate; provision?: FlowFramework_Common.Provision; reprovision?: FlowFramework_Common.Reprovision; @@ -27,7 +27,7 @@ export type FlowFramework_Create_Request = Global.Params & { validation?: FlowFramework_Common.Validation; } -export type FlowFramework_Create_Response = ApiResponse & { +export interface FlowFramework_Create_Response extends ApiResponse { body: FlowFramework_Create_ResponseBody; } diff --git a/api/flowFramework/delete.d.ts b/api/flowFramework/delete.d.ts index 4bd889dd9..b406fa85a 100644 --- a/api/flowFramework/delete.d.ts +++ b/api/flowFramework/delete.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Delete_Request = Global.Params & { +export interface FlowFramework_Delete_Request extends Global.Params { clear_status?: boolean; workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_Delete_Response = ApiResponse & { +export interface FlowFramework_Delete_Response extends ApiResponse { body: FlowFramework_Delete_ResponseBody; } diff --git a/api/flowFramework/deprovision.d.ts b/api/flowFramework/deprovision.d.ts index 666958eae..04fb280c2 100644 --- a/api/flowFramework/deprovision.d.ts +++ b/api/flowFramework/deprovision.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Deprovision_Request = Global.Params & { +export interface FlowFramework_Deprovision_Request extends Global.Params { allow_delete?: FlowFramework_Common.AllowDelete; workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_Deprovision_Response = ApiResponse & { +export interface FlowFramework_Deprovision_Response extends ApiResponse { body: FlowFramework_Deprovision_ResponseBody; } diff --git a/api/flowFramework/get.d.ts b/api/flowFramework/get.d.ts index dce19cf82..aebc25168 100644 --- a/api/flowFramework/get.d.ts +++ b/api/flowFramework/get.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Get_Request = Global.Params & { +export interface FlowFramework_Get_Request extends Global.Params { workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_Get_Response = ApiResponse & { +export interface FlowFramework_Get_Response extends ApiResponse { body: FlowFramework_Get_ResponseBody; } diff --git a/api/flowFramework/getStatus.d.ts b/api/flowFramework/getStatus.d.ts index 49e36fdf5..d706e6ae3 100644 --- a/api/flowFramework/getStatus.d.ts +++ b/api/flowFramework/getStatus.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_GetStatus_Request = Global.Params & { +export interface FlowFramework_GetStatus_Request extends Global.Params { all?: FlowFramework_Common.All; workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_GetStatus_Response = ApiResponse & { +export interface FlowFramework_GetStatus_Response extends ApiResponse { body: FlowFramework_GetStatus_ResponseBody; } diff --git a/api/flowFramework/getSteps.d.ts b/api/flowFramework/getSteps.d.ts index 2f4b4428b..395727889 100644 --- a/api/flowFramework/getSteps.d.ts +++ b/api/flowFramework/getSteps.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_GetSteps_Request = Global.Params & { +export interface FlowFramework_GetSteps_Request extends Global.Params { workflow_step?: FlowFramework_Common.WorkflowStepName; } -export type FlowFramework_GetSteps_Response = ApiResponse & { +export interface FlowFramework_GetSteps_Response extends ApiResponse { body: FlowFramework_GetSteps_ResponseBody; } diff --git a/api/flowFramework/provision.d.ts b/api/flowFramework/provision.d.ts index c75925804..a49a53523 100644 --- a/api/flowFramework/provision.d.ts +++ b/api/flowFramework/provision.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Provision_Request = Global.Params & { +export interface FlowFramework_Provision_Request extends Global.Params { body?: FlowFramework_Common.UserProvidedSubstitutionExpressions; workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_Provision_Response = ApiResponse & { +export interface FlowFramework_Provision_Response extends ApiResponse { body: FlowFramework_Provision_ResponseBody; } diff --git a/api/flowFramework/search.d.ts b/api/flowFramework/search.d.ts index cd8b992d6..10d22eaac 100644 --- a/api/flowFramework/search.d.ts +++ b/api/flowFramework/search.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Search_Request = Global.Params & { +export interface FlowFramework_Search_Request extends Global.Params { body: FlowFramework_Common.SearchWorkflowRequest; } -export type FlowFramework_Search_Response = ApiResponse & { +export interface FlowFramework_Search_Response extends ApiResponse { body: FlowFramework_Search_ResponseBody; } diff --git a/api/flowFramework/searchState.d.ts b/api/flowFramework/searchState.d.ts index 5113d2b97..32794f009 100644 --- a/api/flowFramework/searchState.d.ts +++ b/api/flowFramework/searchState.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_SearchState_Request = Global.Params & { +export interface FlowFramework_SearchState_Request extends Global.Params { body: FlowFramework_Common.SearchWorkflowRequest; } -export type FlowFramework_SearchState_Response = ApiResponse & { +export interface FlowFramework_SearchState_Response extends ApiResponse { body: FlowFramework_SearchState_ResponseBody; } diff --git a/api/flowFramework/update.d.ts b/api/flowFramework/update.d.ts index 7adef1320..fddb4fef7 100644 --- a/api/flowFramework/update.d.ts +++ b/api/flowFramework/update.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as FlowFramework_Common from '../_types/flow_framework.common' import * as Global from '../_types/_global' -export type FlowFramework_Update_Request = Global.Params & { +export interface FlowFramework_Update_Request extends Global.Params { body?: FlowFramework_Common.FlowFrameworkUpdate; provision?: FlowFramework_Common.Provision; reprovision?: FlowFramework_Common.Reprovision; @@ -28,7 +28,7 @@ export type FlowFramework_Update_Request = Global.Params & { workflow_id: FlowFramework_Common.WorkflowID; } -export type FlowFramework_Update_Response = ApiResponse & { +export interface FlowFramework_Update_Response extends ApiResponse { body: FlowFramework_Update_ResponseBody; } diff --git a/api/indices/addBlock.d.ts b/api/indices/addBlock.d.ts index 79aa734e7..0f2199dd2 100644 --- a/api/indices/addBlock.d.ts +++ b/api/indices/addBlock.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_AddBlock from '../_types/indices.add_block' -export type Indices_AddBlock_Request = Global.Params & { +export interface Indices_AddBlock_Request extends Global.Params { allow_no_indices?: boolean; block: Indices_AddBlock.IndicesBlockOptions; cluster_manager_timeout?: Common.Duration; @@ -30,7 +30,7 @@ export type Indices_AddBlock_Request = Global.Params & { timeout?: Common.Duration; } -export type Indices_AddBlock_Response = ApiResponse & { +export interface Indices_AddBlock_Response extends ApiResponse { body: Indices_AddBlock_ResponseBody; } diff --git a/api/indices/analyze.d.ts b/api/indices/analyze.d.ts index fd32e10b7..6b3ee0034 100644 --- a/api/indices/analyze.d.ts +++ b/api/indices/analyze.d.ts @@ -20,7 +20,7 @@ import * as Common_Analysis from '../_types/_common.analysis' import * as Global from '../_types/_global' import * as Indices_Analyze from '../_types/indices.analyze' -export type Indices_Analyze_Request = Global.Params & { +export interface Indices_Analyze_Request extends Global.Params { body?: Indices_Analyze_RequestBody; index?: Common.IndexName; } @@ -37,7 +37,7 @@ export type Indices_Analyze_RequestBody = { tokenizer?: Common_Analysis.Tokenizer; } -export type Indices_Analyze_Response = ApiResponse & { +export interface Indices_Analyze_Response extends ApiResponse { body: Indices_Analyze_ResponseBody; } diff --git a/api/indices/clearCache.d.ts b/api/indices/clearCache.d.ts index d33d4f123..b0372f93e 100644 --- a/api/indices/clearCache.d.ts +++ b/api/indices/clearCache.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_ClearCache_Request = Global.Params & { +export interface Indices_ClearCache_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; fielddata?: boolean; @@ -30,7 +30,7 @@ export type Indices_ClearCache_Request = Global.Params & { request?: boolean; } -export type Indices_ClearCache_Response = ApiResponse & { +export interface Indices_ClearCache_Response extends ApiResponse { body: Indices_ClearCache_ResponseBody; } diff --git a/api/indices/clone.d.ts b/api/indices/clone.d.ts index dc7dee78a..e36121de8 100644 --- a/api/indices/clone.d.ts +++ b/api/indices/clone.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Clone_Request = Global.Params & { +export interface Indices_Clone_Request extends Global.Params { body?: Indices_Clone_RequestBody; cluster_manager_timeout?: Common.Duration; index: Common.IndexName; @@ -36,7 +36,7 @@ export type Indices_Clone_RequestBody = { settings?: Record>; } -export type Indices_Clone_Response = ApiResponse & { +export interface Indices_Clone_Response extends ApiResponse { body: Indices_Clone_ResponseBody; } diff --git a/api/indices/close.d.ts b/api/indices/close.d.ts index 5c15d8965..816ef3621 100644 --- a/api/indices/close.d.ts +++ b/api/indices/close.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Close from '../_types/indices.close' -export type Indices_Close_Request = Global.Params & { +export interface Indices_Close_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -30,7 +30,7 @@ export type Indices_Close_Request = Global.Params & { wait_for_active_shards?: Common.WaitForActiveShards; } -export type Indices_Close_Response = ApiResponse & { +export interface Indices_Close_Response extends ApiResponse { body: Indices_Close_ResponseBody; } diff --git a/api/indices/create.d.ts b/api/indices/create.d.ts index e77fe633a..3c2d507c9 100644 --- a/api/indices/create.d.ts +++ b/api/indices/create.d.ts @@ -20,7 +20,7 @@ import * as Common_Mapping from '../_types/_common.mapping' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Create_Request = Global.Params & { +export interface Indices_Create_Request extends Global.Params { body?: Indices_Create_RequestBody; cluster_manager_timeout?: Common.Duration; index: Common.IndexName; @@ -35,7 +35,7 @@ export type Indices_Create_RequestBody = { settings?: Indices_Common.IndexSettings; } -export type Indices_Create_Response = ApiResponse & { +export interface Indices_Create_Response extends ApiResponse { body: Indices_Create_ResponseBody; } diff --git a/api/indices/createDataStream.d.ts b/api/indices/createDataStream.d.ts index 0fc1ba565..15b6894e3 100644 --- a/api/indices/createDataStream.d.ts +++ b/api/indices/createDataStream.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_CreateDataStream_Request = Global.Params & { +export interface Indices_CreateDataStream_Request extends Global.Params { body?: Indices_CreateDataStream_RequestBody; name: Common.DataStreamName; } export type Indices_CreateDataStream_RequestBody = Record -export type Indices_CreateDataStream_Response = ApiResponse & { +export interface Indices_CreateDataStream_Response extends ApiResponse { body: Indices_CreateDataStream_ResponseBody; } diff --git a/api/indices/dataStreamsStats.d.ts b/api/indices/dataStreamsStats.d.ts index 3fdd4d1ad..7c0348774 100644 --- a/api/indices/dataStreamsStats.d.ts +++ b/api/indices/dataStreamsStats.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_DataStreamsStats_Request = Global.Params & { +export interface Indices_DataStreamsStats_Request extends Global.Params { name?: Common.Indices; } -export type Indices_DataStreamsStats_Response = ApiResponse & { +export interface Indices_DataStreamsStats_Response extends ApiResponse { body: Indices_DataStreamsStats_ResponseBody; } diff --git a/api/indices/delete.d.ts b/api/indices/delete.d.ts index 31e24fcd3..61d7c9e64 100644 --- a/api/indices/delete.d.ts +++ b/api/indices/delete.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Delete_Request = Global.Params & { +export interface Indices_Delete_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -28,7 +28,7 @@ export type Indices_Delete_Request = Global.Params & { timeout?: Common.Duration; } -export type Indices_Delete_Response = ApiResponse & { +export interface Indices_Delete_Response extends ApiResponse { body: Indices_Delete_ResponseBody; } diff --git a/api/indices/deleteAlias.d.ts b/api/indices/deleteAlias.d.ts index 6d1ca1246..bb6f57493 100644 --- a/api/indices/deleteAlias.d.ts +++ b/api/indices/deleteAlias.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_DeleteAlias_Request = Global.Params & { +export interface Indices_DeleteAlias_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; index: Common.Indices; master_timeout?: Common.Duration; @@ -26,7 +26,7 @@ export type Indices_DeleteAlias_Request = Global.Params & { timeout?: Common.Duration; } -export type Indices_DeleteAlias_Response = ApiResponse & { +export interface Indices_DeleteAlias_Response extends ApiResponse { body: Indices_DeleteAlias_ResponseBody; } diff --git a/api/indices/deleteDataStream.d.ts b/api/indices/deleteDataStream.d.ts index 01de07222..1197ee7dd 100644 --- a/api/indices/deleteDataStream.d.ts +++ b/api/indices/deleteDataStream.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_DeleteDataStream_Request = Global.Params & { +export interface Indices_DeleteDataStream_Request extends Global.Params { name: Common.DataStreamNames; } -export type Indices_DeleteDataStream_Response = ApiResponse & { +export interface Indices_DeleteDataStream_Response extends ApiResponse { body: Indices_DeleteDataStream_ResponseBody; } diff --git a/api/indices/deleteIndexTemplate.d.ts b/api/indices/deleteIndexTemplate.d.ts index 4735441a8..fcf4ad7a8 100644 --- a/api/indices/deleteIndexTemplate.d.ts +++ b/api/indices/deleteIndexTemplate.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_DeleteIndexTemplate_Request = Global.Params & { +export interface Indices_DeleteIndexTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; name: Common.Name; timeout?: Common.Duration; } -export type Indices_DeleteIndexTemplate_Response = ApiResponse & { +export interface Indices_DeleteIndexTemplate_Response extends ApiResponse { body: Indices_DeleteIndexTemplate_ResponseBody; } diff --git a/api/indices/deleteTemplate.d.ts b/api/indices/deleteTemplate.d.ts index b1f1f5e6f..c707268ad 100644 --- a/api/indices/deleteTemplate.d.ts +++ b/api/indices/deleteTemplate.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_DeleteTemplate_Request = Global.Params & { +export interface Indices_DeleteTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; name: Common.Name; timeout?: Common.Duration; } -export type Indices_DeleteTemplate_Response = ApiResponse & { +export interface Indices_DeleteTemplate_Response extends ApiResponse { body: Indices_DeleteTemplate_ResponseBody; } diff --git a/api/indices/exists.d.ts b/api/indices/exists.d.ts index 01f0f1f73..787489e4c 100644 --- a/api/indices/exists.d.ts +++ b/api/indices/exists.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Exists_Request = Global.Params & { +export interface Indices_Exists_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -29,7 +29,7 @@ export type Indices_Exists_Request = Global.Params & { local?: boolean; } -export type Indices_Exists_Response = ApiResponse & { +export interface Indices_Exists_Response extends ApiResponse { body: Indices_Exists_ResponseBody; } diff --git a/api/indices/existsAlias.d.ts b/api/indices/existsAlias.d.ts index c19edabee..d283bb68e 100644 --- a/api/indices/existsAlias.d.ts +++ b/api/indices/existsAlias.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_ExistsAlias_Request = Global.Params & { +export interface Indices_ExistsAlias_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; @@ -27,7 +27,7 @@ export type Indices_ExistsAlias_Request = Global.Params & { name: Common.Names; } -export type Indices_ExistsAlias_Response = ApiResponse & { +export interface Indices_ExistsAlias_Response extends ApiResponse { body: Indices_ExistsAlias_ResponseBody; } diff --git a/api/indices/existsIndexTemplate.d.ts b/api/indices/existsIndexTemplate.d.ts index fed50e90e..721ce2128 100644 --- a/api/indices/existsIndexTemplate.d.ts +++ b/api/indices/existsIndexTemplate.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_ExistsIndexTemplate_Request = Global.Params & { +export interface Indices_ExistsIndexTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; local?: boolean; @@ -26,7 +26,7 @@ export type Indices_ExistsIndexTemplate_Request = Global.Params & { name: Common.Name; } -export type Indices_ExistsIndexTemplate_Response = ApiResponse & { +export interface Indices_ExistsIndexTemplate_Response extends ApiResponse { body: Indices_ExistsIndexTemplate_ResponseBody; } diff --git a/api/indices/existsTemplate.d.ts b/api/indices/existsTemplate.d.ts index 056e9f79a..71a8c92b3 100644 --- a/api/indices/existsTemplate.d.ts +++ b/api/indices/existsTemplate.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_ExistsTemplate_Request = Global.Params & { +export interface Indices_ExistsTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; local?: boolean; @@ -26,7 +26,7 @@ export type Indices_ExistsTemplate_Request = Global.Params & { name: Common.Names; } -export type Indices_ExistsTemplate_Response = ApiResponse & { +export interface Indices_ExistsTemplate_Response extends ApiResponse { body: Indices_ExistsTemplate_ResponseBody; } diff --git a/api/indices/flush.d.ts b/api/indices/flush.d.ts index 71c08ae87..a8efcfb4c 100644 --- a/api/indices/flush.d.ts +++ b/api/indices/flush.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Flush_Request = Global.Params & { +export interface Indices_Flush_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; force?: boolean; @@ -27,7 +27,7 @@ export type Indices_Flush_Request = Global.Params & { wait_if_ongoing?: boolean; } -export type Indices_Flush_Response = ApiResponse & { +export interface Indices_Flush_Response extends ApiResponse { body: Indices_Flush_ResponseBody; } diff --git a/api/indices/forcemerge.d.ts b/api/indices/forcemerge.d.ts index 7abd9960a..f553cd566 100644 --- a/api/indices/forcemerge.d.ts +++ b/api/indices/forcemerge.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Forcemerge_Request = Global.Params & { +export interface Indices_Forcemerge_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; flush?: boolean; @@ -30,11 +30,11 @@ export type Indices_Forcemerge_Request = Global.Params & { wait_for_completion?: boolean; } -export type Indices_Forcemerge_Response = ApiResponse & { +export interface Indices_Forcemerge_Response extends ApiResponse { body: Indices_Forcemerge_ResponseBody; } -export type Indices_Forcemerge_ResponseBody = Common.ShardsOperationResponseBase & { +export interface Indices_Forcemerge_ResponseBody extends Common.ShardsOperationResponseBase { task?: string; } diff --git a/api/indices/get.d.ts b/api/indices/get.d.ts index 3b112856e..7efc94d2b 100644 --- a/api/indices/get.d.ts +++ b/api/indices/get.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Get_Request = Global.Params & { +export interface Indices_Get_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -31,7 +31,7 @@ export type Indices_Get_Request = Global.Params & { master_timeout?: Common.Duration; } -export type Indices_Get_Response = ApiResponse & { +export interface Indices_Get_Response extends ApiResponse { body: Indices_Get_ResponseBody; } diff --git a/api/indices/getAlias.d.ts b/api/indices/getAlias.d.ts index 2a6d138e7..9adc08474 100644 --- a/api/indices/getAlias.d.ts +++ b/api/indices/getAlias.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_GetAlias from '../_types/indices.get_alias' -export type Indices_GetAlias_Request = Global.Params & { +export interface Indices_GetAlias_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; @@ -28,7 +28,7 @@ export type Indices_GetAlias_Request = Global.Params & { name?: Common.Names; } -export type Indices_GetAlias_Response = ApiResponse & { +export interface Indices_GetAlias_Response extends ApiResponse { body: Indices_GetAlias_ResponseBody; } diff --git a/api/indices/getDataStream.d.ts b/api/indices/getDataStream.d.ts index 18e923c38..48708f163 100644 --- a/api/indices/getDataStream.d.ts +++ b/api/indices/getDataStream.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_GetDataStream_Request = Global.Params & { +export interface Indices_GetDataStream_Request extends Global.Params { name?: Common.DataStreamNames; } -export type Indices_GetDataStream_Response = ApiResponse & { +export interface Indices_GetDataStream_Response extends ApiResponse { body: Indices_GetDataStream_ResponseBody; } diff --git a/api/indices/getFieldMapping.d.ts b/api/indices/getFieldMapping.d.ts index e4a16e4c7..55cc186ea 100644 --- a/api/indices/getFieldMapping.d.ts +++ b/api/indices/getFieldMapping.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_GetFieldMapping from '../_types/indices.get_field_mapping' -export type Indices_GetFieldMapping_Request = Global.Params & { +export interface Indices_GetFieldMapping_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; fields: Common.Fields; @@ -29,7 +29,7 @@ export type Indices_GetFieldMapping_Request = Global.Params & { local?: boolean; } -export type Indices_GetFieldMapping_Response = ApiResponse & { +export interface Indices_GetFieldMapping_Response extends ApiResponse { body: Indices_GetFieldMapping_ResponseBody; } diff --git a/api/indices/getIndexTemplate.d.ts b/api/indices/getIndexTemplate.d.ts index b03e32cf3..9de23417a 100644 --- a/api/indices/getIndexTemplate.d.ts +++ b/api/indices/getIndexTemplate.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_GetIndexTemplate from '../_types/indices.get_index_template' -export type Indices_GetIndexTemplate_Request = Global.Params & { +export interface Indices_GetIndexTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; local?: boolean; @@ -27,7 +27,7 @@ export type Indices_GetIndexTemplate_Request = Global.Params & { name?: Common.Name; } -export type Indices_GetIndexTemplate_Response = ApiResponse & { +export interface Indices_GetIndexTemplate_Response extends ApiResponse { body: Indices_GetIndexTemplate_ResponseBody; } diff --git a/api/indices/getMapping.d.ts b/api/indices/getMapping.d.ts index fec4332e3..aafbec4a7 100644 --- a/api/indices/getMapping.d.ts +++ b/api/indices/getMapping.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_GetMapping from '../_types/indices.get_mapping' -export type Indices_GetMapping_Request = Global.Params & { +export interface Indices_GetMapping_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -29,7 +29,7 @@ export type Indices_GetMapping_Request = Global.Params & { master_timeout?: Common.Duration; } -export type Indices_GetMapping_Response = ApiResponse & { +export interface Indices_GetMapping_Response extends ApiResponse { body: Indices_GetMapping_ResponseBody; } diff --git a/api/indices/getSettings.d.ts b/api/indices/getSettings.d.ts index 97302d212..13c1af4ff 100644 --- a/api/indices/getSettings.d.ts +++ b/api/indices/getSettings.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_GetSettings_Request = Global.Params & { +export interface Indices_GetSettings_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -32,7 +32,7 @@ export type Indices_GetSettings_Request = Global.Params & { name?: Common.Names; } -export type Indices_GetSettings_Response = ApiResponse & { +export interface Indices_GetSettings_Response extends ApiResponse { body: Indices_GetSettings_ResponseBody; } diff --git a/api/indices/getTemplate.d.ts b/api/indices/getTemplate.d.ts index c494ceb34..4ff8d1fc1 100644 --- a/api/indices/getTemplate.d.ts +++ b/api/indices/getTemplate.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_GetTemplate_Request = Global.Params & { +export interface Indices_GetTemplate_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; flat_settings?: boolean; local?: boolean; @@ -27,7 +27,7 @@ export type Indices_GetTemplate_Request = Global.Params & { name?: Common.Names; } -export type Indices_GetTemplate_Response = ApiResponse & { +export interface Indices_GetTemplate_Response extends ApiResponse { body: Indices_GetTemplate_ResponseBody; } diff --git a/api/indices/getUpgrade.d.ts b/api/indices/getUpgrade.d.ts index d97be6142..186ecf900 100644 --- a/api/indices/getUpgrade.d.ts +++ b/api/indices/getUpgrade.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_GetUpgrade_Request = Global.Params & { +export interface Indices_GetUpgrade_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; index?: string[]; } -export type Indices_GetUpgrade_Response = ApiResponse & { +export interface Indices_GetUpgrade_Response extends ApiResponse { body: Indices_GetUpgrade_ResponseBody; } diff --git a/api/indices/open.d.ts b/api/indices/open.d.ts index 8f4ff3744..d3cd824d3 100644 --- a/api/indices/open.d.ts +++ b/api/indices/open.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Open_Request = Global.Params & { +export interface Indices_Open_Request extends Global.Params { allow_no_indices?: boolean; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -31,7 +31,7 @@ export type Indices_Open_Request = Global.Params & { wait_for_completion?: boolean; } -export type Indices_Open_Response = ApiResponse & { +export interface Indices_Open_Response extends ApiResponse { body: Indices_Open_ResponseBody; } diff --git a/api/indices/putAlias.d.ts b/api/indices/putAlias.d.ts index 5e25ebf1e..f4b070077 100644 --- a/api/indices/putAlias.d.ts +++ b/api/indices/putAlias.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Global from '../_types/_global' -export type Indices_PutAlias_Request = Global.Params & { +export interface Indices_PutAlias_Request extends Global.Params { body?: Indices_PutAlias_RequestBody; cluster_manager_timeout?: Common.Duration; index?: Common.Indices; @@ -39,7 +39,7 @@ export type Indices_PutAlias_RequestBody = { search_routing?: Common.Routing; } -export type Indices_PutAlias_Response = ApiResponse & { +export interface Indices_PutAlias_Response extends ApiResponse { body: Indices_PutAlias_ResponseBody; } diff --git a/api/indices/putIndexTemplate.d.ts b/api/indices/putIndexTemplate.d.ts index c40d3826e..16b17a79d 100644 --- a/api/indices/putIndexTemplate.d.ts +++ b/api/indices/putIndexTemplate.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' import * as Indices_PutIndexTemplate from '../_types/indices.put_index_template' -export type Indices_PutIndexTemplate_Request = Global.Params & { +export interface Indices_PutIndexTemplate_Request extends Global.Params { body: Indices_PutIndexTemplate_RequestBody; cause?: string; cluster_manager_timeout?: Common.Duration; @@ -39,7 +39,7 @@ export type Indices_PutIndexTemplate_RequestBody = { version?: Common.VersionNumber; } -export type Indices_PutIndexTemplate_Response = ApiResponse & { +export interface Indices_PutIndexTemplate_Response extends ApiResponse { body: Indices_PutIndexTemplate_ResponseBody; } diff --git a/api/indices/putMapping.d.ts b/api/indices/putMapping.d.ts index aa31b5eba..0290b3cb9 100644 --- a/api/indices/putMapping.d.ts +++ b/api/indices/putMapping.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Common_Mapping from '../_types/_common.mapping' import * as Global from '../_types/_global' -export type Indices_PutMapping_Request = Global.Params & { +export interface Indices_PutMapping_Request extends Global.Params { allow_no_indices?: boolean; body: Indices_PutMapping_RequestBody; cluster_manager_timeout?: Common.Duration; @@ -44,7 +44,7 @@ export type Indices_PutMapping_RequestBody = { properties?: Record; } -export type Indices_PutMapping_Response = ApiResponse & { +export interface Indices_PutMapping_Response extends ApiResponse { body: Indices_PutMapping_ResponseBody; } diff --git a/api/indices/putSettings.d.ts b/api/indices/putSettings.d.ts index f697bfabc..8a3986bfd 100644 --- a/api/indices/putSettings.d.ts +++ b/api/indices/putSettings.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_PutSettings_Request = Global.Params & { +export interface Indices_PutSettings_Request extends Global.Params { allow_no_indices?: boolean; body: Indices_Common.IndexSettings; cluster_manager_timeout?: Common.Duration; @@ -32,7 +32,7 @@ export type Indices_PutSettings_Request = Global.Params & { timeout?: Common.Duration; } -export type Indices_PutSettings_Response = ApiResponse & { +export interface Indices_PutSettings_Response extends ApiResponse { body: Indices_PutSettings_ResponseBody; } diff --git a/api/indices/putTemplate.d.ts b/api/indices/putTemplate.d.ts index 16a1cf735..2cf740b79 100644 --- a/api/indices/putTemplate.d.ts +++ b/api/indices/putTemplate.d.ts @@ -20,7 +20,7 @@ import * as Common_Mapping from '../_types/_common.mapping' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_PutTemplate_Request = Global.Params & { +export interface Indices_PutTemplate_Request extends Global.Params { body: Indices_PutTemplate_RequestBody; cluster_manager_timeout?: Common.Duration; create?: boolean; @@ -38,7 +38,7 @@ export type Indices_PutTemplate_RequestBody = { version?: Common.VersionNumber; } -export type Indices_PutTemplate_Response = ApiResponse & { +export interface Indices_PutTemplate_Response extends ApiResponse { body: Indices_PutTemplate_ResponseBody; } diff --git a/api/indices/recovery.d.ts b/api/indices/recovery.d.ts index 814d8e320..4def83bf6 100644 --- a/api/indices/recovery.d.ts +++ b/api/indices/recovery.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Recovery from '../_types/indices.recovery' -export type Indices_Recovery_Request = Global.Params & { +export interface Indices_Recovery_Request extends Global.Params { active_only?: boolean; detailed?: boolean; index?: Common.Indices; } -export type Indices_Recovery_Response = ApiResponse & { +export interface Indices_Recovery_Response extends ApiResponse { body: Indices_Recovery_ResponseBody; } diff --git a/api/indices/refresh.d.ts b/api/indices/refresh.d.ts index d78e7f2d2..7f714f455 100644 --- a/api/indices/refresh.d.ts +++ b/api/indices/refresh.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Indices_Refresh_Request = Global.Params & { +export interface Indices_Refresh_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; index?: Common.Indices; } -export type Indices_Refresh_Response = ApiResponse & { +export interface Indices_Refresh_Response extends ApiResponse { body: Indices_Refresh_ResponseBody; } diff --git a/api/indices/resolveIndex.d.ts b/api/indices/resolveIndex.d.ts index ba0da34ca..3fbe17309 100644 --- a/api/indices/resolveIndex.d.ts +++ b/api/indices/resolveIndex.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_ResolveIndex from '../_types/indices.resolve_index' -export type Indices_ResolveIndex_Request = Global.Params & { +export interface Indices_ResolveIndex_Request extends Global.Params { expand_wildcards?: Common.ExpandWildcards; name: Common.Names; } -export type Indices_ResolveIndex_Response = ApiResponse & { +export interface Indices_ResolveIndex_Response extends ApiResponse { body: Indices_ResolveIndex_ResponseBody; } diff --git a/api/indices/rollover.d.ts b/api/indices/rollover.d.ts index 7b20b85e2..68df9e5e8 100644 --- a/api/indices/rollover.d.ts +++ b/api/indices/rollover.d.ts @@ -21,7 +21,7 @@ import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' import * as Indices_Rollover from '../_types/indices.rollover' -export type Indices_Rollover_Request = Global.Params & { +export interface Indices_Rollover_Request extends Global.Params { alias: Common.IndexAlias; body?: Indices_Rollover_RequestBody; cluster_manager_timeout?: Common.Duration; @@ -39,7 +39,7 @@ export type Indices_Rollover_RequestBody = { settings?: Record>; } -export type Indices_Rollover_Response = ApiResponse & { +export interface Indices_Rollover_Response extends ApiResponse { body: Indices_Rollover_ResponseBody; } diff --git a/api/indices/segments.d.ts b/api/indices/segments.d.ts index 37ccb682b..8019d905e 100644 --- a/api/indices/segments.d.ts +++ b/api/indices/segments.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Segments from '../_types/indices.segments' -export type Indices_Segments_Request = Global.Params & { +export interface Indices_Segments_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; @@ -27,7 +27,7 @@ export type Indices_Segments_Request = Global.Params & { verbose?: boolean; } -export type Indices_Segments_Response = ApiResponse & { +export interface Indices_Segments_Response extends ApiResponse { body: Indices_Segments_ResponseBody; } diff --git a/api/indices/shardStores.d.ts b/api/indices/shardStores.d.ts index ed90e192a..607853971 100644 --- a/api/indices/shardStores.d.ts +++ b/api/indices/shardStores.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_ShardStores from '../_types/indices.shard_stores' -export type Indices_ShardStores_Request = Global.Params & { +export interface Indices_ShardStores_Request extends Global.Params { allow_no_indices?: boolean; expand_wildcards?: Common.ExpandWildcards; ignore_unavailable?: boolean; @@ -27,7 +27,7 @@ export type Indices_ShardStores_Request = Global.Params & { status?: Indices_ShardStores.Status | Indices_ShardStores.Status[]; } -export type Indices_ShardStores_Response = ApiResponse & { +export interface Indices_ShardStores_Response extends ApiResponse { body: Indices_ShardStores_ResponseBody; } diff --git a/api/indices/shrink.d.ts b/api/indices/shrink.d.ts index b2619eaac..2639f25e8 100644 --- a/api/indices/shrink.d.ts +++ b/api/indices/shrink.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Shrink_Request = Global.Params & { +export interface Indices_Shrink_Request extends Global.Params { body?: Indices_Shrink_RequestBody; cluster_manager_timeout?: Common.Duration; copy_settings?: boolean; @@ -37,7 +37,7 @@ export type Indices_Shrink_RequestBody = { settings?: Record>; } -export type Indices_Shrink_Response = ApiResponse & { +export interface Indices_Shrink_Response extends ApiResponse { body: Indices_Shrink_ResponseBody; } diff --git a/api/indices/simulateIndexTemplate.d.ts b/api/indices/simulateIndexTemplate.d.ts index e9afb7d8d..bde8ebbd2 100644 --- a/api/indices/simulateIndexTemplate.d.ts +++ b/api/indices/simulateIndexTemplate.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' import * as Indices_PutIndexTemplate from '../_types/indices.put_index_template' -export type Indices_SimulateIndexTemplate_Request = Global.Params & { +export interface Indices_SimulateIndexTemplate_Request extends Global.Params { body?: Indices_SimulateIndexTemplate_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -38,7 +38,7 @@ export type Indices_SimulateIndexTemplate_RequestBody = { version?: Common.VersionNumber; } -export type Indices_SimulateIndexTemplate_Response = ApiResponse & { +export interface Indices_SimulateIndexTemplate_Response extends ApiResponse { body: Indices_SimulateIndexTemplate_ResponseBody; } diff --git a/api/indices/simulateTemplate.d.ts b/api/indices/simulateTemplate.d.ts index 416a162eb..15c0acc73 100644 --- a/api/indices/simulateTemplate.d.ts +++ b/api/indices/simulateTemplate.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' import * as Indices_SimulateTemplate from '../_types/indices.simulate_template' -export type Indices_SimulateTemplate_Request = Global.Params & { +export interface Indices_SimulateTemplate_Request extends Global.Params { body?: Indices_Common.IndexTemplate; cause?: string; cluster_manager_timeout?: Common.Duration; @@ -29,7 +29,7 @@ export type Indices_SimulateTemplate_Request = Global.Params & { name?: Common.Name; } -export type Indices_SimulateTemplate_Response = ApiResponse & { +export interface Indices_SimulateTemplate_Response extends ApiResponse { body: Indices_SimulateTemplate_ResponseBody; } diff --git a/api/indices/split.d.ts b/api/indices/split.d.ts index 6f7e7d574..5adf43d4a 100644 --- a/api/indices/split.d.ts +++ b/api/indices/split.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Split_Request = Global.Params & { +export interface Indices_Split_Request extends Global.Params { body?: Indices_Split_RequestBody; cluster_manager_timeout?: Common.Duration; copy_settings?: boolean; @@ -38,7 +38,7 @@ export type Indices_Split_RequestBody = { }; } -export type Indices_Split_Response = ApiResponse & { +export interface Indices_Split_Response extends ApiResponse { body: Indices_Split_ResponseBody; } diff --git a/api/indices/stats.d.ts b/api/indices/stats.d.ts index 5b73c93e1..0810b77e2 100644 --- a/api/indices/stats.d.ts +++ b/api/indices/stats.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Stats from '../_types/indices.stats' -export type Indices_Stats_Request = Global.Params & { +export interface Indices_Stats_Request extends Global.Params { completion_fields?: Common.Fields; expand_wildcards?: Common.ExpandWildcards; fielddata_fields?: Common.Fields; @@ -33,7 +33,7 @@ export type Indices_Stats_Request = Global.Params & { metric?: Indices_Stats.Metric | Indices_Stats.Metric[]; } -export type Indices_Stats_Response = ApiResponse & { +export interface Indices_Stats_Response extends ApiResponse { body: Indices_Stats_ResponseBody; } diff --git a/api/indices/updateAliases.d.ts b/api/indices/updateAliases.d.ts index ec9dec16b..dd3146d93 100644 --- a/api/indices/updateAliases.d.ts +++ b/api/indices/updateAliases.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_UpdateAliases from '../_types/indices.update_aliases' -export type Indices_UpdateAliases_Request = Global.Params & { +export interface Indices_UpdateAliases_Request extends Global.Params { body: Indices_UpdateAliases_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -30,7 +30,7 @@ export type Indices_UpdateAliases_RequestBody = { actions?: Indices_UpdateAliases.Action[]; } -export type Indices_UpdateAliases_Response = ApiResponse & { +export interface Indices_UpdateAliases_Response extends ApiResponse { body: Indices_UpdateAliases_ResponseBody; } diff --git a/api/indices/upgrade.d.ts b/api/indices/upgrade.d.ts index 761ee9eea..711032c61 100644 --- a/api/indices/upgrade.d.ts +++ b/api/indices/upgrade.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' -export type Indices_Upgrade_Request = Global.Params & { +export interface Indices_Upgrade_Request extends Global.Params { allow_no_indices?: boolean; body?: Indices_Common.UpgradeRequest; expand_wildcards?: Common.ExpandWildcards; @@ -29,7 +29,7 @@ export type Indices_Upgrade_Request = Global.Params & { wait_for_completion?: boolean; } -export type Indices_Upgrade_Response = ApiResponse & { +export interface Indices_Upgrade_Response extends ApiResponse { body: Indices_Upgrade_ResponseBody; } diff --git a/api/indices/validateQuery.d.ts b/api/indices/validateQuery.d.ts index 788fcf947..75b6689d3 100644 --- a/api/indices/validateQuery.d.ts +++ b/api/indices/validateQuery.d.ts @@ -20,7 +20,7 @@ import * as Common_QueryDsl from '../_types/_common.query_dsl' import * as Global from '../_types/_global' import * as Indices_ValidateQuery from '../_types/indices.validate_query' -export type Indices_ValidateQuery_Request = Global.Params & { +export interface Indices_ValidateQuery_Request extends Global.Params { all_shards?: boolean; allow_no_indices?: boolean; analyze_wildcard?: boolean; @@ -41,7 +41,7 @@ export type Indices_ValidateQuery_RequestBody = { query?: Common_QueryDsl.QueryContainer; } -export type Indices_ValidateQuery_Response = ApiResponse & { +export interface Indices_ValidateQuery_Response extends ApiResponse { body: Indices_ValidateQuery_ResponseBody; } diff --git a/api/ingest/deletePipeline.d.ts b/api/ingest/deletePipeline.d.ts index 9a4b8a5fc..2459dc956 100644 --- a/api/ingest/deletePipeline.d.ts +++ b/api/ingest/deletePipeline.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ingest_DeletePipeline_Request = Global.Params & { +export interface Ingest_DeletePipeline_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id: Common.Id; master_timeout?: Common.Duration; timeout?: Common.Duration; } -export type Ingest_DeletePipeline_Response = ApiResponse & { +export interface Ingest_DeletePipeline_Response extends ApiResponse { body: Ingest_DeletePipeline_ResponseBody; } diff --git a/api/ingest/getPipeline.d.ts b/api/ingest/getPipeline.d.ts index a8f2ca349..4f181544f 100644 --- a/api/ingest/getPipeline.d.ts +++ b/api/ingest/getPipeline.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ingest_Common from '../_types/ingest._common' -export type Ingest_GetPipeline_Request = Global.Params & { +export interface Ingest_GetPipeline_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id?: Common.Id; master_timeout?: Common.Duration; } -export type Ingest_GetPipeline_Response = ApiResponse & { +export interface Ingest_GetPipeline_Response extends ApiResponse { body: Ingest_GetPipeline_ResponseBody; } diff --git a/api/ingest/processorGrok.d.ts b/api/ingest/processorGrok.d.ts index 070208097..db392ccbe 100644 --- a/api/ingest/processorGrok.d.ts +++ b/api/ingest/processorGrok.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Ingest_ProcessorGrok_Request = Global.Params & { +export interface Ingest_ProcessorGrok_Request extends Global.Params { s?: boolean; } -export type Ingest_ProcessorGrok_Response = ApiResponse & { +export interface Ingest_ProcessorGrok_Response extends ApiResponse { body: Ingest_ProcessorGrok_ResponseBody; } diff --git a/api/ingest/putPipeline.d.ts b/api/ingest/putPipeline.d.ts index acab02197..d2cbf1e37 100644 --- a/api/ingest/putPipeline.d.ts +++ b/api/ingest/putPipeline.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ingest_Common from '../_types/ingest._common' -export type Ingest_PutPipeline_Request = Global.Params & { +export interface Ingest_PutPipeline_Request extends Global.Params { body: Ingest_PutPipeline_RequestBody; cluster_manager_timeout?: Common.Duration; id: Common.Id; @@ -35,7 +35,7 @@ export type Ingest_PutPipeline_RequestBody = { version?: Common.VersionNumber; } -export type Ingest_PutPipeline_Response = ApiResponse & { +export interface Ingest_PutPipeline_Response extends ApiResponse { body: Ingest_PutPipeline_ResponseBody; } diff --git a/api/ingest/simulate.d.ts b/api/ingest/simulate.d.ts index c456165b1..22f7107e7 100644 --- a/api/ingest/simulate.d.ts +++ b/api/ingest/simulate.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' import * as Ingest_Common from '../_types/ingest._common' import * as Ingest_Simulate from '../_types/ingest.simulate' -export type Ingest_Simulate_Request = Global.Params & { +export interface Ingest_Simulate_Request extends Global.Params { body: Ingest_Simulate_RequestBody; id?: Common.Id; verbose?: boolean; @@ -31,7 +31,7 @@ export type Ingest_Simulate_RequestBody = { pipeline?: Ingest_Common.Pipeline; } -export type Ingest_Simulate_Response = ApiResponse & { +export interface Ingest_Simulate_Response extends ApiResponse { body: Ingest_Simulate_ResponseBody; } diff --git a/api/insights/topQueries.d.ts b/api/insights/topQueries.d.ts index 2822c0e7c..e7d45594c 100644 --- a/api/insights/topQueries.d.ts +++ b/api/insights/topQueries.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Insights_Common from '../_types/insights._common' -export type Insights_TopQueries_Request = Global.Params & { +export interface Insights_TopQueries_Request extends Global.Params { type: 'cpu' | 'latency' | 'memory'; } -export type Insights_TopQueries_Response = ApiResponse & { +export interface Insights_TopQueries_Response extends ApiResponse { body: Insights_TopQueries_ResponseBody; } diff --git a/api/ism/addPolicy.d.ts b/api/ism/addPolicy.d.ts index 907da7733..54de112c4 100644 --- a/api/ism/addPolicy.d.ts +++ b/api/ism/addPolicy.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_AddPolicy_Request = Global.Params & { +export interface Ism_AddPolicy_Request extends Global.Params { body?: Ism_Common.AddPolicyRequest; index?: Common.IndexName; } -export type Ism_AddPolicy_Response = ApiResponse & { +export interface Ism_AddPolicy_Response extends ApiResponse { body: Ism_AddPolicy_ResponseBody; } diff --git a/api/ism/changePolicy.d.ts b/api/ism/changePolicy.d.ts index c9aa32b18..ecaf87ea0 100644 --- a/api/ism/changePolicy.d.ts +++ b/api/ism/changePolicy.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_ChangePolicy_Request = Global.Params & { +export interface Ism_ChangePolicy_Request extends Global.Params { body?: Ism_Common.ChangePolicyRequest; index?: Common.IndexName; } -export type Ism_ChangePolicy_Response = ApiResponse & { +export interface Ism_ChangePolicy_Response extends ApiResponse { body: Ism_ChangePolicy_ResponseBody; } diff --git a/api/ism/deletePolicy.d.ts b/api/ism/deletePolicy.d.ts index a45ef7aa6..85658ceca 100644 --- a/api/ism/deletePolicy.d.ts +++ b/api/ism/deletePolicy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_DeletePolicy_Request = Global.Params & { +export interface Ism_DeletePolicy_Request extends Global.Params { policy_id: string; } -export type Ism_DeletePolicy_Response = ApiResponse & { +export interface Ism_DeletePolicy_Response extends ApiResponse { body: Ism_DeletePolicy_ResponseBody; } diff --git a/api/ism/existsPolicy.d.ts b/api/ism/existsPolicy.d.ts index ddd3974bc..cf91ff54f 100644 --- a/api/ism/existsPolicy.d.ts +++ b/api/ism/existsPolicy.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Ism_ExistsPolicy_Request = Global.Params & { +export interface Ism_ExistsPolicy_Request extends Global.Params { policy_id: string; } -export type Ism_ExistsPolicy_Response = ApiResponse & { +export interface Ism_ExistsPolicy_Response extends ApiResponse { body: Ism_ExistsPolicy_ResponseBody; } diff --git a/api/ism/explainPolicy.d.ts b/api/ism/explainPolicy.d.ts index 035695863..759965e03 100644 --- a/api/ism/explainPolicy.d.ts +++ b/api/ism/explainPolicy.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_ExplainPolicy_Request = Global.Params & { +export interface Ism_ExplainPolicy_Request extends Global.Params { body?: Ism_ExplainPolicy_RequestBody; index?: Common.IndexName; } export type Ism_ExplainPolicy_RequestBody = any -export type Ism_ExplainPolicy_Response = ApiResponse & { +export interface Ism_ExplainPolicy_Response extends ApiResponse { body: Ism_ExplainPolicy_ResponseBody; } diff --git a/api/ism/getPolicies.d.ts b/api/ism/getPolicies.d.ts index dcc53dc7f..82629f120 100644 --- a/api/ism/getPolicies.d.ts +++ b/api/ism/getPolicies.d.ts @@ -20,7 +20,7 @@ import * as Ism_Common from '../_types/ism._common' export type Ism_GetPolicies_Request = Global.Params & Record -export type Ism_GetPolicies_Response = ApiResponse & { +export interface Ism_GetPolicies_Response extends ApiResponse { body: Ism_GetPolicies_ResponseBody; } diff --git a/api/ism/getPolicy.d.ts b/api/ism/getPolicy.d.ts index 5e36f33a5..d5efb4141 100644 --- a/api/ism/getPolicy.d.ts +++ b/api/ism/getPolicy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_GetPolicy_Request = Global.Params & { +export interface Ism_GetPolicy_Request extends Global.Params { policy_id: string; } -export type Ism_GetPolicy_Response = ApiResponse & { +export interface Ism_GetPolicy_Response extends ApiResponse { body: Ism_GetPolicy_ResponseBody; } diff --git a/api/ism/putPolicies.d.ts b/api/ism/putPolicies.d.ts index 2ab54977b..94768ee8f 100644 --- a/api/ism/putPolicies.d.ts +++ b/api/ism/putPolicies.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_PutPolicies_Request = Global.Params & { +export interface Ism_PutPolicies_Request extends Global.Params { body?: Ism_Common.PutPolicyRequest; if_primary_term?: number; if_seq_no?: Common.SequenceNumber; policyID: string; } -export type Ism_PutPolicies_Response = ApiResponse & { +export interface Ism_PutPolicies_Response extends ApiResponse { body: Ism_PutPolicies_ResponseBody; } diff --git a/api/ism/putPolicy.d.ts b/api/ism/putPolicy.d.ts index 8e38ecd4f..4c0c52f0e 100644 --- a/api/ism/putPolicy.d.ts +++ b/api/ism/putPolicy.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_PutPolicy_Request = Global.Params & { +export interface Ism_PutPolicy_Request extends Global.Params { body?: Ism_Common.PutPolicyRequest; if_primary_term?: number; if_seq_no?: Common.SequenceNumber; policy_id: string; } -export type Ism_PutPolicy_Response = ApiResponse & { +export interface Ism_PutPolicy_Response extends ApiResponse { body: Ism_PutPolicy_ResponseBody; } diff --git a/api/ism/refreshSearchAnalyzers.d.ts b/api/ism/refreshSearchAnalyzers.d.ts index b8fa679c3..eb1810fc5 100644 --- a/api/ism/refreshSearchAnalyzers.d.ts +++ b/api/ism/refreshSearchAnalyzers.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_RefreshSearchAnalyzers_Request = Global.Params & { +export interface Ism_RefreshSearchAnalyzers_Request extends Global.Params { index: Common.IndexName; } -export type Ism_RefreshSearchAnalyzers_Response = ApiResponse & { +export interface Ism_RefreshSearchAnalyzers_Response extends ApiResponse { body: Ism_RefreshSearchAnalyzers_ResponseBody; } diff --git a/api/ism/removePolicy.d.ts b/api/ism/removePolicy.d.ts index 6b81ce5b0..dae225849 100644 --- a/api/ism/removePolicy.d.ts +++ b/api/ism/removePolicy.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_RemovePolicy_Request = Global.Params & { +export interface Ism_RemovePolicy_Request extends Global.Params { index?: Common.IndexName; } -export type Ism_RemovePolicy_Response = ApiResponse & { +export interface Ism_RemovePolicy_Response extends ApiResponse { body: Ism_RemovePolicy_ResponseBody; } diff --git a/api/ism/retryIndex.d.ts b/api/ism/retryIndex.d.ts index 08fdbfa3f..e95d558b6 100644 --- a/api/ism/retryIndex.d.ts +++ b/api/ism/retryIndex.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Ism_Common from '../_types/ism._common' -export type Ism_RetryIndex_Request = Global.Params & { +export interface Ism_RetryIndex_Request extends Global.Params { body?: Ism_Common.RetryIndexRequest; index?: Common.IndexName; } -export type Ism_RetryIndex_Response = ApiResponse & { +export interface Ism_RetryIndex_Response extends ApiResponse { body: Ism_RetryIndex_ResponseBody; } diff --git a/api/knn/deleteModel.d.ts b/api/knn/deleteModel.d.ts index a478fb756..aeb864171 100644 --- a/api/knn/deleteModel.d.ts +++ b/api/knn/deleteModel.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Knn_Common from '../_types/knn._common' -export type Knn_DeleteModel_Request = Global.Params & { +export interface Knn_DeleteModel_Request extends Global.Params { model_id: string; } -export type Knn_DeleteModel_Response = ApiResponse & { +export interface Knn_DeleteModel_Response extends ApiResponse { body: Knn_DeleteModel_ResponseBody; } diff --git a/api/knn/getModel.d.ts b/api/knn/getModel.d.ts index 52f80c1ab..929e39866 100644 --- a/api/knn/getModel.d.ts +++ b/api/knn/getModel.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Knn_GetModel_Request = Global.Params & { +export interface Knn_GetModel_Request extends Global.Params { model_id: string; } -export type Knn_GetModel_Response = ApiResponse & { +export interface Knn_GetModel_Response extends ApiResponse { body: Knn_GetModel_ResponseBody; } diff --git a/api/knn/searchModels.d.ts b/api/knn/searchModels.d.ts index 61353bdfe..f389e6c89 100644 --- a/api/knn/searchModels.d.ts +++ b/api/knn/searchModels.d.ts @@ -20,7 +20,7 @@ import * as Core_Search from '../_types/_core.search' import * as Global from '../_types/_global' import * as Knn_Common from '../_types/knn._common' -export type Knn_SearchModels_Request = Global.Params & { +export interface Knn_SearchModels_Request extends Global.Params { _source?: string[]; _source_excludes?: string[]; _source_includes?: string[]; @@ -68,7 +68,7 @@ export type Knn_SearchModels_Request = Global.Params & { export type Knn_SearchModels_RequestBody = Record -export type Knn_SearchModels_Response = ApiResponse & { +export interface Knn_SearchModels_Response extends ApiResponse { body: Knn_SearchModels_ResponseBody; } diff --git a/api/knn/stats.d.ts b/api/knn/stats.d.ts index 058eae7f0..37b7a581b 100644 --- a/api/knn/stats.d.ts +++ b/api/knn/stats.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Knn_Common from '../_types/knn._common' -export type Knn_Stats_Request = Global.Params & { +export interface Knn_Stats_Request extends Global.Params { node_id?: string[]; stat?: 'cache_capacity_reached' | 'circuit_breaker_triggered' | 'eviction_count' | 'faiss_initialized' | 'graph_index_errors' | 'graph_index_requests' | 'graph_memory_usage' | 'graph_memory_usage_percentage' | 'graph_query_errors' | 'graph_query_requests' | 'graph_stats' | 'hit_count' | 'indexing_from_model_degraded' | 'indices_in_cache' | 'knn_query_requests' | 'knn_query_with_filter_requests' | 'load_exception_count' | 'load_success_count' | 'lucene_initialized' | 'max_distance_query_requests' | 'max_distance_query_with_filter_requests' | 'min_score_query_requests' | 'min_score_query_with_filter_requests' | 'miss_count' | 'model_index_status' | 'nmslib_initialized' | 'script_compilation_errors' | 'script_compilations' | 'script_query_errors' | 'script_query_requests' | 'total_load_time' | 'training_errors' | 'training_memory_usage' | 'training_memory_usage_percentage' | 'training_requests'[]; timeout?: Common.Duration; } -export type Knn_Stats_Response = ApiResponse & { +export interface Knn_Stats_Response extends ApiResponse { body: Knn_Stats_ResponseBody; } diff --git a/api/knn/trainModel.d.ts b/api/knn/trainModel.d.ts index 894c507b2..642ca373f 100644 --- a/api/knn/trainModel.d.ts +++ b/api/knn/trainModel.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Knn_Common from '../_types/knn._common' -export type Knn_TrainModel_Request = Global.Params & { +export interface Knn_TrainModel_Request extends Global.Params { body?: Knn_Common.TrainedModel; model_id?: string; preference?: string; } -export type Knn_TrainModel_Response = ApiResponse & { +export interface Knn_TrainModel_Response extends ApiResponse { body: Knn_TrainModel_ResponseBody; } diff --git a/api/knn/warmup.d.ts b/api/knn/warmup.d.ts index c91a6b055..a50db4ce6 100644 --- a/api/knn/warmup.d.ts +++ b/api/knn/warmup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Knn_Warmup_Request = Global.Params & { +export interface Knn_Warmup_Request extends Global.Params { index: string[]; } -export type Knn_Warmup_Response = ApiResponse & { +export interface Knn_Warmup_Response extends ApiResponse { body: Knn_Warmup_ResponseBody; } diff --git a/api/list/help.d.ts b/api/list/help.d.ts index f9fdfde73..9eec263ee 100644 --- a/api/list/help.d.ts +++ b/api/list/help.d.ts @@ -19,7 +19,7 @@ import * as Global from '../_types/_global' export type List_Help_Request = Global.Params & Record -export type List_Help_Response = ApiResponse & { +export interface List_Help_Response extends ApiResponse { body: List_Help_ResponseBody; } diff --git a/api/list/indices.d.ts b/api/list/indices.d.ts index 870294194..ff526c54f 100644 --- a/api/list/indices.d.ts +++ b/api/list/indices.d.ts @@ -19,7 +19,7 @@ import * as Cat_Indices from '../_types/cat.indices' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type List_Indices_Request = Global.Params & { +export interface List_Indices_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; expand_wildcards?: Common.ExpandWildcards; @@ -40,7 +40,7 @@ export type List_Indices_Request = Global.Params & { v?: boolean; } -export type List_Indices_Response = ApiResponse & { +export interface List_Indices_Response extends ApiResponse { body: List_Indices_ResponseBody; } diff --git a/api/list/shards.d.ts b/api/list/shards.d.ts index 82fa17c1e..ac9ff2c0c 100644 --- a/api/list/shards.d.ts +++ b/api/list/shards.d.ts @@ -19,7 +19,7 @@ import * as Cat_Shards from '../_types/cat.shards' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type List_Shards_Request = Global.Params & { +export interface List_Shards_Request extends Global.Params { bytes?: Common.ByteUnit; cluster_manager_timeout?: Common.Duration; format?: string; @@ -36,7 +36,7 @@ export type List_Shards_Request = Global.Params & { v?: boolean; } -export type List_Shards_Response = ApiResponse & { +export interface List_Shards_Response extends ApiResponse { body: List_Shards_ResponseBody; } diff --git a/api/ml/createConnector.d.ts b/api/ml/createConnector.d.ts index 1f64964b4..ae113eb21 100644 --- a/api/ml/createConnector.d.ts +++ b/api/ml/createConnector.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_CreateConnector_Request = Global.Params & { +export interface Ml_CreateConnector_Request extends Global.Params { body?: Ml_CreateConnector_RequestBody; } @@ -33,7 +33,7 @@ export type Ml_CreateConnector_RequestBody = { version: number; } -export type Ml_CreateConnector_Response = ApiResponse & { +export interface Ml_CreateConnector_Response extends ApiResponse { body: Ml_CreateConnector_ResponseBody; } diff --git a/api/ml/deleteAgent.d.ts b/api/ml/deleteAgent.d.ts index b127d4106..d7a978084 100644 --- a/api/ml/deleteAgent.d.ts +++ b/api/ml/deleteAgent.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ml_DeleteAgent_Request = Global.Params & { +export interface Ml_DeleteAgent_Request extends Global.Params { agent_id: string; } -export type Ml_DeleteAgent_Response = ApiResponse & { +export interface Ml_DeleteAgent_Response extends ApiResponse { body: Ml_DeleteAgent_ResponseBody; } diff --git a/api/ml/deleteConnector.d.ts b/api/ml/deleteConnector.d.ts index 442a9e313..be960d485 100644 --- a/api/ml/deleteConnector.d.ts +++ b/api/ml/deleteConnector.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ml_DeleteConnector_Request = Global.Params & { +export interface Ml_DeleteConnector_Request extends Global.Params { connector_id: string; } -export type Ml_DeleteConnector_Response = ApiResponse & { +export interface Ml_DeleteConnector_Response extends ApiResponse { body: Ml_DeleteConnector_ResponseBody; } diff --git a/api/ml/deleteModel.d.ts b/api/ml/deleteModel.d.ts index 262baec68..e9ed88f23 100644 --- a/api/ml/deleteModel.d.ts +++ b/api/ml/deleteModel.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ml_DeleteModel_Request = Global.Params & { +export interface Ml_DeleteModel_Request extends Global.Params { model_id: string; } -export type Ml_DeleteModel_Response = ApiResponse & { +export interface Ml_DeleteModel_Response extends ApiResponse { body: Ml_DeleteModel_ResponseBody; } diff --git a/api/ml/deleteModelGroup.d.ts b/api/ml/deleteModelGroup.d.ts index 2e15c8f2e..68bcb10e3 100644 --- a/api/ml/deleteModelGroup.d.ts +++ b/api/ml/deleteModelGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ml_DeleteModelGroup_Request = Global.Params & { +export interface Ml_DeleteModelGroup_Request extends Global.Params { model_group_id: string; } -export type Ml_DeleteModelGroup_Response = ApiResponse & { +export interface Ml_DeleteModelGroup_Response extends ApiResponse { body: Ml_DeleteModelGroup_ResponseBody; } diff --git a/api/ml/deleteTask.d.ts b/api/ml/deleteTask.d.ts index 42b222b98..6d34f348d 100644 --- a/api/ml/deleteTask.d.ts +++ b/api/ml/deleteTask.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Ml_DeleteTask_Request = Global.Params & { +export interface Ml_DeleteTask_Request extends Global.Params { task_id: string; } -export type Ml_DeleteTask_Response = ApiResponse & { +export interface Ml_DeleteTask_Response extends ApiResponse { body: Ml_DeleteTask_ResponseBody; } diff --git a/api/ml/deployModel.d.ts b/api/ml/deployModel.d.ts index e5baf721c..21e5c35bc 100644 --- a/api/ml/deployModel.d.ts +++ b/api/ml/deployModel.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Ml_DeployModel_Request = Global.Params & { +export interface Ml_DeployModel_Request extends Global.Params { model_id: string; } -export type Ml_DeployModel_Response = ApiResponse & { +export interface Ml_DeployModel_Response extends ApiResponse { body: Ml_DeployModel_ResponseBody; } diff --git a/api/ml/getModelGroup.d.ts b/api/ml/getModelGroup.d.ts index 21c4f9004..00712ba02 100644 --- a/api/ml/getModelGroup.d.ts +++ b/api/ml/getModelGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_GetModelGroup_Request = Global.Params & { +export interface Ml_GetModelGroup_Request extends Global.Params { model_group_id: string; } -export type Ml_GetModelGroup_Response = ApiResponse & { +export interface Ml_GetModelGroup_Response extends ApiResponse { body: Ml_GetModelGroup_ResponseBody; } diff --git a/api/ml/getTask.d.ts b/api/ml/getTask.d.ts index 6798d3b02..f3e95eb07 100644 --- a/api/ml/getTask.d.ts +++ b/api/ml/getTask.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_GetTask_Request = Global.Params & { +export interface Ml_GetTask_Request extends Global.Params { task_id: string; } -export type Ml_GetTask_Response = ApiResponse & { +export interface Ml_GetTask_Response extends ApiResponse { body: Ml_GetTask_ResponseBody; } diff --git a/api/ml/registerAgents.d.ts b/api/ml/registerAgents.d.ts index 6bee74726..cce75613c 100644 --- a/api/ml/registerAgents.d.ts +++ b/api/ml/registerAgents.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_RegisterAgents_Request = Global.Params & { +export interface Ml_RegisterAgents_Request extends Global.Params { body?: Ml_RegisterAgents_RequestBody; } @@ -33,7 +33,7 @@ export type Ml_RegisterAgents_RequestBody = { type: string; } -export type Ml_RegisterAgents_Response = ApiResponse & { +export interface Ml_RegisterAgents_Response extends ApiResponse { body: Ml_RegisterAgents_ResponseBody; } diff --git a/api/ml/registerModel.d.ts b/api/ml/registerModel.d.ts index cad421486..63e52507a 100644 --- a/api/ml/registerModel.d.ts +++ b/api/ml/registerModel.d.ts @@ -17,7 +17,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Ml_RegisterModel_Request = Global.Params & { +export interface Ml_RegisterModel_Request extends Global.Params { body?: Ml_RegisterModel_RequestBody; } @@ -29,7 +29,7 @@ export type Ml_RegisterModel_RequestBody = { version: string; } -export type Ml_RegisterModel_Response = ApiResponse & { +export interface Ml_RegisterModel_Response extends ApiResponse { body: Ml_RegisterModel_ResponseBody; } diff --git a/api/ml/registerModelGroup.d.ts b/api/ml/registerModelGroup.d.ts index ea5ebeea0..cb4de3574 100644 --- a/api/ml/registerModelGroup.d.ts +++ b/api/ml/registerModelGroup.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_RegisterModelGroup_Request = Global.Params & { +export interface Ml_RegisterModelGroup_Request extends Global.Params { body?: Ml_RegisterModelGroup_RequestBody; } @@ -30,7 +30,7 @@ export type Ml_RegisterModelGroup_RequestBody = { name: string; } -export type Ml_RegisterModelGroup_Response = ApiResponse & { +export interface Ml_RegisterModelGroup_Response extends ApiResponse { body: Ml_RegisterModelGroup_ResponseBody; } diff --git a/api/ml/searchModels.d.ts b/api/ml/searchModels.d.ts index 8c0f6c3cf..16c2ce5aa 100644 --- a/api/ml/searchModels.d.ts +++ b/api/ml/searchModels.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_SearchModels_Request = Global.Params & { +export interface Ml_SearchModels_Request extends Global.Params { body?: Ml_SearchModels_RequestBody; } @@ -27,7 +27,7 @@ export type Ml_SearchModels_RequestBody = { size: number; } -export type Ml_SearchModels_Response = ApiResponse & { +export interface Ml_SearchModels_Response extends ApiResponse { body: Ml_SearchModels_ResponseBody; } diff --git a/api/ml/undeployModel.d.ts b/api/ml/undeployModel.d.ts index b454c323b..596508cd8 100644 --- a/api/ml/undeployModel.d.ts +++ b/api/ml/undeployModel.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Ml_Common from '../_types/ml._common' -export type Ml_UndeployModel_Request = Global.Params & { +export interface Ml_UndeployModel_Request extends Global.Params { model_id: string; } -export type Ml_UndeployModel_Response = ApiResponse & { +export interface Ml_UndeployModel_Response extends ApiResponse { body: Ml_UndeployModel_ResponseBody; } diff --git a/api/nodes/hotThreads.d.ts b/api/nodes/hotThreads.d.ts index e7aa0935c..c78d81b17 100644 --- a/api/nodes/hotThreads.d.ts +++ b/api/nodes/hotThreads.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Nodes_Common from '../_types/nodes._common' -export type Nodes_HotThreads_Request = Global.Params & { +export interface Nodes_HotThreads_Request extends Global.Params { ignore_idle_threads?: boolean; interval?: Common.Duration; node_id?: string[]; @@ -29,7 +29,7 @@ export type Nodes_HotThreads_Request = Global.Params & { type?: Nodes_Common.SampleType; } -export type Nodes_HotThreads_Response = ApiResponse & { +export interface Nodes_HotThreads_Response extends ApiResponse { body: Nodes_HotThreads_ResponseBody; } diff --git a/api/nodes/info.d.ts b/api/nodes/info.d.ts index 28f7e64e7..f867956ee 100644 --- a/api/nodes/info.d.ts +++ b/api/nodes/info.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Nodes_Info from '../_types/nodes.info' -export type Nodes_Info_Request = Global.Params & { +export interface Nodes_Info_Request extends Global.Params { flat_settings?: boolean; metric?: Nodes_Info.Metric[]; node_id?: Common.NodeIds; timeout?: Common.Duration; } -export type Nodes_Info_Response = ApiResponse & { +export interface Nodes_Info_Response extends ApiResponse { body: Nodes_Info_ResponseBody; } diff --git a/api/nodes/reloadSecureSettings.d.ts b/api/nodes/reloadSecureSettings.d.ts index b1f90f67e..d8d00c223 100644 --- a/api/nodes/reloadSecureSettings.d.ts +++ b/api/nodes/reloadSecureSettings.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Nodes_ReloadSecureSettings from '../_types/nodes.reload_secure_settings' -export type Nodes_ReloadSecureSettings_Request = Global.Params & { +export interface Nodes_ReloadSecureSettings_Request extends Global.Params { body?: Nodes_ReloadSecureSettings_RequestBody; node_id?: Common.NodeIds; timeout?: Common.Duration; @@ -29,7 +29,7 @@ export type Nodes_ReloadSecureSettings_RequestBody = { secure_settings_password?: Common.Password; } -export type Nodes_ReloadSecureSettings_Response = ApiResponse & { +export interface Nodes_ReloadSecureSettings_Response extends ApiResponse { body: Nodes_ReloadSecureSettings_ResponseBody; } diff --git a/api/nodes/stats.d.ts b/api/nodes/stats.d.ts index 474c45d24..c650a6db8 100644 --- a/api/nodes/stats.d.ts +++ b/api/nodes/stats.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Nodes_Stats from '../_types/nodes.stats' -export type Nodes_Stats_Request = Global.Params & { +export interface Nodes_Stats_Request extends Global.Params { completion_fields?: Common.Fields; fielddata_fields?: Common.Fields; fields?: Common.Fields; @@ -33,7 +33,7 @@ export type Nodes_Stats_Request = Global.Params & { types?: string[]; } -export type Nodes_Stats_Response = ApiResponse & { +export interface Nodes_Stats_Response extends ApiResponse { body: Nodes_Stats_ResponseBody; } diff --git a/api/nodes/usage.d.ts b/api/nodes/usage.d.ts index 0f406754d..1f27ab6da 100644 --- a/api/nodes/usage.d.ts +++ b/api/nodes/usage.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Nodes_Usage from '../_types/nodes.usage' -export type Nodes_Usage_Request = Global.Params & { +export interface Nodes_Usage_Request extends Global.Params { metric?: Nodes_Usage.Metric[]; node_id?: Common.NodeIds; timeout?: Common.Duration; } -export type Nodes_Usage_Response = ApiResponse & { +export interface Nodes_Usage_Response extends ApiResponse { body: Nodes_Usage_ResponseBody; } diff --git a/api/notifications/createConfig.d.ts b/api/notifications/createConfig.d.ts index a55dabcc2..fbf99a408 100644 --- a/api/notifications/createConfig.d.ts +++ b/api/notifications/createConfig.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_CreateConfig_Request = Global.Params & { +export interface Notifications_CreateConfig_Request extends Global.Params { body: Notifications_Common.NotificationsConfig; } -export type Notifications_CreateConfig_Response = ApiResponse & { +export interface Notifications_CreateConfig_Response extends ApiResponse { body: Notifications_CreateConfig_ResponseBody; } diff --git a/api/notifications/deleteConfig.d.ts b/api/notifications/deleteConfig.d.ts index cb17bcc95..13a4a2c0e 100644 --- a/api/notifications/deleteConfig.d.ts +++ b/api/notifications/deleteConfig.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_DeleteConfig_Request = Global.Params & { +export interface Notifications_DeleteConfig_Request extends Global.Params { config_id: string; } -export type Notifications_DeleteConfig_Response = ApiResponse & { +export interface Notifications_DeleteConfig_Response extends ApiResponse { body: Notifications_DeleteConfig_ResponseBody; } diff --git a/api/notifications/deleteConfigs.d.ts b/api/notifications/deleteConfigs.d.ts index 8a133bc41..c64aad408 100644 --- a/api/notifications/deleteConfigs.d.ts +++ b/api/notifications/deleteConfigs.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_DeleteConfigs_Request = Global.Params & { +export interface Notifications_DeleteConfigs_Request extends Global.Params { config_id: string; config_id_list?: string; } -export type Notifications_DeleteConfigs_Response = ApiResponse & { +export interface Notifications_DeleteConfigs_Response extends ApiResponse { body: Notifications_DeleteConfigs_ResponseBody; } diff --git a/api/notifications/getConfig.d.ts b/api/notifications/getConfig.d.ts index fbb316104..78322cecd 100644 --- a/api/notifications/getConfig.d.ts +++ b/api/notifications/getConfig.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_GetConfig_Request = Global.Params & { +export interface Notifications_GetConfig_Request extends Global.Params { config_id: string; } -export type Notifications_GetConfig_Response = ApiResponse & { +export interface Notifications_GetConfig_Response extends ApiResponse { body: Notifications_GetConfig_ResponseBody; } diff --git a/api/notifications/getConfigs.d.ts b/api/notifications/getConfigs.d.ts index 88bcb8de7..067cfeb97 100644 --- a/api/notifications/getConfigs.d.ts +++ b/api/notifications/getConfigs.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_GetConfigs_Request = Global.Params & { +export interface Notifications_GetConfigs_Request extends Global.Params { body?: Notifications_GetConfigs_RequestBody; 'chime.url'?: string; 'chime.url.keyword'?: string; @@ -70,7 +70,7 @@ export type Notifications_GetConfigs_RequestBody = { sort_order?: string; } -export type Notifications_GetConfigs_Response = ApiResponse & { +export interface Notifications_GetConfigs_Response extends ApiResponse { body: Notifications_GetConfigs_ResponseBody; } diff --git a/api/notifications/listChannels.d.ts b/api/notifications/listChannels.d.ts index dbf71018e..1dfd1a87e 100644 --- a/api/notifications/listChannels.d.ts +++ b/api/notifications/listChannels.d.ts @@ -20,7 +20,7 @@ import * as Notifications_Common from '../_types/notifications._common' export type Notifications_ListChannels_Request = Global.Params & Record -export type Notifications_ListChannels_Response = ApiResponse & { +export interface Notifications_ListChannels_Response extends ApiResponse { body: Notifications_ListChannels_ResponseBody; } diff --git a/api/notifications/listFeatures.d.ts b/api/notifications/listFeatures.d.ts index f81dd253f..c0494c8cb 100644 --- a/api/notifications/listFeatures.d.ts +++ b/api/notifications/listFeatures.d.ts @@ -20,7 +20,7 @@ import * as Notifications_Common from '../_types/notifications._common' export type Notifications_ListFeatures_Request = Global.Params & Record -export type Notifications_ListFeatures_Response = ApiResponse & { +export interface Notifications_ListFeatures_Response extends ApiResponse { body: Notifications_ListFeatures_ResponseBody; } diff --git a/api/notifications/sendTest.d.ts b/api/notifications/sendTest.d.ts index f281b06da..f0acbea95 100644 --- a/api/notifications/sendTest.d.ts +++ b/api/notifications/sendTest.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_SendTest_Request = Global.Params & { +export interface Notifications_SendTest_Request extends Global.Params { config_id: string; } -export type Notifications_SendTest_Response = ApiResponse & { +export interface Notifications_SendTest_Response extends ApiResponse { body: Notifications_SendTest_ResponseBody; } diff --git a/api/notifications/updateConfig.d.ts b/api/notifications/updateConfig.d.ts index 9f19abbbc..1f243f907 100644 --- a/api/notifications/updateConfig.d.ts +++ b/api/notifications/updateConfig.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Notifications_Common from '../_types/notifications._common' -export type Notifications_UpdateConfig_Request = Global.Params & { +export interface Notifications_UpdateConfig_Request extends Global.Params { body: Notifications_Common.NotificationsConfig; config_id: string; } -export type Notifications_UpdateConfig_Response = ApiResponse & { +export interface Notifications_UpdateConfig_Response extends ApiResponse { body: Notifications_UpdateConfig_ResponseBody; } diff --git a/api/observability/createObject.d.ts b/api/observability/createObject.d.ts index 63dfa74ab..fea373006 100644 --- a/api/observability/createObject.d.ts +++ b/api/observability/createObject.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Observability_Common from '../_types/observability._common' -export type Observability_CreateObject_Request = Global.Params & { +export interface Observability_CreateObject_Request extends Global.Params { body?: Observability_Common.ObservabilityObject; } -export type Observability_CreateObject_Response = ApiResponse & { +export interface Observability_CreateObject_Response extends ApiResponse { body: Observability_CreateObject_ResponseBody; } diff --git a/api/observability/deleteObject.d.ts b/api/observability/deleteObject.d.ts index b5c356b87..276bbf037 100644 --- a/api/observability/deleteObject.d.ts +++ b/api/observability/deleteObject.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Observability_DeleteObject_Request = Global.Params & { +export interface Observability_DeleteObject_Request extends Global.Params { object_id: string; } -export type Observability_DeleteObject_Response = ApiResponse & { +export interface Observability_DeleteObject_Response extends ApiResponse { body: Observability_DeleteObject_ResponseBody; } diff --git a/api/observability/deleteObjects.d.ts b/api/observability/deleteObjects.d.ts index db5631302..328bd114f 100644 --- a/api/observability/deleteObjects.d.ts +++ b/api/observability/deleteObjects.d.ts @@ -17,12 +17,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Observability_DeleteObjects_Request = Global.Params & { +export interface Observability_DeleteObjects_Request extends Global.Params { objectId?: string; objectIdList?: string; } -export type Observability_DeleteObjects_Response = ApiResponse & { +export interface Observability_DeleteObjects_Response extends ApiResponse { body: Observability_DeleteObjects_ResponseBody; } diff --git a/api/observability/getLocalstats.d.ts b/api/observability/getLocalstats.d.ts index aeadfe72a..f4ee3bc9b 100644 --- a/api/observability/getLocalstats.d.ts +++ b/api/observability/getLocalstats.d.ts @@ -19,7 +19,7 @@ import * as Global from '../_types/_global' export type Observability_GetLocalstats_Request = Global.Params & Record -export type Observability_GetLocalstats_Response = ApiResponse & { +export interface Observability_GetLocalstats_Response extends ApiResponse { body: Observability_GetLocalstats_ResponseBody; } diff --git a/api/observability/getObject.d.ts b/api/observability/getObject.d.ts index 886a61350..735e4f2f4 100644 --- a/api/observability/getObject.d.ts +++ b/api/observability/getObject.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Observability_Common from '../_types/observability._common' -export type Observability_GetObject_Request = Global.Params & { +export interface Observability_GetObject_Request extends Global.Params { object_id: string; } -export type Observability_GetObject_Response = ApiResponse & { +export interface Observability_GetObject_Response extends ApiResponse { body: Observability_GetObject_ResponseBody; } diff --git a/api/observability/listObjects.d.ts b/api/observability/listObjects.d.ts index fba76b043..f558377cd 100644 --- a/api/observability/listObjects.d.ts +++ b/api/observability/listObjects.d.ts @@ -20,7 +20,7 @@ import * as Observability_Common from '../_types/observability._common' export type Observability_ListObjects_Request = Global.Params & Record -export type Observability_ListObjects_Response = ApiResponse & { +export interface Observability_ListObjects_Response extends ApiResponse { body: Observability_ListObjects_ResponseBody; } diff --git a/api/observability/updateObject.d.ts b/api/observability/updateObject.d.ts index 618818a02..785a229da 100644 --- a/api/observability/updateObject.d.ts +++ b/api/observability/updateObject.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Observability_Common from '../_types/observability._common' -export type Observability_UpdateObject_Request = Global.Params & { +export interface Observability_UpdateObject_Request extends Global.Params { body?: Observability_Common.ObservabilityObject; object_id: string; } -export type Observability_UpdateObject_Response = ApiResponse & { +export interface Observability_UpdateObject_Response extends ApiResponse { body: Observability_UpdateObject_ResponseBody; } diff --git a/api/ppl/explain.d.ts b/api/ppl/explain.d.ts index 9d6f8d807..a2a154a15 100644 --- a/api/ppl/explain.d.ts +++ b/api/ppl/explain.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Ppl_Explain_Request = Global.Params & { +export interface Ppl_Explain_Request extends Global.Params { body: Sql_Common.Explain; format?: string; sanitize?: boolean; } -export type Ppl_Explain_Response = ApiResponse & { +export interface Ppl_Explain_Response extends ApiResponse { body: Ppl_Explain_ResponseBody; } diff --git a/api/ppl/getStats.d.ts b/api/ppl/getStats.d.ts index 73bb9de27..9350ec798 100644 --- a/api/ppl/getStats.d.ts +++ b/api/ppl/getStats.d.ts @@ -17,12 +17,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Ppl_GetStats_Request = Global.Params & { +export interface Ppl_GetStats_Request extends Global.Params { format?: string; sanitize?: boolean; } -export type Ppl_GetStats_Response = ApiResponse & { +export interface Ppl_GetStats_Response extends ApiResponse { body: Ppl_GetStats_ResponseBody; } diff --git a/api/ppl/postStats.d.ts b/api/ppl/postStats.d.ts index a6a0042d9..04abd91cf 100644 --- a/api/ppl/postStats.d.ts +++ b/api/ppl/postStats.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Ppl_PostStats_Request = Global.Params & { +export interface Ppl_PostStats_Request extends Global.Params { body: Sql_Common.Stats; format?: string; sanitize?: boolean; } -export type Ppl_PostStats_Response = ApiResponse & { +export interface Ppl_PostStats_Response extends ApiResponse { body: Ppl_PostStats_ResponseBody; } diff --git a/api/ppl/query.d.ts b/api/ppl/query.d.ts index 0fdb4749b..db4c86e8c 100644 --- a/api/ppl/query.d.ts +++ b/api/ppl/query.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Ppl_Query_Request = Global.Params & { +export interface Ppl_Query_Request extends Global.Params { body: Sql_Common.Query; format?: string; sanitize?: boolean; } -export type Ppl_Query_Response = ApiResponse & { +export interface Ppl_Query_Response extends ApiResponse { body: Ppl_Query_ResponseBody; } diff --git a/api/query/datasourceDelete.d.ts b/api/query/datasourceDelete.d.ts index 4d88440ae..6079c1a2f 100644 --- a/api/query/datasourceDelete.d.ts +++ b/api/query/datasourceDelete.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Query_DatasourceDelete_Request = Global.Params & { +export interface Query_DatasourceDelete_Request extends Global.Params { datasource_name: string; } -export type Query_DatasourceDelete_Response = ApiResponse & { +export interface Query_DatasourceDelete_Response extends ApiResponse { body: Query_DatasourceDelete_ResponseBody; } diff --git a/api/query/datasourceRetrieve.d.ts b/api/query/datasourceRetrieve.d.ts index d67b9d566..a100080b4 100644 --- a/api/query/datasourceRetrieve.d.ts +++ b/api/query/datasourceRetrieve.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Query_Common from '../_types/query._common' -export type Query_DatasourceRetrieve_Request = Global.Params & { +export interface Query_DatasourceRetrieve_Request extends Global.Params { datasource_name: string; } -export type Query_DatasourceRetrieve_Response = ApiResponse & { +export interface Query_DatasourceRetrieve_Response extends ApiResponse { body: Query_DatasourceRetrieve_ResponseBody; } diff --git a/api/query/datasourcesCreate.d.ts b/api/query/datasourcesCreate.d.ts index 45dac1535..3b01a716f 100644 --- a/api/query/datasourcesCreate.d.ts +++ b/api/query/datasourcesCreate.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Query_Common from '../_types/query._common' -export type Query_DatasourcesCreate_Request = Global.Params & { +export interface Query_DatasourcesCreate_Request extends Global.Params { body?: Query_Common.DataSource; } -export type Query_DatasourcesCreate_Response = ApiResponse & { +export interface Query_DatasourcesCreate_Response extends ApiResponse { body: Query_DatasourcesCreate_ResponseBody; } diff --git a/api/query/datasourcesList.d.ts b/api/query/datasourcesList.d.ts index 0d928d582..ce090304f 100644 --- a/api/query/datasourcesList.d.ts +++ b/api/query/datasourcesList.d.ts @@ -20,7 +20,7 @@ import * as Query_Common from '../_types/query._common' export type Query_DatasourcesList_Request = Global.Params & Record -export type Query_DatasourcesList_Response = ApiResponse & { +export interface Query_DatasourcesList_Response extends ApiResponse { body: Query_DatasourcesList_ResponseBody; } diff --git a/api/query/datasourcesUpdate.d.ts b/api/query/datasourcesUpdate.d.ts index db7c76e7c..ac0dd49c3 100644 --- a/api/query/datasourcesUpdate.d.ts +++ b/api/query/datasourcesUpdate.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Query_Common from '../_types/query._common' -export type Query_DatasourcesUpdate_Request = Global.Params & { +export interface Query_DatasourcesUpdate_Request extends Global.Params { body?: Query_Common.DataSource; } -export type Query_DatasourcesUpdate_Response = ApiResponse & { +export interface Query_DatasourcesUpdate_Response extends ApiResponse { body: Query_DatasourcesUpdate_ResponseBody; } diff --git a/api/remoteStore/restore.d.ts b/api/remoteStore/restore.d.ts index bd635ea7b..28335ad5b 100644 --- a/api/remoteStore/restore.d.ts +++ b/api/remoteStore/restore.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as RemoteStore_Common from '../_types/remote_store._common' -export type RemoteStore_Restore_Request = Global.Params & { +export interface RemoteStore_Restore_Request extends Global.Params { body: RemoteStore_Restore_RequestBody; cluster_manager_timeout?: Common.Duration; wait_for_completion?: boolean; @@ -29,7 +29,7 @@ export type RemoteStore_Restore_RequestBody = { indices: string[]; } -export type RemoteStore_Restore_Response = ApiResponse & { +export interface RemoteStore_Restore_Response extends ApiResponse { body: RemoteStore_Restore_ResponseBody; } diff --git a/api/replication/autofollowStats.d.ts b/api/replication/autofollowStats.d.ts index f710b12c8..8764d91e7 100644 --- a/api/replication/autofollowStats.d.ts +++ b/api/replication/autofollowStats.d.ts @@ -20,7 +20,7 @@ import * as Replication_Common from '../_types/replication._common' export type Replication_AutofollowStats_Request = Global.Params & Record -export type Replication_AutofollowStats_Response = ApiResponse & { +export interface Replication_AutofollowStats_Response extends ApiResponse { body: Replication_AutofollowStats_ResponseBody; } diff --git a/api/replication/createReplicationRule.d.ts b/api/replication/createReplicationRule.d.ts index 8c94edb02..1ddf0eb73 100644 --- a/api/replication/createReplicationRule.d.ts +++ b/api/replication/createReplicationRule.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Replication_Common from '../_types/replication._common' -export type Replication_CreateReplicationRule_Request = Global.Params & { +export interface Replication_CreateReplicationRule_Request extends Global.Params { body: Replication_Common.CreateReplicationRule; } -export type Replication_CreateReplicationRule_Response = ApiResponse & { +export interface Replication_CreateReplicationRule_Response extends ApiResponse { body: Replication_CreateReplicationRule_ResponseBody; } diff --git a/api/replication/deleteReplicationRule.d.ts b/api/replication/deleteReplicationRule.d.ts index 8cdcd438f..c526b6f73 100644 --- a/api/replication/deleteReplicationRule.d.ts +++ b/api/replication/deleteReplicationRule.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Replication_Common from '../_types/replication._common' -export type Replication_DeleteReplicationRule_Request = Global.Params & { +export interface Replication_DeleteReplicationRule_Request extends Global.Params { body: Replication_Common.DeleteReplicationRule; } -export type Replication_DeleteReplicationRule_Response = ApiResponse & { +export interface Replication_DeleteReplicationRule_Response extends ApiResponse { body: Replication_DeleteReplicationRule_ResponseBody; } diff --git a/api/replication/followerStats.d.ts b/api/replication/followerStats.d.ts index e36b3058e..5f1fef909 100644 --- a/api/replication/followerStats.d.ts +++ b/api/replication/followerStats.d.ts @@ -20,7 +20,7 @@ import * as Replication_Common from '../_types/replication._common' export type Replication_FollowerStats_Request = Global.Params & Record -export type Replication_FollowerStats_Response = ApiResponse & { +export interface Replication_FollowerStats_Response extends ApiResponse { body: Replication_FollowerStats_ResponseBody; } diff --git a/api/replication/leaderStats.d.ts b/api/replication/leaderStats.d.ts index d717e7285..a3a00447e 100644 --- a/api/replication/leaderStats.d.ts +++ b/api/replication/leaderStats.d.ts @@ -20,7 +20,7 @@ import * as Replication_Common from '../_types/replication._common' export type Replication_LeaderStats_Request = Global.Params & Record -export type Replication_LeaderStats_Response = ApiResponse & { +export interface Replication_LeaderStats_Response extends ApiResponse { body: Replication_LeaderStats_ResponseBody; } diff --git a/api/replication/pause.d.ts b/api/replication/pause.d.ts index 7e694d39b..2ea599a38 100644 --- a/api/replication/pause.d.ts +++ b/api/replication/pause.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Replication_Pause_Request = Global.Params & { +export interface Replication_Pause_Request extends Global.Params { body: Replication_Pause_RequestBody; index: Common.IndexName; } export type Replication_Pause_RequestBody = Record -export type Replication_Pause_Response = ApiResponse & { +export interface Replication_Pause_Response extends ApiResponse { body: Replication_Pause_ResponseBody; } diff --git a/api/replication/resume.d.ts b/api/replication/resume.d.ts index ad01d1321..c3379c464 100644 --- a/api/replication/resume.d.ts +++ b/api/replication/resume.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Replication_Resume_Request = Global.Params & { +export interface Replication_Resume_Request extends Global.Params { body: Replication_Resume_RequestBody; index: Common.IndexName; } export type Replication_Resume_RequestBody = Record -export type Replication_Resume_Response = ApiResponse & { +export interface Replication_Resume_Response extends ApiResponse { body: Replication_Resume_ResponseBody; } diff --git a/api/replication/start.d.ts b/api/replication/start.d.ts index 2d32070e3..e3f712093 100644 --- a/api/replication/start.d.ts +++ b/api/replication/start.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Replication_Common from '../_types/replication._common' -export type Replication_Start_Request = Global.Params & { +export interface Replication_Start_Request extends Global.Params { body: Replication_Common.Replication; index: Common.IndexName; } -export type Replication_Start_Response = ApiResponse & { +export interface Replication_Start_Response extends ApiResponse { body: Replication_Start_ResponseBody; } diff --git a/api/replication/status.d.ts b/api/replication/status.d.ts index 7e6d2ba5f..8365af1fb 100644 --- a/api/replication/status.d.ts +++ b/api/replication/status.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Replication_Common from '../_types/replication._common' -export type Replication_Status_Request = Global.Params & { +export interface Replication_Status_Request extends Global.Params { index: Common.IndexName; } -export type Replication_Status_Response = ApiResponse & { +export interface Replication_Status_Response extends ApiResponse { body: Replication_Status_ResponseBody; } diff --git a/api/replication/stop.d.ts b/api/replication/stop.d.ts index 2e9425d33..734f18e56 100644 --- a/api/replication/stop.d.ts +++ b/api/replication/stop.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Replication_Stop_Request = Global.Params & { +export interface Replication_Stop_Request extends Global.Params { body: Replication_Stop_RequestBody; index: Common.IndexName; } export type Replication_Stop_RequestBody = Record -export type Replication_Stop_Response = ApiResponse & { +export interface Replication_Stop_Response extends ApiResponse { body: Replication_Stop_ResponseBody; } diff --git a/api/replication/updateSettings.d.ts b/api/replication/updateSettings.d.ts index 7de5fca20..da8e0fdc9 100644 --- a/api/replication/updateSettings.d.ts +++ b/api/replication/updateSettings.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Replication_Common from '../_types/replication._common' -export type Replication_UpdateSettings_Request = Global.Params & { +export interface Replication_UpdateSettings_Request extends Global.Params { body: Replication_Common.UpdateSettings; index: Common.IndexName; } -export type Replication_UpdateSettings_Response = ApiResponse & { +export interface Replication_UpdateSettings_Response extends ApiResponse { body: Replication_UpdateSettings_ResponseBody; } diff --git a/api/rollups/delete.d.ts b/api/rollups/delete.d.ts index 7d5b299d9..c375c1a3d 100644 --- a/api/rollups/delete.d.ts +++ b/api/rollups/delete.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Rollups_Delete_Request = Global.Params & { +export interface Rollups_Delete_Request extends Global.Params { id: Common.Id; } -export type Rollups_Delete_Response = ApiResponse & { +export interface Rollups_Delete_Response extends ApiResponse { body: Rollups_Delete_ResponseBody; } diff --git a/api/rollups/explain.d.ts b/api/rollups/explain.d.ts index 782a9637d..fceacb6e0 100644 --- a/api/rollups/explain.d.ts +++ b/api/rollups/explain.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Rollups_Common from '../_types/rollups._common' -export type Rollups_Explain_Request = Global.Params & { +export interface Rollups_Explain_Request extends Global.Params { id: Common.Id; } -export type Rollups_Explain_Response = ApiResponse & { +export interface Rollups_Explain_Response extends ApiResponse { body: Rollups_Explain_ResponseBody; } diff --git a/api/rollups/get.d.ts b/api/rollups/get.d.ts index 502ec887f..1d23b878d 100644 --- a/api/rollups/get.d.ts +++ b/api/rollups/get.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Rollups_Common from '../_types/rollups._common' -export type Rollups_Get_Request = Global.Params & { +export interface Rollups_Get_Request extends Global.Params { id: Common.Id; } -export type Rollups_Get_Response = ApiResponse & { +export interface Rollups_Get_Response extends ApiResponse { body: Rollups_Get_ResponseBody; } diff --git a/api/rollups/put.d.ts b/api/rollups/put.d.ts index aff4e3704..5ab2c1a3b 100644 --- a/api/rollups/put.d.ts +++ b/api/rollups/put.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Rollups_Common from '../_types/rollups._common' -export type Rollups_Put_Request = Global.Params & { +export interface Rollups_Put_Request extends Global.Params { body?: Rollups_Common.RollupEntity; id: Common.Id; if_primary_term?: number; if_seq_no?: Common.SequenceNumber; } -export type Rollups_Put_Response = ApiResponse & { +export interface Rollups_Put_Response extends ApiResponse { body: Rollups_Put_ResponseBody; } diff --git a/api/rollups/start.d.ts b/api/rollups/start.d.ts index 302663272..29fbd633f 100644 --- a/api/rollups/start.d.ts +++ b/api/rollups/start.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Rollups_Start_Request = Global.Params & { +export interface Rollups_Start_Request extends Global.Params { id: Common.Id; } -export type Rollups_Start_Response = ApiResponse & { +export interface Rollups_Start_Response extends ApiResponse { body: Rollups_Start_ResponseBody; } diff --git a/api/rollups/stop.d.ts b/api/rollups/stop.d.ts index 0ea4853ef..e6710f81b 100644 --- a/api/rollups/stop.d.ts +++ b/api/rollups/stop.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Rollups_Stop_Request = Global.Params & { +export interface Rollups_Stop_Request extends Global.Params { id: Common.Id; } -export type Rollups_Stop_Response = ApiResponse & { +export interface Rollups_Stop_Response extends ApiResponse { body: Rollups_Stop_ResponseBody; } diff --git a/api/searchPipeline/delete.d.ts b/api/searchPipeline/delete.d.ts index 997a2613e..1023b5fd8 100644 --- a/api/searchPipeline/delete.d.ts +++ b/api/searchPipeline/delete.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type SearchPipeline_Delete_Request = Global.Params & { +export interface SearchPipeline_Delete_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id: string; timeout?: Common.Duration; } -export type SearchPipeline_Delete_Response = ApiResponse & { +export interface SearchPipeline_Delete_Response extends ApiResponse { body: SearchPipeline_Delete_ResponseBody; } diff --git a/api/searchPipeline/get.d.ts b/api/searchPipeline/get.d.ts index d5c7662a1..08290e14a 100644 --- a/api/searchPipeline/get.d.ts +++ b/api/searchPipeline/get.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as SearchPipeline_Common from '../_types/search_pipeline._common' -export type SearchPipeline_Get_Request = Global.Params & { +export interface SearchPipeline_Get_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; id?: string; } -export type SearchPipeline_Get_Response = ApiResponse & { +export interface SearchPipeline_Get_Response extends ApiResponse { body: SearchPipeline_Get_ResponseBody; } diff --git a/api/searchPipeline/put.d.ts b/api/searchPipeline/put.d.ts index 1719a3d60..3bd4c74ac 100644 --- a/api/searchPipeline/put.d.ts +++ b/api/searchPipeline/put.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as SearchPipeline_Common from '../_types/search_pipeline._common' -export type SearchPipeline_Put_Request = Global.Params & { +export interface SearchPipeline_Put_Request extends Global.Params { body: SearchPipeline_Common.SearchPipelineStructure; cluster_manager_timeout?: Common.Duration; id: string; timeout?: Common.Duration; } -export type SearchPipeline_Put_Response = ApiResponse & { +export interface SearchPipeline_Put_Response extends ApiResponse { body: SearchPipeline_Put_ResponseBody; } diff --git a/api/security/authinfo.d.ts b/api/security/authinfo.d.ts index 98ef1a804..67c884f2c 100644 --- a/api/security/authinfo.d.ts +++ b/api/security/authinfo.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_Authinfo_Request = Global.Params & { +export interface Security_Authinfo_Request extends Global.Params { auth_type?: string; verbose?: boolean; } -export type Security_Authinfo_Response = ApiResponse & { +export interface Security_Authinfo_Response extends ApiResponse { body: Security_Authinfo_ResponseBody; } diff --git a/api/security/authtoken.d.ts b/api/security/authtoken.d.ts index a8471b769..855186211 100644 --- a/api/security/authtoken.d.ts +++ b/api/security/authtoken.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_Authtoken_Request = Global.Params & Record -export type Security_Authtoken_Response = ApiResponse & { +export interface Security_Authtoken_Response extends ApiResponse { body: Security_Authtoken_ResponseBody; } diff --git a/api/security/changePassword.d.ts b/api/security/changePassword.d.ts index f93370e63..3e19786cf 100644 --- a/api/security/changePassword.d.ts +++ b/api/security/changePassword.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_ChangePassword_Request = Global.Params & { +export interface Security_ChangePassword_Request extends Global.Params { body: Security_Common.ChangePasswordRequestContent; } -export type Security_ChangePassword_Response = ApiResponse & { +export interface Security_ChangePassword_Response extends ApiResponse { body: Security_ChangePassword_ResponseBody; } diff --git a/api/security/configUpgradeCheck.d.ts b/api/security/configUpgradeCheck.d.ts index 6ceef96e7..6f89e60cd 100644 --- a/api/security/configUpgradeCheck.d.ts +++ b/api/security/configUpgradeCheck.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_ConfigUpgradeCheck_Request = Global.Params & Record -export type Security_ConfigUpgradeCheck_Response = ApiResponse & { +export interface Security_ConfigUpgradeCheck_Response extends ApiResponse { body: Security_ConfigUpgradeCheck_ResponseBody; } diff --git a/api/security/configUpgradePerform.d.ts b/api/security/configUpgradePerform.d.ts index f946d2d13..605aa90be 100644 --- a/api/security/configUpgradePerform.d.ts +++ b/api/security/configUpgradePerform.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_ConfigUpgradePerform_Request = Global.Params & { +export interface Security_ConfigUpgradePerform_Request extends Global.Params { body?: Security_Common.ConfigUpgradePayload; } -export type Security_ConfigUpgradePerform_Response = ApiResponse & { +export interface Security_ConfigUpgradePerform_Response extends ApiResponse { body: Security_ConfigUpgradePerform_ResponseBody; } diff --git a/api/security/createActionGroup.d.ts b/api/security/createActionGroup.d.ts index 1f5e15373..2defe7516 100644 --- a/api/security/createActionGroup.d.ts +++ b/api/security/createActionGroup.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateActionGroup_Request = Global.Params & { +export interface Security_CreateActionGroup_Request extends Global.Params { action_group: string; body: Security_Common.ActionGroup; } -export type Security_CreateActionGroup_Response = ApiResponse & { +export interface Security_CreateActionGroup_Response extends ApiResponse { body: Security_CreateActionGroup_ResponseBody; } diff --git a/api/security/createAllowlist.d.ts b/api/security/createAllowlist.d.ts index 29cdae6f9..b9bb2e2a2 100644 --- a/api/security/createAllowlist.d.ts +++ b/api/security/createAllowlist.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateAllowlist_Request = Global.Params & { +export interface Security_CreateAllowlist_Request extends Global.Params { body: Security_Common.AllowListConfig; } -export type Security_CreateAllowlist_Response = ApiResponse & { +export interface Security_CreateAllowlist_Response extends ApiResponse { body: Security_CreateAllowlist_ResponseBody; } diff --git a/api/security/createRole.d.ts b/api/security/createRole.d.ts index ae906b995..f76bdac26 100644 --- a/api/security/createRole.d.ts +++ b/api/security/createRole.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateRole_Request = Global.Params & { +export interface Security_CreateRole_Request extends Global.Params { body: Security_Common.Role; role: string; } -export type Security_CreateRole_Response = ApiResponse & { +export interface Security_CreateRole_Response extends ApiResponse { body: Security_CreateRole_ResponseBody; } diff --git a/api/security/createRoleMapping.d.ts b/api/security/createRoleMapping.d.ts index 5a7cd8ea5..bcf1588f9 100644 --- a/api/security/createRoleMapping.d.ts +++ b/api/security/createRoleMapping.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateRoleMapping_Request = Global.Params & { +export interface Security_CreateRoleMapping_Request extends Global.Params { body: Security_Common.RoleMapping; role: string; } -export type Security_CreateRoleMapping_Response = ApiResponse & { +export interface Security_CreateRoleMapping_Response extends ApiResponse { body: Security_CreateRoleMapping_ResponseBody; } diff --git a/api/security/createTenant.d.ts b/api/security/createTenant.d.ts index 8316ef9de..e347b6c39 100644 --- a/api/security/createTenant.d.ts +++ b/api/security/createTenant.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateTenant_Request = Global.Params & { +export interface Security_CreateTenant_Request extends Global.Params { body: Security_Common.CreateTenantParams; tenant: string; } -export type Security_CreateTenant_Response = ApiResponse & { +export interface Security_CreateTenant_Response extends ApiResponse { body: Security_CreateTenant_ResponseBody; } diff --git a/api/security/createUpdateTenancyConfig.d.ts b/api/security/createUpdateTenancyConfig.d.ts index 19a0c8762..5402b421d 100644 --- a/api/security/createUpdateTenancyConfig.d.ts +++ b/api/security/createUpdateTenancyConfig.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateUpdateTenancyConfig_Request = Global.Params & { +export interface Security_CreateUpdateTenancyConfig_Request extends Global.Params { body: Security_Common.MultiTenancyConfig; } -export type Security_CreateUpdateTenancyConfig_Response = ApiResponse & { +export interface Security_CreateUpdateTenancyConfig_Response extends ApiResponse { body: Security_CreateUpdateTenancyConfig_ResponseBody; } diff --git a/api/security/createUser.d.ts b/api/security/createUser.d.ts index 331b969db..0bb03c598 100644 --- a/api/security/createUser.d.ts +++ b/api/security/createUser.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateUser_Request = Global.Params & { +export interface Security_CreateUser_Request extends Global.Params { body: Security_Common.User; username: string; } -export type Security_CreateUser_Response = ApiResponse & { +export interface Security_CreateUser_Response extends ApiResponse { body: Security_CreateUser_ResponseBody; } diff --git a/api/security/createUserLegacy.d.ts b/api/security/createUserLegacy.d.ts index 6f059b576..798ce6a6a 100644 --- a/api/security/createUserLegacy.d.ts +++ b/api/security/createUserLegacy.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_CreateUserLegacy_Request = Global.Params & { +export interface Security_CreateUserLegacy_Request extends Global.Params { body: Security_Common.User; username: string; } -export type Security_CreateUserLegacy_Response = ApiResponse & { +export interface Security_CreateUserLegacy_Response extends ApiResponse { body: Security_CreateUserLegacy_ResponseBody; } diff --git a/api/security/deleteActionGroup.d.ts b/api/security/deleteActionGroup.d.ts index b733e5685..d28e16e0d 100644 --- a/api/security/deleteActionGroup.d.ts +++ b/api/security/deleteActionGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteActionGroup_Request = Global.Params & { +export interface Security_DeleteActionGroup_Request extends Global.Params { action_group: string; } -export type Security_DeleteActionGroup_Response = ApiResponse & { +export interface Security_DeleteActionGroup_Response extends ApiResponse { body: Security_DeleteActionGroup_ResponseBody; } diff --git a/api/security/deleteDistinguishedName.d.ts b/api/security/deleteDistinguishedName.d.ts index ffa8d92c2..1a6f57bd3 100644 --- a/api/security/deleteDistinguishedName.d.ts +++ b/api/security/deleteDistinguishedName.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteDistinguishedName_Request = Global.Params & { +export interface Security_DeleteDistinguishedName_Request extends Global.Params { cluster_name: string; } -export type Security_DeleteDistinguishedName_Response = ApiResponse & { +export interface Security_DeleteDistinguishedName_Response extends ApiResponse { body: Security_DeleteDistinguishedName_ResponseBody; } diff --git a/api/security/deleteRole.d.ts b/api/security/deleteRole.d.ts index e1e6564fb..cfb434652 100644 --- a/api/security/deleteRole.d.ts +++ b/api/security/deleteRole.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteRole_Request = Global.Params & { +export interface Security_DeleteRole_Request extends Global.Params { role: string; } -export type Security_DeleteRole_Response = ApiResponse & { +export interface Security_DeleteRole_Response extends ApiResponse { body: Security_DeleteRole_ResponseBody; } diff --git a/api/security/deleteRoleMapping.d.ts b/api/security/deleteRoleMapping.d.ts index 56cd5c341..531e94806 100644 --- a/api/security/deleteRoleMapping.d.ts +++ b/api/security/deleteRoleMapping.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteRoleMapping_Request = Global.Params & { +export interface Security_DeleteRoleMapping_Request extends Global.Params { role: string; } -export type Security_DeleteRoleMapping_Response = ApiResponse & { +export interface Security_DeleteRoleMapping_Response extends ApiResponse { body: Security_DeleteRoleMapping_ResponseBody; } diff --git a/api/security/deleteTenant.d.ts b/api/security/deleteTenant.d.ts index f52f081ec..0326614e4 100644 --- a/api/security/deleteTenant.d.ts +++ b/api/security/deleteTenant.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteTenant_Request = Global.Params & { +export interface Security_DeleteTenant_Request extends Global.Params { tenant: string; } -export type Security_DeleteTenant_Response = ApiResponse & { +export interface Security_DeleteTenant_Response extends ApiResponse { body: Security_DeleteTenant_ResponseBody; } diff --git a/api/security/deleteUser.d.ts b/api/security/deleteUser.d.ts index 65eddb8b3..14747f366 100644 --- a/api/security/deleteUser.d.ts +++ b/api/security/deleteUser.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteUser_Request = Global.Params & { +export interface Security_DeleteUser_Request extends Global.Params { username: string; } -export type Security_DeleteUser_Response = ApiResponse & { +export interface Security_DeleteUser_Response extends ApiResponse { body: Security_DeleteUser_ResponseBody; } diff --git a/api/security/deleteUserLegacy.d.ts b/api/security/deleteUserLegacy.d.ts index 96dcb5985..6be5df5fc 100644 --- a/api/security/deleteUserLegacy.d.ts +++ b/api/security/deleteUserLegacy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_DeleteUserLegacy_Request = Global.Params & { +export interface Security_DeleteUserLegacy_Request extends Global.Params { username: string; } -export type Security_DeleteUserLegacy_Response = ApiResponse & { +export interface Security_DeleteUserLegacy_Response extends ApiResponse { body: Security_DeleteUserLegacy_ResponseBody; } diff --git a/api/security/flushCache.d.ts b/api/security/flushCache.d.ts index 27b676dd7..7af03dd1a 100644 --- a/api/security/flushCache.d.ts +++ b/api/security/flushCache.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_FlushCache_Request = Global.Params & Record -export type Security_FlushCache_Response = ApiResponse & { +export interface Security_FlushCache_Response extends ApiResponse { body: Security_FlushCache_ResponseBody; } diff --git a/api/security/generateOboToken.d.ts b/api/security/generateOboToken.d.ts index d179c8124..0e6e365b5 100644 --- a/api/security/generateOboToken.d.ts +++ b/api/security/generateOboToken.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GenerateOboToken_Request = Global.Params & { +export interface Security_GenerateOboToken_Request extends Global.Params { body: Security_Common.OBOToken; } -export type Security_GenerateOboToken_Response = ApiResponse & { +export interface Security_GenerateOboToken_Response extends ApiResponse { body: Security_GenerateOboToken_ResponseBody; } diff --git a/api/security/generateUserToken.d.ts b/api/security/generateUserToken.d.ts index 8fed5c5f6..5bc5cc76f 100644 --- a/api/security/generateUserToken.d.ts +++ b/api/security/generateUserToken.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GenerateUserToken_Request = Global.Params & { +export interface Security_GenerateUserToken_Request extends Global.Params { username: string; } -export type Security_GenerateUserToken_Response = ApiResponse & { +export interface Security_GenerateUserToken_Response extends ApiResponse { body: Security_GenerateUserToken_ResponseBody; } diff --git a/api/security/generateUserTokenLegacy.d.ts b/api/security/generateUserTokenLegacy.d.ts index 312dcaf42..53187dad7 100644 --- a/api/security/generateUserTokenLegacy.d.ts +++ b/api/security/generateUserTokenLegacy.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Security_GenerateUserTokenLegacy_Request = Global.Params & { +export interface Security_GenerateUserTokenLegacy_Request extends Global.Params { username: string; } -export type Security_GenerateUserTokenLegacy_Response = ApiResponse & { +export interface Security_GenerateUserTokenLegacy_Response extends ApiResponse { body: Security_GenerateUserTokenLegacy_ResponseBody; } diff --git a/api/security/getAccountDetails.d.ts b/api/security/getAccountDetails.d.ts index d5a010f48..129700e20 100644 --- a/api/security/getAccountDetails.d.ts +++ b/api/security/getAccountDetails.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetAccountDetails_Request = Global.Params & Record -export type Security_GetAccountDetails_Response = ApiResponse & { +export interface Security_GetAccountDetails_Response extends ApiResponse { body: Security_GetAccountDetails_ResponseBody; } diff --git a/api/security/getActionGroup.d.ts b/api/security/getActionGroup.d.ts index 177962e81..f17fb75a0 100644 --- a/api/security/getActionGroup.d.ts +++ b/api/security/getActionGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetActionGroup_Request = Global.Params & { +export interface Security_GetActionGroup_Request extends Global.Params { action_group: string; } -export type Security_GetActionGroup_Response = ApiResponse & { +export interface Security_GetActionGroup_Response extends ApiResponse { body: Security_GetActionGroup_ResponseBody; } diff --git a/api/security/getActionGroups.d.ts b/api/security/getActionGroups.d.ts index 9e3fd4785..2d31cc676 100644 --- a/api/security/getActionGroups.d.ts +++ b/api/security/getActionGroups.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetActionGroups_Request = Global.Params & Record -export type Security_GetActionGroups_Response = ApiResponse & { +export interface Security_GetActionGroups_Response extends ApiResponse { body: Security_GetActionGroups_ResponseBody; } diff --git a/api/security/getAllCertificates.d.ts b/api/security/getAllCertificates.d.ts index 4d23e9e5b..aacf9c611 100644 --- a/api/security/getAllCertificates.d.ts +++ b/api/security/getAllCertificates.d.ts @@ -19,12 +19,12 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetAllCertificates_Request = Global.Params & { +export interface Security_GetAllCertificates_Request extends Global.Params { cert_type?: string; timeout?: Common.Duration; } -export type Security_GetAllCertificates_Response = ApiResponse & { +export interface Security_GetAllCertificates_Response extends ApiResponse { body: Security_GetAllCertificates_ResponseBody; } diff --git a/api/security/getAllowlist.d.ts b/api/security/getAllowlist.d.ts index df22bc5b7..1a2d5950a 100644 --- a/api/security/getAllowlist.d.ts +++ b/api/security/getAllowlist.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetAllowlist_Request = Global.Params & Record -export type Security_GetAllowlist_Response = ApiResponse & { +export interface Security_GetAllowlist_Response extends ApiResponse { body: Security_GetAllowlist_ResponseBody; } diff --git a/api/security/getAuditConfiguration.d.ts b/api/security/getAuditConfiguration.d.ts index 87f09ae97..c492a96fa 100644 --- a/api/security/getAuditConfiguration.d.ts +++ b/api/security/getAuditConfiguration.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetAuditConfiguration_Request = Global.Params & Record -export type Security_GetAuditConfiguration_Response = ApiResponse & { +export interface Security_GetAuditConfiguration_Response extends ApiResponse { body: Security_GetAuditConfiguration_ResponseBody; } diff --git a/api/security/getCertificates.d.ts b/api/security/getCertificates.d.ts index 0ae6742f7..dd39889a7 100644 --- a/api/security/getCertificates.d.ts +++ b/api/security/getCertificates.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetCertificates_Request = Global.Params & Record -export type Security_GetCertificates_Response = ApiResponse & { +export interface Security_GetCertificates_Response extends ApiResponse { body: Security_GetCertificates_ResponseBody; } diff --git a/api/security/getConfiguration.d.ts b/api/security/getConfiguration.d.ts index 3015c73d1..92a8a0a1f 100644 --- a/api/security/getConfiguration.d.ts +++ b/api/security/getConfiguration.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetConfiguration_Request = Global.Params & Record -export type Security_GetConfiguration_Response = ApiResponse & { +export interface Security_GetConfiguration_Response extends ApiResponse { body: Security_GetConfiguration_ResponseBody; } diff --git a/api/security/getDashboardsInfo.d.ts b/api/security/getDashboardsInfo.d.ts index ac7a9f92a..263d3e8f5 100644 --- a/api/security/getDashboardsInfo.d.ts +++ b/api/security/getDashboardsInfo.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetDashboardsInfo_Request = Global.Params & Record -export type Security_GetDashboardsInfo_Response = ApiResponse & { +export interface Security_GetDashboardsInfo_Response extends ApiResponse { body: Security_GetDashboardsInfo_ResponseBody; } diff --git a/api/security/getDistinguishedName.d.ts b/api/security/getDistinguishedName.d.ts index b1f1fd153..63ae6192c 100644 --- a/api/security/getDistinguishedName.d.ts +++ b/api/security/getDistinguishedName.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetDistinguishedName_Request = Global.Params & { +export interface Security_GetDistinguishedName_Request extends Global.Params { cluster_name: string; show_all?: boolean; } -export type Security_GetDistinguishedName_Response = ApiResponse & { +export interface Security_GetDistinguishedName_Response extends ApiResponse { body: Security_GetDistinguishedName_ResponseBody; } -export type Security_GetDistinguishedName_ResponseBody = Security_Common.DistinguishedNames +export type Security_GetDistinguishedName_ResponseBody = Security_Common.DistinguishedNamesMap diff --git a/api/security/getDistinguishedNames.d.ts b/api/security/getDistinguishedNames.d.ts index 7da9e857f..783104a2c 100644 --- a/api/security/getDistinguishedNames.d.ts +++ b/api/security/getDistinguishedNames.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetDistinguishedNames_Request = Global.Params & { +export interface Security_GetDistinguishedNames_Request extends Global.Params { show_all?: boolean; } -export type Security_GetDistinguishedNames_Response = ApiResponse & { +export interface Security_GetDistinguishedNames_Response extends ApiResponse { body: Security_GetDistinguishedNames_ResponseBody; } diff --git a/api/security/getNodeCertificates.d.ts b/api/security/getNodeCertificates.d.ts index caee215ad..e4bd4b0d6 100644 --- a/api/security/getNodeCertificates.d.ts +++ b/api/security/getNodeCertificates.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetNodeCertificates_Request = Global.Params & { +export interface Security_GetNodeCertificates_Request extends Global.Params { cert_type?: string; node_id: string; timeout?: Common.Duration; } -export type Security_GetNodeCertificates_Response = ApiResponse & { +export interface Security_GetNodeCertificates_Response extends ApiResponse { body: Security_GetNodeCertificates_ResponseBody; } diff --git a/api/security/getPermissionsInfo.d.ts b/api/security/getPermissionsInfo.d.ts index 5f75d9285..2323bc62a 100644 --- a/api/security/getPermissionsInfo.d.ts +++ b/api/security/getPermissionsInfo.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetPermissionsInfo_Request = Global.Params & Record -export type Security_GetPermissionsInfo_Response = ApiResponse & { +export interface Security_GetPermissionsInfo_Response extends ApiResponse { body: Security_GetPermissionsInfo_ResponseBody; } diff --git a/api/security/getRole.d.ts b/api/security/getRole.d.ts index 6b33d69ce..3ef8d7d0c 100644 --- a/api/security/getRole.d.ts +++ b/api/security/getRole.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetRole_Request = Global.Params & { +export interface Security_GetRole_Request extends Global.Params { role: string; } -export type Security_GetRole_Response = ApiResponse & { +export interface Security_GetRole_Response extends ApiResponse { body: Security_GetRole_ResponseBody; } diff --git a/api/security/getRoleMapping.d.ts b/api/security/getRoleMapping.d.ts index ae89fb0a9..bc1b57d49 100644 --- a/api/security/getRoleMapping.d.ts +++ b/api/security/getRoleMapping.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetRoleMapping_Request = Global.Params & { +export interface Security_GetRoleMapping_Request extends Global.Params { role: string; } -export type Security_GetRoleMapping_Response = ApiResponse & { +export interface Security_GetRoleMapping_Response extends ApiResponse { body: Security_GetRoleMapping_ResponseBody; } diff --git a/api/security/getRoleMappings.d.ts b/api/security/getRoleMappings.d.ts index e2e2479c2..77165ba77 100644 --- a/api/security/getRoleMappings.d.ts +++ b/api/security/getRoleMappings.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetRoleMappings_Request = Global.Params & Record -export type Security_GetRoleMappings_Response = ApiResponse & { +export interface Security_GetRoleMappings_Response extends ApiResponse { body: Security_GetRoleMappings_ResponseBody; } diff --git a/api/security/getRoles.d.ts b/api/security/getRoles.d.ts index e7413f17f..f2a17fa40 100644 --- a/api/security/getRoles.d.ts +++ b/api/security/getRoles.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetRoles_Request = Global.Params & Record -export type Security_GetRoles_Response = ApiResponse & { +export interface Security_GetRoles_Response extends ApiResponse { body: Security_GetRoles_ResponseBody; } diff --git a/api/security/getSslinfo.d.ts b/api/security/getSslinfo.d.ts index 88dfdda0a..095db3f1c 100644 --- a/api/security/getSslinfo.d.ts +++ b/api/security/getSslinfo.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetSslinfo_Request = Global.Params & { +export interface Security_GetSslinfo_Request extends Global.Params { show_dn?: boolean | string; } -export type Security_GetSslinfo_Response = ApiResponse & { +export interface Security_GetSslinfo_Response extends ApiResponse { body: Security_GetSslinfo_ResponseBody; } diff --git a/api/security/getTenancyConfig.d.ts b/api/security/getTenancyConfig.d.ts index 67b883e43..a2b4d902b 100644 --- a/api/security/getTenancyConfig.d.ts +++ b/api/security/getTenancyConfig.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetTenancyConfig_Request = Global.Params & Record -export type Security_GetTenancyConfig_Response = ApiResponse & { +export interface Security_GetTenancyConfig_Response extends ApiResponse { body: Security_GetTenancyConfig_ResponseBody; } diff --git a/api/security/getTenant.d.ts b/api/security/getTenant.d.ts index 6faef7e10..1705168e8 100644 --- a/api/security/getTenant.d.ts +++ b/api/security/getTenant.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetTenant_Request = Global.Params & { +export interface Security_GetTenant_Request extends Global.Params { tenant: string; } -export type Security_GetTenant_Response = ApiResponse & { +export interface Security_GetTenant_Response extends ApiResponse { body: Security_GetTenant_ResponseBody; } diff --git a/api/security/getTenants.d.ts b/api/security/getTenants.d.ts index 2fe897713..c60e906b7 100644 --- a/api/security/getTenants.d.ts +++ b/api/security/getTenants.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetTenants_Request = Global.Params & Record -export type Security_GetTenants_Response = ApiResponse & { +export interface Security_GetTenants_Response extends ApiResponse { body: Security_GetTenants_ResponseBody; } diff --git a/api/security/getUser.d.ts b/api/security/getUser.d.ts index e0c01fad0..19195ee9e 100644 --- a/api/security/getUser.d.ts +++ b/api/security/getUser.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetUser_Request = Global.Params & { +export interface Security_GetUser_Request extends Global.Params { username: string; } -export type Security_GetUser_Response = ApiResponse & { +export interface Security_GetUser_Response extends ApiResponse { body: Security_GetUser_ResponseBody; } diff --git a/api/security/getUserLegacy.d.ts b/api/security/getUserLegacy.d.ts index 98d09563f..f6952b494 100644 --- a/api/security/getUserLegacy.d.ts +++ b/api/security/getUserLegacy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_GetUserLegacy_Request = Global.Params & { +export interface Security_GetUserLegacy_Request extends Global.Params { username: string; } -export type Security_GetUserLegacy_Response = ApiResponse & { +export interface Security_GetUserLegacy_Response extends ApiResponse { body: Security_GetUserLegacy_ResponseBody; } diff --git a/api/security/getUsers.d.ts b/api/security/getUsers.d.ts index fb0e9d04e..7f8479c4b 100644 --- a/api/security/getUsers.d.ts +++ b/api/security/getUsers.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetUsers_Request = Global.Params & Record -export type Security_GetUsers_Response = ApiResponse & { +export interface Security_GetUsers_Response extends ApiResponse { body: Security_GetUsers_ResponseBody; } diff --git a/api/security/getUsersLegacy.d.ts b/api/security/getUsersLegacy.d.ts index f85b01611..f6ecf088d 100644 --- a/api/security/getUsersLegacy.d.ts +++ b/api/security/getUsersLegacy.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_GetUsersLegacy_Request = Global.Params & Record -export type Security_GetUsersLegacy_Response = ApiResponse & { +export interface Security_GetUsersLegacy_Response extends ApiResponse { body: Security_GetUsersLegacy_ResponseBody; } diff --git a/api/security/health.d.ts b/api/security/health.d.ts index 932fd79b7..807d94810 100644 --- a/api/security/health.d.ts +++ b/api/security/health.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_Health_Request = Global.Params & { +export interface Security_Health_Request extends Global.Params { mode?: string; } -export type Security_Health_Response = ApiResponse & { +export interface Security_Health_Response extends ApiResponse { body: Security_Health_ResponseBody; } diff --git a/api/security/migrate.d.ts b/api/security/migrate.d.ts index a90193e7d..5964ca73b 100644 --- a/api/security/migrate.d.ts +++ b/api/security/migrate.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_Migrate_Request = Global.Params & Record -export type Security_Migrate_Response = ApiResponse & { +export interface Security_Migrate_Response extends ApiResponse { body: Security_Migrate_ResponseBody; } diff --git a/api/security/patchActionGroup.d.ts b/api/security/patchActionGroup.d.ts index 7aa5c50d6..899eaa901 100644 --- a/api/security/patchActionGroup.d.ts +++ b/api/security/patchActionGroup.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchActionGroup_Request = Global.Params & { +export interface Security_PatchActionGroup_Request extends Global.Params { action_group: string; body: Security_PatchActionGroup_RequestBody; } export type Security_PatchActionGroup_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchActionGroup_Response = ApiResponse & { +export interface Security_PatchActionGroup_Response extends ApiResponse { body: Security_PatchActionGroup_ResponseBody; } diff --git a/api/security/patchActionGroups.d.ts b/api/security/patchActionGroups.d.ts index 92742a853..8da8f5ef6 100644 --- a/api/security/patchActionGroups.d.ts +++ b/api/security/patchActionGroups.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchActionGroups_Request = Global.Params & { +export interface Security_PatchActionGroups_Request extends Global.Params { body: Security_PatchActionGroups_RequestBody; } export type Security_PatchActionGroups_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchActionGroups_Response = ApiResponse & { +export interface Security_PatchActionGroups_Response extends ApiResponse { body: Security_PatchActionGroups_ResponseBody; } diff --git a/api/security/patchAllowlist.d.ts b/api/security/patchAllowlist.d.ts index 9615cbffe..69b171e4c 100644 --- a/api/security/patchAllowlist.d.ts +++ b/api/security/patchAllowlist.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchAllowlist_Request = Global.Params & { +export interface Security_PatchAllowlist_Request extends Global.Params { body: Security_PatchAllowlist_RequestBody; } export type Security_PatchAllowlist_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchAllowlist_Response = ApiResponse & { +export interface Security_PatchAllowlist_Response extends ApiResponse { body: Security_PatchAllowlist_ResponseBody; } diff --git a/api/security/patchAuditConfiguration.d.ts b/api/security/patchAuditConfiguration.d.ts index c52230a13..8790361bb 100644 --- a/api/security/patchAuditConfiguration.d.ts +++ b/api/security/patchAuditConfiguration.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchAuditConfiguration_Request = Global.Params & { +export interface Security_PatchAuditConfiguration_Request extends Global.Params { body: Security_PatchAuditConfiguration_RequestBody; } export type Security_PatchAuditConfiguration_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchAuditConfiguration_Response = ApiResponse & { +export interface Security_PatchAuditConfiguration_Response extends ApiResponse { body: Security_PatchAuditConfiguration_ResponseBody; } diff --git a/api/security/patchConfiguration.d.ts b/api/security/patchConfiguration.d.ts index 6501940d7..caec7aaed 100644 --- a/api/security/patchConfiguration.d.ts +++ b/api/security/patchConfiguration.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchConfiguration_Request = Global.Params & { +export interface Security_PatchConfiguration_Request extends Global.Params { body: Security_PatchConfiguration_RequestBody; } export type Security_PatchConfiguration_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchConfiguration_Response = ApiResponse & { +export interface Security_PatchConfiguration_Response extends ApiResponse { body: Security_PatchConfiguration_ResponseBody; } diff --git a/api/security/patchDistinguishedName.d.ts b/api/security/patchDistinguishedName.d.ts index 5f0310b48..5af5d9bf8 100644 --- a/api/security/patchDistinguishedName.d.ts +++ b/api/security/patchDistinguishedName.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchDistinguishedName_Request = Global.Params & { - body?: Security_Common.PatchOperation; +export interface Security_PatchDistinguishedName_Request extends Global.Params { + body?: Security_Common.PatchOperations; cluster_name: string; } -export type Security_PatchDistinguishedName_Response = ApiResponse & { +export interface Security_PatchDistinguishedName_Response extends ApiResponse { body: Security_PatchDistinguishedName_ResponseBody; } diff --git a/api/security/patchDistinguishedName.js b/api/security/patchDistinguishedName.js index 434829f87..1a47e2949 100644 --- a/api/security/patchDistinguishedName.js +++ b/api/security/patchDistinguishedName.js @@ -26,7 +26,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u * * @param {object} params * @param {string} params.cluster_name - The cluster name to update `nodesDn` value. - * @param {object} [params.body] + * @param {array} [params.body] * * @param {TransportRequestOptions} [options] - Options for {@link Transport#request} * @param {function} [callback] - Callback that handles errors and response diff --git a/api/security/patchDistinguishedNames.d.ts b/api/security/patchDistinguishedNames.d.ts index e23b45f51..9632f1a90 100644 --- a/api/security/patchDistinguishedNames.d.ts +++ b/api/security/patchDistinguishedNames.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchDistinguishedNames_Request = Global.Params & { +export interface Security_PatchDistinguishedNames_Request extends Global.Params { body: Security_PatchDistinguishedNames_RequestBody; } export type Security_PatchDistinguishedNames_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchDistinguishedNames_Response = ApiResponse & { +export interface Security_PatchDistinguishedNames_Response extends ApiResponse { body: Security_PatchDistinguishedNames_ResponseBody; } diff --git a/api/security/patchRole.d.ts b/api/security/patchRole.d.ts index 05d5a99f5..c451d3675 100644 --- a/api/security/patchRole.d.ts +++ b/api/security/patchRole.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchRole_Request = Global.Params & { +export interface Security_PatchRole_Request extends Global.Params { body: Security_PatchRole_RequestBody; role: string; } export type Security_PatchRole_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchRole_Response = ApiResponse & { +export interface Security_PatchRole_Response extends ApiResponse { body: Security_PatchRole_ResponseBody; } diff --git a/api/security/patchRoleMapping.d.ts b/api/security/patchRoleMapping.d.ts index 604ebc6e2..5434fccee 100644 --- a/api/security/patchRoleMapping.d.ts +++ b/api/security/patchRoleMapping.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchRoleMapping_Request = Global.Params & { +export interface Security_PatchRoleMapping_Request extends Global.Params { body: Security_PatchRoleMapping_RequestBody; role: string; } export type Security_PatchRoleMapping_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchRoleMapping_Response = ApiResponse & { +export interface Security_PatchRoleMapping_Response extends ApiResponse { body: Security_PatchRoleMapping_ResponseBody; } diff --git a/api/security/patchRoleMappings.d.ts b/api/security/patchRoleMappings.d.ts index 999a0f069..decb67155 100644 --- a/api/security/patchRoleMappings.d.ts +++ b/api/security/patchRoleMappings.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchRoleMappings_Request = Global.Params & { +export interface Security_PatchRoleMappings_Request extends Global.Params { body: Security_PatchRoleMappings_RequestBody; } export type Security_PatchRoleMappings_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchRoleMappings_Response = ApiResponse & { +export interface Security_PatchRoleMappings_Response extends ApiResponse { body: Security_PatchRoleMappings_ResponseBody; } diff --git a/api/security/patchRoles.d.ts b/api/security/patchRoles.d.ts index e0b5694c5..c6ed3e7ec 100644 --- a/api/security/patchRoles.d.ts +++ b/api/security/patchRoles.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchRoles_Request = Global.Params & { +export interface Security_PatchRoles_Request extends Global.Params { body: Security_PatchRoles_RequestBody; } export type Security_PatchRoles_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchRoles_Response = ApiResponse & { +export interface Security_PatchRoles_Response extends ApiResponse { body: Security_PatchRoles_ResponseBody; } diff --git a/api/security/patchTenant.d.ts b/api/security/patchTenant.d.ts index 3a1154cfd..cda859287 100644 --- a/api/security/patchTenant.d.ts +++ b/api/security/patchTenant.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchTenant_Request = Global.Params & { +export interface Security_PatchTenant_Request extends Global.Params { body: Security_PatchTenant_RequestBody; tenant: string; } export type Security_PatchTenant_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchTenant_Response = ApiResponse & { +export interface Security_PatchTenant_Response extends ApiResponse { body: Security_PatchTenant_ResponseBody; } diff --git a/api/security/patchTenants.d.ts b/api/security/patchTenants.d.ts index 064374e84..3cd209c33 100644 --- a/api/security/patchTenants.d.ts +++ b/api/security/patchTenants.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchTenants_Request = Global.Params & { +export interface Security_PatchTenants_Request extends Global.Params { body: Security_PatchTenants_RequestBody; } export type Security_PatchTenants_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchTenants_Response = ApiResponse & { +export interface Security_PatchTenants_Response extends ApiResponse { body: Security_PatchTenants_ResponseBody; } diff --git a/api/security/patchUser.d.ts b/api/security/patchUser.d.ts index bc10a2cee..ab235bf16 100644 --- a/api/security/patchUser.d.ts +++ b/api/security/patchUser.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchUser_Request = Global.Params & { +export interface Security_PatchUser_Request extends Global.Params { body: Security_PatchUser_RequestBody; username: string; } export type Security_PatchUser_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchUser_Response = ApiResponse & { +export interface Security_PatchUser_Response extends ApiResponse { body: Security_PatchUser_ResponseBody; } diff --git a/api/security/patchUsers.d.ts b/api/security/patchUsers.d.ts index fc2bb795f..9c3d22cfe 100644 --- a/api/security/patchUsers.d.ts +++ b/api/security/patchUsers.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_PatchUsers_Request = Global.Params & { +export interface Security_PatchUsers_Request extends Global.Params { body: Security_PatchUsers_RequestBody; } export type Security_PatchUsers_RequestBody = Security_Common.PatchOperation[] -export type Security_PatchUsers_Response = ApiResponse & { +export interface Security_PatchUsers_Response extends ApiResponse { body: Security_PatchUsers_ResponseBody; } diff --git a/api/security/postDashboardsInfo.d.ts b/api/security/postDashboardsInfo.d.ts index 0f064943c..0805f5723 100644 --- a/api/security/postDashboardsInfo.d.ts +++ b/api/security/postDashboardsInfo.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_PostDashboardsInfo_Request = Global.Params & Record -export type Security_PostDashboardsInfo_Response = ApiResponse & { +export interface Security_PostDashboardsInfo_Response extends ApiResponse { body: Security_PostDashboardsInfo_ResponseBody; } diff --git a/api/security/reloadHttpCertificates.d.ts b/api/security/reloadHttpCertificates.d.ts index d1bec2ab3..a9cce582f 100644 --- a/api/security/reloadHttpCertificates.d.ts +++ b/api/security/reloadHttpCertificates.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_ReloadHttpCertificates_Request = Global.Params & Record -export type Security_ReloadHttpCertificates_Response = ApiResponse & { +export interface Security_ReloadHttpCertificates_Response extends ApiResponse { body: Security_ReloadHttpCertificates_ResponseBody; } diff --git a/api/security/reloadTransportCertificates.d.ts b/api/security/reloadTransportCertificates.d.ts index 96ad7dced..066c99ea5 100644 --- a/api/security/reloadTransportCertificates.d.ts +++ b/api/security/reloadTransportCertificates.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_ReloadTransportCertificates_Request = Global.Params & Record -export type Security_ReloadTransportCertificates_Response = ApiResponse & { +export interface Security_ReloadTransportCertificates_Response extends ApiResponse { body: Security_ReloadTransportCertificates_ResponseBody; } diff --git a/api/security/tenantInfo.d.ts b/api/security/tenantInfo.d.ts index 4591713bc..9b13f25da 100644 --- a/api/security/tenantInfo.d.ts +++ b/api/security/tenantInfo.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_TenantInfo_Request = Global.Params & Record -export type Security_TenantInfo_Response = ApiResponse & { +export interface Security_TenantInfo_Response extends ApiResponse { body: Security_TenantInfo_ResponseBody; } diff --git a/api/security/updateAuditConfiguration.d.ts b/api/security/updateAuditConfiguration.d.ts index 85b537ef6..1d8b874dc 100644 --- a/api/security/updateAuditConfiguration.d.ts +++ b/api/security/updateAuditConfiguration.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_UpdateAuditConfiguration_Request = Global.Params & { +export interface Security_UpdateAuditConfiguration_Request extends Global.Params { body: Security_Common.AuditConfig; } -export type Security_UpdateAuditConfiguration_Response = ApiResponse & { +export interface Security_UpdateAuditConfiguration_Response extends ApiResponse { body: Security_UpdateAuditConfiguration_ResponseBody; } diff --git a/api/security/updateConfiguration.d.ts b/api/security/updateConfiguration.d.ts index 2abc31cb1..72d50d069 100644 --- a/api/security/updateConfiguration.d.ts +++ b/api/security/updateConfiguration.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_UpdateConfiguration_Request = Global.Params & { +export interface Security_UpdateConfiguration_Request extends Global.Params { body: Security_Common.DynamicConfig; } -export type Security_UpdateConfiguration_Response = ApiResponse & { +export interface Security_UpdateConfiguration_Response extends ApiResponse { body: Security_UpdateConfiguration_ResponseBody; } diff --git a/api/security/updateDistinguishedName.d.ts b/api/security/updateDistinguishedName.d.ts index 336df2f91..9d8cd133b 100644 --- a/api/security/updateDistinguishedName.d.ts +++ b/api/security/updateDistinguishedName.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_UpdateDistinguishedName_Request = Global.Params & { +export interface Security_UpdateDistinguishedName_Request extends Global.Params { body?: Security_Common.DistinguishedNames; cluster_name: string; } -export type Security_UpdateDistinguishedName_Response = ApiResponse & { +export interface Security_UpdateDistinguishedName_Response extends ApiResponse { body: Security_UpdateDistinguishedName_ResponseBody; } diff --git a/api/security/validate.d.ts b/api/security/validate.d.ts index d22104d39..9c676530a 100644 --- a/api/security/validate.d.ts +++ b/api/security/validate.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Security_Common from '../_types/security._common' -export type Security_Validate_Request = Global.Params & { +export interface Security_Validate_Request extends Global.Params { accept_invalid?: boolean; } -export type Security_Validate_Response = ApiResponse & { +export interface Security_Validate_Response extends ApiResponse { body: Security_Validate_ResponseBody; } diff --git a/api/security/whoAmI.d.ts b/api/security/whoAmI.d.ts index 40b8e9cd6..3a901edfe 100644 --- a/api/security/whoAmI.d.ts +++ b/api/security/whoAmI.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_WhoAmI_Request = Global.Params & Record -export type Security_WhoAmI_Response = ApiResponse & { +export interface Security_WhoAmI_Response extends ApiResponse { body: Security_WhoAmI_ResponseBody; } diff --git a/api/security/whoAmIProtected.d.ts b/api/security/whoAmIProtected.d.ts index 470741502..081056a77 100644 --- a/api/security/whoAmIProtected.d.ts +++ b/api/security/whoAmIProtected.d.ts @@ -20,7 +20,7 @@ import * as Security_Common from '../_types/security._common' export type Security_WhoAmIProtected_Request = Global.Params & Record -export type Security_WhoAmIProtected_Response = ApiResponse & { +export interface Security_WhoAmIProtected_Response extends ApiResponse { body: Security_WhoAmIProtected_ResponseBody; } diff --git a/api/sm/createPolicy.d.ts b/api/sm/createPolicy.d.ts index d252949e7..704f99f56 100644 --- a/api/sm/createPolicy.d.ts +++ b/api/sm/createPolicy.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_CreatePolicy_Request = Global.Params & { +export interface Sm_CreatePolicy_Request extends Global.Params { body?: Sm_Common.CreateUpdatePolicyRequest; policy_name: string; } -export type Sm_CreatePolicy_Response = ApiResponse & { +export interface Sm_CreatePolicy_Response extends ApiResponse { body: Sm_CreatePolicy_ResponseBody; } diff --git a/api/sm/deletePolicy.d.ts b/api/sm/deletePolicy.d.ts index 4534f08ab..f4bfc9c4b 100644 --- a/api/sm/deletePolicy.d.ts +++ b/api/sm/deletePolicy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_DeletePolicy_Request = Global.Params & { +export interface Sm_DeletePolicy_Request extends Global.Params { policy_name: string; } -export type Sm_DeletePolicy_Response = ApiResponse & { +export interface Sm_DeletePolicy_Response extends ApiResponse { body: Sm_DeletePolicy_ResponseBody; } diff --git a/api/sm/explainPolicy.d.ts b/api/sm/explainPolicy.d.ts index 2376f1475..4be207164 100644 --- a/api/sm/explainPolicy.d.ts +++ b/api/sm/explainPolicy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_ExplainPolicy_Request = Global.Params & { +export interface Sm_ExplainPolicy_Request extends Global.Params { policy_name: string; } -export type Sm_ExplainPolicy_Response = ApiResponse & { +export interface Sm_ExplainPolicy_Response extends ApiResponse { body: Sm_ExplainPolicy_ResponseBody; } diff --git a/api/sm/getPolicies.d.ts b/api/sm/getPolicies.d.ts index 6b3f6ffc2..376ff27d4 100644 --- a/api/sm/getPolicies.d.ts +++ b/api/sm/getPolicies.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_GetPolicies_Request = Global.Params & { +export interface Sm_GetPolicies_Request extends Global.Params { from?: number; queryString?: string; size?: number; @@ -26,7 +26,7 @@ export type Sm_GetPolicies_Request = Global.Params & { sortOrder?: 'asc' | 'desc'; } -export type Sm_GetPolicies_Response = ApiResponse & { +export interface Sm_GetPolicies_Response extends ApiResponse { body: Sm_GetPolicies_ResponseBody; } diff --git a/api/sm/getPolicy.d.ts b/api/sm/getPolicy.d.ts index 05663733e..cbbe0d305 100644 --- a/api/sm/getPolicy.d.ts +++ b/api/sm/getPolicy.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_GetPolicy_Request = Global.Params & { +export interface Sm_GetPolicy_Request extends Global.Params { policy_name: string; } -export type Sm_GetPolicy_Response = ApiResponse & { +export interface Sm_GetPolicy_Response extends ApiResponse { body: Sm_GetPolicy_ResponseBody; } diff --git a/api/sm/startPolicy.d.ts b/api/sm/startPolicy.d.ts index 15d9fc628..4a84e8d43 100644 --- a/api/sm/startPolicy.d.ts +++ b/api/sm/startPolicy.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Sm_StartPolicy_Request = Global.Params & { +export interface Sm_StartPolicy_Request extends Global.Params { policy_name: string; } -export type Sm_StartPolicy_Response = ApiResponse & { +export interface Sm_StartPolicy_Response extends ApiResponse { body: Sm_StartPolicy_ResponseBody; } diff --git a/api/sm/stopPolicy.d.ts b/api/sm/stopPolicy.d.ts index 2897ea8d0..ac72578ba 100644 --- a/api/sm/stopPolicy.d.ts +++ b/api/sm/stopPolicy.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Sm_StopPolicy_Request = Global.Params & { +export interface Sm_StopPolicy_Request extends Global.Params { policy_name: string; } -export type Sm_StopPolicy_Response = ApiResponse & { +export interface Sm_StopPolicy_Response extends ApiResponse { body: Sm_StopPolicy_ResponseBody; } diff --git a/api/sm/updatePolicy.d.ts b/api/sm/updatePolicy.d.ts index a8120908f..a2ac4e202 100644 --- a/api/sm/updatePolicy.d.ts +++ b/api/sm/updatePolicy.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sm_Common from '../_types/sm._common' -export type Sm_UpdatePolicy_Request = Global.Params & { +export interface Sm_UpdatePolicy_Request extends Global.Params { body?: Sm_Common.CreateUpdatePolicyRequest; if_primary_term: number; if_seq_no: number; policy_name: string; } -export type Sm_UpdatePolicy_Response = ApiResponse & { +export interface Sm_UpdatePolicy_Response extends ApiResponse { body: Sm_UpdatePolicy_ResponseBody; } diff --git a/api/snapshot/cleanupRepository.d.ts b/api/snapshot/cleanupRepository.d.ts index a18f63222..575999d80 100644 --- a/api/snapshot/cleanupRepository.d.ts +++ b/api/snapshot/cleanupRepository.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_CleanupRepository from '../_types/snapshot.cleanup_repository' -export type Snapshot_CleanupRepository_Request = Global.Params & { +export interface Snapshot_CleanupRepository_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; repository: Common.Name; timeout?: Common.Duration; } -export type Snapshot_CleanupRepository_Response = ApiResponse & { +export interface Snapshot_CleanupRepository_Response extends ApiResponse { body: Snapshot_CleanupRepository_ResponseBody; } diff --git a/api/snapshot/clone.d.ts b/api/snapshot/clone.d.ts index 6847cc547..42c26e02f 100644 --- a/api/snapshot/clone.d.ts +++ b/api/snapshot/clone.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Snapshot_Clone_Request = Global.Params & { +export interface Snapshot_Clone_Request extends Global.Params { body: Snapshot_Clone_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -31,7 +31,7 @@ export type Snapshot_Clone_RequestBody = { indices: string; } -export type Snapshot_Clone_Response = ApiResponse & { +export interface Snapshot_Clone_Response extends ApiResponse { body: Snapshot_Clone_ResponseBody; } diff --git a/api/snapshot/create.d.ts b/api/snapshot/create.d.ts index 9acd8d452..56d387288 100644 --- a/api/snapshot/create.d.ts +++ b/api/snapshot/create.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_Common from '../_types/snapshot._common' -export type Snapshot_Create_Request = Global.Params & { +export interface Snapshot_Create_Request extends Global.Params { body?: Snapshot_Create_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -37,7 +37,7 @@ export type Snapshot_Create_RequestBody = { partial?: boolean; } -export type Snapshot_Create_Response = ApiResponse & { +export interface Snapshot_Create_Response extends ApiResponse { body: Snapshot_Create_ResponseBody; } diff --git a/api/snapshot/createRepository.d.ts b/api/snapshot/createRepository.d.ts index f77968039..073c7ed68 100644 --- a/api/snapshot/createRepository.d.ts +++ b/api/snapshot/createRepository.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_Common from '../_types/snapshot._common' -export type Snapshot_CreateRepository_Request = Global.Params & { +export interface Snapshot_CreateRepository_Request extends Global.Params { body: Snapshot_CreateRepository_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -34,7 +34,7 @@ export type Snapshot_CreateRepository_RequestBody = { type: string; } -export type Snapshot_CreateRepository_Response = ApiResponse & { +export interface Snapshot_CreateRepository_Response extends ApiResponse { body: Snapshot_CreateRepository_ResponseBody; } diff --git a/api/snapshot/delete.d.ts b/api/snapshot/delete.d.ts index 0f0e2c21f..a5c2d475c 100644 --- a/api/snapshot/delete.d.ts +++ b/api/snapshot/delete.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Snapshot_Delete_Request = Global.Params & { +export interface Snapshot_Delete_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; repository: Common.Name; snapshot: Common.Name; } -export type Snapshot_Delete_Response = ApiResponse & { +export interface Snapshot_Delete_Response extends ApiResponse { body: Snapshot_Delete_ResponseBody; } diff --git a/api/snapshot/deleteRepository.d.ts b/api/snapshot/deleteRepository.d.ts index d79b3d7fb..cf2e00660 100644 --- a/api/snapshot/deleteRepository.d.ts +++ b/api/snapshot/deleteRepository.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Snapshot_DeleteRepository_Request = Global.Params & { +export interface Snapshot_DeleteRepository_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; repository: Common.Names; timeout?: Common.Duration; } -export type Snapshot_DeleteRepository_Response = ApiResponse & { +export interface Snapshot_DeleteRepository_Response extends ApiResponse { body: Snapshot_DeleteRepository_ResponseBody; } diff --git a/api/snapshot/get.d.ts b/api/snapshot/get.d.ts index 266cf65e9..697b39ff7 100644 --- a/api/snapshot/get.d.ts +++ b/api/snapshot/get.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_Common from '../_types/snapshot._common' -export type Snapshot_Get_Request = Global.Params & { +export interface Snapshot_Get_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; ignore_unavailable?: boolean; master_timeout?: Common.Duration; @@ -28,7 +28,7 @@ export type Snapshot_Get_Request = Global.Params & { verbose?: boolean; } -export type Snapshot_Get_Response = ApiResponse & { +export interface Snapshot_Get_Response extends ApiResponse { body: Snapshot_Get_ResponseBody; } diff --git a/api/snapshot/getRepository.d.ts b/api/snapshot/getRepository.d.ts index 8b80021ce..a6c42820b 100644 --- a/api/snapshot/getRepository.d.ts +++ b/api/snapshot/getRepository.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_Common from '../_types/snapshot._common' -export type Snapshot_GetRepository_Request = Global.Params & { +export interface Snapshot_GetRepository_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; local?: boolean; master_timeout?: Common.Duration; repository?: Common.Names; } -export type Snapshot_GetRepository_Response = ApiResponse & { +export interface Snapshot_GetRepository_Response extends ApiResponse { body: Snapshot_GetRepository_ResponseBody; } diff --git a/api/snapshot/restore.d.ts b/api/snapshot/restore.d.ts index ec22ffaef..94ad975cb 100644 --- a/api/snapshot/restore.d.ts +++ b/api/snapshot/restore.d.ts @@ -20,7 +20,7 @@ import * as Global from '../_types/_global' import * as Indices_Common from '../_types/indices._common' import * as Snapshot_Restore from '../_types/snapshot.restore' -export type Snapshot_Restore_Request = Global.Params & { +export interface Snapshot_Restore_Request extends Global.Params { body?: Snapshot_Restore_RequestBody; cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; @@ -45,7 +45,7 @@ export type Snapshot_Restore_RequestBody = { storage_type?: string; } -export type Snapshot_Restore_Response = ApiResponse & { +export interface Snapshot_Restore_Response extends ApiResponse { body: Snapshot_Restore_ResponseBody; } diff --git a/api/snapshot/status.d.ts b/api/snapshot/status.d.ts index 35baf3004..9aef358cd 100644 --- a/api/snapshot/status.d.ts +++ b/api/snapshot/status.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_Common from '../_types/snapshot._common' -export type Snapshot_Status_Request = Global.Params & { +export interface Snapshot_Status_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; ignore_unavailable?: boolean; master_timeout?: Common.Duration; @@ -27,7 +27,7 @@ export type Snapshot_Status_Request = Global.Params & { snapshot?: Common.Names; } -export type Snapshot_Status_Response = ApiResponse & { +export interface Snapshot_Status_Response extends ApiResponse { body: Snapshot_Status_ResponseBody; } diff --git a/api/snapshot/verifyRepository.d.ts b/api/snapshot/verifyRepository.d.ts index c1ac06091..30ab71bce 100644 --- a/api/snapshot/verifyRepository.d.ts +++ b/api/snapshot/verifyRepository.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Snapshot_VerifyRepository from '../_types/snapshot.verify_repository' -export type Snapshot_VerifyRepository_Request = Global.Params & { +export interface Snapshot_VerifyRepository_Request extends Global.Params { cluster_manager_timeout?: Common.Duration; master_timeout?: Common.Duration; repository: Common.Name; timeout?: Common.Duration; } -export type Snapshot_VerifyRepository_Response = ApiResponse & { +export interface Snapshot_VerifyRepository_Response extends ApiResponse { body: Snapshot_VerifyRepository_ResponseBody; } diff --git a/api/sql/close.d.ts b/api/sql/close.d.ts index a6fb7c26b..8ce299884 100644 --- a/api/sql/close.d.ts +++ b/api/sql/close.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Sql_Close_Request = Global.Params & { +export interface Sql_Close_Request extends Global.Params { body?: Sql_Common.SqlClose; format?: string; sanitize?: boolean; } -export type Sql_Close_Response = ApiResponse & { +export interface Sql_Close_Response extends ApiResponse { body: Sql_Close_ResponseBody; } diff --git a/api/sql/explain.d.ts b/api/sql/explain.d.ts index 2a6284270..70e58b9e5 100644 --- a/api/sql/explain.d.ts +++ b/api/sql/explain.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Sql_Explain_Request = Global.Params & { +export interface Sql_Explain_Request extends Global.Params { body?: Sql_Common.Explain; format?: string; sanitize?: boolean; } -export type Sql_Explain_Response = ApiResponse & { +export interface Sql_Explain_Response extends ApiResponse { body: Sql_Explain_ResponseBody; } diff --git a/api/sql/getStats.d.ts b/api/sql/getStats.d.ts index 95be0eb49..23494b0e5 100644 --- a/api/sql/getStats.d.ts +++ b/api/sql/getStats.d.ts @@ -17,12 +17,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Sql_GetStats_Request = Global.Params & { +export interface Sql_GetStats_Request extends Global.Params { format?: string; sanitize?: boolean; } -export type Sql_GetStats_Response = ApiResponse & { +export interface Sql_GetStats_Response extends ApiResponse { body: Sql_GetStats_ResponseBody; } diff --git a/api/sql/postStats.d.ts b/api/sql/postStats.d.ts index 10885bd14..50105f25b 100644 --- a/api/sql/postStats.d.ts +++ b/api/sql/postStats.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Sql_PostStats_Request = Global.Params & { +export interface Sql_PostStats_Request extends Global.Params { body?: Sql_Common.Stats; format?: string; sanitize?: boolean; } -export type Sql_PostStats_Response = ApiResponse & { +export interface Sql_PostStats_Response extends ApiResponse { body: Sql_PostStats_ResponseBody; } diff --git a/api/sql/query.d.ts b/api/sql/query.d.ts index c2f1d6281..8955a49e0 100644 --- a/api/sql/query.d.ts +++ b/api/sql/query.d.ts @@ -18,13 +18,13 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Sql_Query_Request = Global.Params & { +export interface Sql_Query_Request extends Global.Params { body?: Sql_Common.Query; format?: string; sanitize?: boolean; } -export type Sql_Query_Response = ApiResponse & { +export interface Sql_Query_Response extends ApiResponse { body: Sql_Query_ResponseBody; } diff --git a/api/sql/settings.d.ts b/api/sql/settings.d.ts index 3ee2e64b8..1e75074e5 100644 --- a/api/sql/settings.d.ts +++ b/api/sql/settings.d.ts @@ -18,14 +18,14 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Sql_Common from '../_types/sql._common' -export type Sql_Settings_Request = Global.Params & { +export interface Sql_Settings_Request extends Global.Params { body?: Sql_Settings_RequestBody; format?: string; } export type Sql_Settings_RequestBody = Sql_Common.SqlSettingsPlain | Sql_Common.SqlSettings -export type Sql_Settings_Response = ApiResponse & { +export interface Sql_Settings_Response extends ApiResponse { body: Sql_Settings_ResponseBody; } diff --git a/api/tasks/cancel.d.ts b/api/tasks/cancel.d.ts index 2bcab0a29..147a2140b 100644 --- a/api/tasks/cancel.d.ts +++ b/api/tasks/cancel.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Tasks_Common from '../_types/tasks._common' -export type Tasks_Cancel_Request = Global.Params & { +export interface Tasks_Cancel_Request extends Global.Params { actions?: string | string[]; nodes?: string[]; parent_task_id?: string; @@ -27,7 +27,7 @@ export type Tasks_Cancel_Request = Global.Params & { wait_for_completion?: boolean; } -export type Tasks_Cancel_Response = ApiResponse & { +export interface Tasks_Cancel_Response extends ApiResponse { body: Tasks_Cancel_ResponseBody; } diff --git a/api/tasks/get.d.ts b/api/tasks/get.d.ts index 095bbe1a3..5a1f893e7 100644 --- a/api/tasks/get.d.ts +++ b/api/tasks/get.d.ts @@ -19,13 +19,13 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Tasks_Common from '../_types/tasks._common' -export type Tasks_Get_Request = Global.Params & { +export interface Tasks_Get_Request extends Global.Params { task_id: Common.Id; timeout?: Common.Duration; wait_for_completion?: boolean; } -export type Tasks_Get_Response = ApiResponse & { +export interface Tasks_Get_Response extends ApiResponse { body: Tasks_Get_ResponseBody; } diff --git a/api/tasks/list.d.ts b/api/tasks/list.d.ts index f1ed79870..f9728c177 100644 --- a/api/tasks/list.d.ts +++ b/api/tasks/list.d.ts @@ -19,7 +19,7 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Tasks_Common from '../_types/tasks._common' -export type Tasks_List_Request = Global.Params & { +export interface Tasks_List_Request extends Global.Params { actions?: string | string[]; detailed?: boolean; group_by?: Tasks_Common.GroupBy; @@ -29,7 +29,7 @@ export type Tasks_List_Request = Global.Params & { wait_for_completion?: boolean; } -export type Tasks_List_Response = ApiResponse & { +export interface Tasks_List_Response extends ApiResponse { body: Tasks_List_ResponseBody; } diff --git a/api/transforms/delete.d.ts b/api/transforms/delete.d.ts index cb112f3ad..b84218dd3 100644 --- a/api/transforms/delete.d.ts +++ b/api/transforms/delete.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Delete_Request = Global.Params & { +export interface Transforms_Delete_Request extends Global.Params { id: Common.Id; } -export type Transforms_Delete_Response = ApiResponse & { +export interface Transforms_Delete_Response extends ApiResponse { body: Transforms_Delete_ResponseBody; } diff --git a/api/transforms/explain.d.ts b/api/transforms/explain.d.ts index 79718c7ca..c63df56d4 100644 --- a/api/transforms/explain.d.ts +++ b/api/transforms/explain.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Explain_Request = Global.Params & { +export interface Transforms_Explain_Request extends Global.Params { id: Common.Id; } -export type Transforms_Explain_Response = ApiResponse & { +export interface Transforms_Explain_Response extends ApiResponse { body: Transforms_Explain_ResponseBody; } diff --git a/api/transforms/get.d.ts b/api/transforms/get.d.ts index 0864050eb..0a8e469bf 100644 --- a/api/transforms/get.d.ts +++ b/api/transforms/get.d.ts @@ -19,11 +19,11 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Get_Request = Global.Params & { +export interface Transforms_Get_Request extends Global.Params { id: Common.Id; } -export type Transforms_Get_Response = ApiResponse & { +export interface Transforms_Get_Response extends ApiResponse { body: Transforms_Get_ResponseBody; } diff --git a/api/transforms/preview.d.ts b/api/transforms/preview.d.ts index a099c7d30..ffd0ce350 100644 --- a/api/transforms/preview.d.ts +++ b/api/transforms/preview.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Preview_Request = Global.Params & { +export interface Transforms_Preview_Request extends Global.Params { body?: Transforms_Common.TransformRequest; } -export type Transforms_Preview_Response = ApiResponse & { +export interface Transforms_Preview_Response extends ApiResponse { body: Transforms_Preview_ResponseBody; } diff --git a/api/transforms/put.d.ts b/api/transforms/put.d.ts index 37490f912..4989a7e2a 100644 --- a/api/transforms/put.d.ts +++ b/api/transforms/put.d.ts @@ -19,14 +19,14 @@ import * as Common from '../_types/_common' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Put_Request = Global.Params & { +export interface Transforms_Put_Request extends Global.Params { body?: Transforms_Common.TransformRequest; id: Common.Id; if_primary_term?: number; if_seq_no?: Common.SequenceNumber; } -export type Transforms_Put_Response = ApiResponse & { +export interface Transforms_Put_Response extends ApiResponse { body: Transforms_Put_ResponseBody; } diff --git a/api/transforms/search.d.ts b/api/transforms/search.d.ts index d78a0dd83..e185a04c3 100644 --- a/api/transforms/search.d.ts +++ b/api/transforms/search.d.ts @@ -18,7 +18,7 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Transforms_Common from '../_types/transforms._common' -export type Transforms_Search_Request = Global.Params & { +export interface Transforms_Search_Request extends Global.Params { from?: number; search?: string; size?: number; @@ -26,7 +26,7 @@ export type Transforms_Search_Request = Global.Params & { sortField?: string; } -export type Transforms_Search_Response = ApiResponse & { +export interface Transforms_Search_Response extends ApiResponse { body: Transforms_Search_ResponseBody; } diff --git a/api/transforms/start.d.ts b/api/transforms/start.d.ts index 6981c8759..093f90273 100644 --- a/api/transforms/start.d.ts +++ b/api/transforms/start.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Transforms_Start_Request = Global.Params & { +export interface Transforms_Start_Request extends Global.Params { id: Common.Id; } -export type Transforms_Start_Response = ApiResponse & { +export interface Transforms_Start_Response extends ApiResponse { body: Transforms_Start_ResponseBody; } diff --git a/api/transforms/stop.d.ts b/api/transforms/stop.d.ts index 8a2600a22..8377b7106 100644 --- a/api/transforms/stop.d.ts +++ b/api/transforms/stop.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Common from '../_types/_common' import * as Global from '../_types/_global' -export type Transforms_Stop_Request = Global.Params & { +export interface Transforms_Stop_Request extends Global.Params { id: Common.Id; } -export type Transforms_Stop_Response = ApiResponse & { +export interface Transforms_Stop_Response extends ApiResponse { body: Transforms_Stop_ResponseBody; } diff --git a/api/wlm/createQueryGroup.d.ts b/api/wlm/createQueryGroup.d.ts index 9f038009b..8ee92f578 100644 --- a/api/wlm/createQueryGroup.d.ts +++ b/api/wlm/createQueryGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Wlm_Common from '../_types/wlm._common' -export type Wlm_CreateQueryGroup_Request = Global.Params & { +export interface Wlm_CreateQueryGroup_Request extends Global.Params { body: Wlm_Common.QueryGroupCreate; } -export type Wlm_CreateQueryGroup_Response = ApiResponse & { +export interface Wlm_CreateQueryGroup_Response extends ApiResponse { body: Wlm_CreateQueryGroup_ResponseBody; } diff --git a/api/wlm/deleteQueryGroup.d.ts b/api/wlm/deleteQueryGroup.d.ts index bb31cca21..1ab88d5b3 100644 --- a/api/wlm/deleteQueryGroup.d.ts +++ b/api/wlm/deleteQueryGroup.d.ts @@ -17,11 +17,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' -export type Wlm_DeleteQueryGroup_Request = Global.Params & { +export interface Wlm_DeleteQueryGroup_Request extends Global.Params { name: string; } -export type Wlm_DeleteQueryGroup_Response = ApiResponse & { +export interface Wlm_DeleteQueryGroup_Response extends ApiResponse { body: Wlm_DeleteQueryGroup_ResponseBody; } diff --git a/api/wlm/getQueryGroup.d.ts b/api/wlm/getQueryGroup.d.ts index a285dc760..d58bf1174 100644 --- a/api/wlm/getQueryGroup.d.ts +++ b/api/wlm/getQueryGroup.d.ts @@ -18,11 +18,11 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Wlm_Common from '../_types/wlm._common' -export type Wlm_GetQueryGroup_Request = Global.Params & { +export interface Wlm_GetQueryGroup_Request extends Global.Params { name?: string; } -export type Wlm_GetQueryGroup_Response = ApiResponse & { +export interface Wlm_GetQueryGroup_Response extends ApiResponse { body: Wlm_GetQueryGroup_ResponseBody; } diff --git a/api/wlm/updateQueryGroup.d.ts b/api/wlm/updateQueryGroup.d.ts index 87c97b7c9..5df2a2d80 100644 --- a/api/wlm/updateQueryGroup.d.ts +++ b/api/wlm/updateQueryGroup.d.ts @@ -18,12 +18,12 @@ import { ApiResponse } from '../../lib/Transport' import * as Global from '../_types/_global' import * as Wlm_Common from '../_types/wlm._common' -export type Wlm_UpdateQueryGroup_Request = Global.Params & { +export interface Wlm_UpdateQueryGroup_Request extends Global.Params { body: Wlm_Common.QueryGroupUpdate; name: string; } -export type Wlm_UpdateQueryGroup_Response = ApiResponse & { +export interface Wlm_UpdateQueryGroup_Response extends ApiResponse { body: Wlm_UpdateQueryGroup_ResponseBody; } diff --git a/api_generator/src/renderers/render_types/TypesFileRenderder.ts b/api_generator/src/renderers/render_types/TypesFileRenderder.ts index 944de2f65..48b1cf718 100644 --- a/api_generator/src/renderers/render_types/TypesFileRenderder.ts +++ b/api_generator/src/renderers/render_types/TypesFileRenderder.ts @@ -33,7 +33,11 @@ export default class TypesFileRenderder extends BaseRenderer { const con = this._container return { is_function: con.is_function, - types: _.entries(con.schemas).map(([name, schema]) => ({ name, definition: this.#render_schema(schema) })), + types: _.entries(con.schemas).map(([name, schema]) => { + const definition = this.#render_schema(schema) + const is_interface = definition.startsWith('extends') + return { name, definition, is_interface } + }), imports: Array.from(con.referenced_containers) .sort((a, b) => a.import_name.localeCompare(b.import_name)) .map(container => { @@ -87,7 +91,10 @@ export default class TypesFileRenderder extends BaseRenderer { const named_schemas_render = named_schemas.map(schema => this.#render_schema(schema)).join(' & ') if (named_schemas.length === 0) return inline_schemas_render - if (inline_schemas_render.includes('{')) return `${named_schemas_render} & ${inline_schemas_render}` + if (inline_schemas_render.includes('{')) { + if (this._container.is_function) return `extends ${named_schemas_render} ${inline_schemas_render}` + else return `${named_schemas_render} & ${inline_schemas_render}` + } return `${named_schemas_render} & ${this.#render_simple_obj(compound_inline)}` } diff --git a/api_generator/src/renderers/templates/type.containers.mustache b/api_generator/src/renderers/templates/type.containers.mustache index 5abfbf7ff..2cea9575f 100644 --- a/api_generator/src/renderers/templates/type.containers.mustache +++ b/api_generator/src/renderers/templates/type.containers.mustache @@ -9,6 +9,11 @@ import * as {{{name}}} from '{{{path}}}' {{/imports}} {{#types}} +{{#is_interface}} +export interface {{{name}}} {{{definition}}} +{{/is_interface}} +{{^is_interface}} export type {{{name}}} = {{{definition}}} +{{/is_interface}} {{/types}} \ No newline at end of file diff --git a/package.json b/package.json index a2be1a3df..482320192 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "LICENSE.txt" ], "homepage": "https://www.opensearch.org/", - "version": "3.0.0-beta.8", + "version": "3.0.0-beta.9", "versionCanary": "7.10.0-canary.6", "keywords": [ "opensearch",