From 8b094a7f9d4a3f09ad7537116d37ce23c5e52007 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 9 Dec 2025 16:57:33 +0400 Subject: [PATCH] Add media types (#5779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add media types to specification They come from the rest-api-spec. * Support mediaType * Fix lint * Fix compiler lint * Use string values for enums * Take advantage of the AST and use enums text values * Fix linter * Run make spec-format-fix * Add recursive enum parsing to handle meta members * Add const to highlight enum target name * Remove support for composite enums * Add more media types --------- Co-authored-by: Laurent Saint-Félix (cherry picked from commit 8260d402ec3ef0dfdf86a88736c190016f1adbad) # Conflicts: # output/schema/schema.json # output/schema/validation-errors.json # specification/_global/count/CountRequest.ts # specification/_global/field_caps/FieldCapabilitiesRequest.ts # specification/_global/msearch/MultiSearchRequest.ts # specification/_global/msearch_template/MultiSearchTemplateRequest.ts # specification/_global/open_point_in_time/OpenPointInTimeRequest.ts # specification/_global/rank_eval/RankEvalRequest.ts # specification/_global/render_search_template/RenderSearchTemplateRequest.ts # specification/_global/search/SearchRequest.ts # specification/_global/search_mvt/SearchMvtRequest.ts # specification/_global/search_template/SearchTemplateRequest.ts # specification/_global/terms_enum/TermsEnumRequest.ts # specification/_types/common.ts # specification/async_search/submit/AsyncSearchSubmitRequest.ts # specification/cat/aliases/CatAliasesRequest.ts # specification/cat/circuit_breaker/CatCircuitBreakerRequest.ts # specification/cat/count/CatCountRequest.ts # specification/cat/health/CatHealthRequest.ts # specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts # specification/cluster/reroute/ClusterRerouteRequest.ts # specification/cluster/state/ClusterStateRequest.ts # specification/connector/get/ConnectorGetRequest.ts # specification/eql/search/EqlSearchRequest.ts # specification/esql/async_query/AsyncQueryRequest.ts # specification/esql/get_query/GetQueryRequest.ts # specification/esql/list_queries/ListQueriesRequest.ts # specification/esql/query/QueryRequest.ts # specification/ilm/migrate_to_data_tiers/Request.ts # specification/indices/add_block/IndicesAddBlockRequest.ts # specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts # specification/indices/delete_sample_configuration/IndicesDeleteSampleConfigurationRequest.ts # specification/indices/exists_alias/IndicesExistsAliasRequest.ts # specification/indices/get_alias/IndicesGetAliasRequest.ts # specification/indices/get_all_sample_configuration/IndicesGetAllSampleConfigurationRequest.ts # specification/indices/get_data_stream_mappings/IndicesGetDataStreamMappingsRequest.ts # specification/indices/get_sample/GetRandomSampleRequest.ts # specification/indices/get_sample_configuration/IndicesGetSampleConfigurationRequest.ts # specification/indices/get_sample_stats/GetRandomSampleStatsRequest.ts # specification/indices/migrate_reindex/MigrateReindexRequest.ts # specification/indices/put_data_stream_mappings/IndicesPutDataStreamMappingsRequest.ts # specification/indices/put_sample_configuration/IndicesPutSampleConfigurationRequest.ts # specification/indices/resolve_index/ResolveIndexRequest.ts # specification/indices/stats/IndicesStatsRequest.ts # specification/indices/unfreeze/IndicesUnfreezeRequest.ts # specification/indices/unfreeze/IndicesUnfreezeResponse.ts # specification/inference/put_ai21/PutAi21Request.ts # specification/inference/put_contextualai/PutContextualAiRequest.ts # specification/inference/put_llama/PutLlamaRequest.ts # specification/inference/put_openshift_ai/PutOpenShiftAiRequest.ts # specification/inference/rerank/RerankRequest.ts # specification/ingest/put_pipeline/PutPipelineRequest.ts # specification/nodes/info/NodesInfoRequest.ts # specification/nodes/stats/NodesStatsRequest.ts # specification/nodes/usage/NodesUsageRequest.ts # specification/project/tags/TagsRequest.ts # specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts # specification/snapshot/delete/SnapshotDeleteRequest.ts # specification/sql/query/QuerySqlRequest.ts # specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts # validator/rules/no-inline-unions.js # validator/test/no-inline-unions.test.js --- compiler/src/index.ts | 2 - compiler/src/model/build-model.ts | 17 +- compiler/src/model/utils.ts | 21 + compiler/src/steps/add-content-type.ts | 44 - output/schema/schema.json | 1200 ++++++++--------- output/schema/validation-errors.json | 1 + specification/_global/bulk/BulkRequest.ts | 3 + .../capabilities/CapabilitiesRequest.ts | 2 + .../clear_scroll/ClearScrollRequest.ts | 4 +- .../ClosePointInTimeRequest.ts | 4 +- specification/_global/count/CountRequest.ts | 4 +- specification/_global/create/CreateRequest.ts | 3 + specification/_global/delete/DeleteRequest.ts | 2 + .../delete_by_query/DeleteByQueryRequest.ts | 3 + .../DeleteByQueryRethrottleRequest.ts | 3 +- .../delete_script/DeleteScriptRequest.ts | 3 +- .../_global/exists/DocumentExistsRequest.ts | 2 + .../exists_source/SourceExistsRequest.ts | 2 + .../_global/explain/ExplainRequest.ts | 4 +- .../field_caps/FieldCapabilitiesRequest.ts | 4 +- specification/_global/get/GetRequest.ts | 2 + .../_global/get_script/GetScriptRequest.ts | 3 +- .../GetScriptContextRequest.ts | 2 + .../GetScriptLanguagesRequest.ts | 2 + .../_global/get_source/SourceRequest.ts | 2 + .../_global/health_report/Request.ts | 2 + specification/_global/index/IndexRequest.ts | 3 + .../_global/info/RootNodeInfoRequest.ts | 2 + .../_global/knn_search/KnnSearchRequest.ts | 4 +- specification/_global/mget/MultiGetRequest.ts | 4 +- .../_global/msearch/MultiSearchRequest.ts | 10 +- .../MultiSearchTemplateRequest.ts | 4 +- .../mtermvectors/MultiTermVectorsRequest.ts | 3 + .../OpenPointInTimeRequest.ts | 4 +- specification/_global/ping/PingRequest.ts | 2 + .../_global/put_script/PutScriptRequest.ts | 4 +- .../_global/rank_eval/RankEvalRequest.ts | 4 +- .../_global/reindex/ReindexRequest.ts | 9 +- .../ReindexRethrottleRequest.ts | 3 +- .../RenderSearchTemplateRequest.ts | 4 +- .../ExecutePainlessScriptRequest.ts | 3 + specification/_global/scroll/ScrollRequest.ts | 4 +- specification/_global/search/SearchRequest.ts | 3 + .../_global/search_mvt/SearchMvtRequest.ts | 4 +- .../search_shards/SearchShardsRequest.ts | 3 +- .../search_template/SearchTemplateRequest.ts | 3 + .../_global/terms_enum/TermsEnumRequest.ts | 4 +- .../_global/termvectors/TermVectorsRequest.ts | 3 + specification/_global/update/UpdateRequest.ts | 3 + .../update_by_query/UpdateByQueryRequest.ts | 3 + .../UpdateByQueryRethrottleRequest.ts | 3 +- .../InternalDeleteDesiredBalanceRequest.ts | 2 + .../InternalDeleteDesiredNodesRequest.ts | 2 + .../InternalGetDesiredBalanceRequest.ts | 2 + .../InternalGetDesiredNodesRequest.ts | 2 + .../InternalPrevalidateNodeRemovalRequest.ts | 2 + .../InternalUpdateDesiredNodesRequest.ts | 3 + specification/_types/common.ts | 13 + .../delete/AsyncSearchDeleteRequest.ts | 3 +- .../async_search/get/AsyncSearchGetRequest.ts | 3 +- .../status/AsyncSearchStatusRequest.ts | 3 +- .../submit/AsyncSearchSubmitRequest.ts | 3 + .../DeleteAutoscalingPolicyRequest.ts | 3 +- .../GetAutoscalingCapacityRequest.ts | 2 + .../GetAutoscalingPolicyRequest.ts | 3 +- .../PutAutoscalingPolicyRequest.ts | 4 +- .../cat/aliases/CatAliasesRequest.ts | 3 +- .../cat/allocation/CatAllocationRequest.ts | 3 +- .../CatComponentTemplatesRequest.ts | 3 +- specification/cat/count/CatCountRequest.ts | 3 +- .../cat/fielddata/CatFielddataRequest.ts | 3 +- specification/cat/health/CatHealthRequest.ts | 3 +- specification/cat/help/CatHelpRequest.ts | 3 + .../cat/indices/CatIndicesRequest.ts | 9 +- specification/cat/master/CatMasterRequest.ts | 3 +- .../CatDataFrameAnalyticsRequest.ts | 3 +- .../cat/ml_datafeeds/CatDatafeedsRequest.ts | 3 +- specification/cat/ml_jobs/CatJobsRequest.ts | 3 +- .../CatTrainedModelsRequest.ts | 3 +- .../cat/nodeattrs/CatNodeAttributesRequest.ts | 3 +- specification/cat/nodes/CatNodesRequest.ts | 3 +- .../pending_tasks/CatPendingTasksRequest.ts | 3 +- .../cat/plugins/CatPluginsRequest.ts | 3 +- .../cat/recovery/CatRecoveryRequest.ts | 3 +- .../repositories/CatRepositoriesRequest.ts | 3 +- .../cat/segments/CatSegmentsRequest.ts | 3 +- specification/cat/shards/CatShardsRequest.ts | 3 +- .../cat/snapshots/CatSnapshotsRequest.ts | 3 +- specification/cat/tasks/CatTasksRequest.ts | 3 +- .../cat/templates/CatTemplatesRequest.ts | 3 +- .../cat/thread_pool/CatThreadPoolRequest.ts | 3 +- .../cat/transforms/CatTransformsRequest.ts | 3 +- .../DeleteAutoFollowPatternRequest.ts | 3 +- .../ccr/follow/CreateFollowIndexRequest.ts | 9 +- .../ccr/follow_info/FollowInfoRequest.ts | 3 +- .../follow_stats/FollowIndexStatsRequest.ts | 3 +- .../ForgetFollowerIndexRequest.ts | 4 +- .../GetAutoFollowPatternRequest.ts | 3 +- .../PauseAutoFollowPatternRequest.ts | 3 +- .../pause_follow/PauseFollowIndexRequest.ts | 3 +- .../PutAutoFollowPatternRequest.ts | 10 +- .../ResumeAutoFollowPatternRequest.ts | 3 +- .../resume_follow/ResumeFollowIndexRequest.ts | 4 +- specification/ccr/stats/CcrStatsRequest.ts | 2 + .../ccr/unfollow/UnfollowIndexRequest.ts | 3 +- .../ClusterAllocationExplainRequest.ts | 4 +- .../ClusterDeleteComponentTemplateRequest.ts | 3 +- ...sterDeleteVotingConfigExclusionsRequest.ts | 2 + .../ClusterComponentTemplateExistsRequest.ts | 3 +- .../ClusterGetComponentTemplateRequest.ts | 3 +- .../get_settings/ClusterGetSettingsRequest.ts | 2 + .../cluster/health/ClusterHealthRequest.ts | 2 + .../cluster/info/ClusterInfoRequest.ts | 3 +- .../ClusterPendingTasksRequest.ts | 2 + ...lusterPostVotingConfigExclusionsRequest.ts | 3 +- .../ClusterPutComponentTemplateRequest.ts | 4 +- .../put_settings/ClusterPutSettingsRequest.ts | 3 + .../remote_info/ClusterRemoteInfoRequest.ts | 2 + .../cluster/reroute/ClusterRerouteRequest.ts | 4 +- .../cluster/state/ClusterStateRequest.ts | 2 + .../cluster/stats/ClusterStatsRequest.ts | 3 +- .../check_in/ConnectorCheckInRequest.ts | 3 +- .../delete/ConnectorDeleteRequest.ts | 3 +- .../connector/get/ConnectorGetRequest.ts | 3 +- .../ConnectorUpdateLastSyncRequest.ts | 4 +- .../connector/list/ConnectorListRequest.ts | 3 +- .../connector/post/ConnectorPostRequest.ts | 4 +- .../connector/put/ConnectorPutRequest.ts | 4 +- .../ConnectorSecretDeleteRequest.ts | 2 + .../secret_get/ConnectorSecretGetRequest.ts | 2 + .../secret_post/ConnectorSecretPostRequest.ts | 2 + .../secret_put/ConnectorSecretPutRequest.ts | 2 + .../sync_job_cancel/SyncJobCancelRequest.ts | 3 +- .../SyncJobCheckInRequest.ts | 3 +- .../sync_job_claim/SyncJobClaimRequest.ts | 4 +- .../sync_job_delete/SyncJobDeleteRequest.ts | 3 +- .../sync_job_error/SyncJobErrorRequest.ts | 4 +- .../sync_job_get/SyncJobGetRequest.ts | 3 +- .../sync_job_list/SyncJobListRequest.ts | 3 +- .../sync_job_post/SyncJobPostRequest.ts | 4 +- .../SyncJobUpdateStatsRequest.ts | 4 +- .../ConnectorUpdateActiveFilteringRequest.ts | 4 +- .../ConnectorUpdateAPIKeyIDRequest.ts | 4 +- .../ConnectorUpdateConfigurationRequest.ts | 4 +- .../ConnectorUpdateErrorRequest.ts | 4 +- .../ConnectorUpdateFeaturesRequest.ts | 4 +- .../ConnectorUpdateFilteringRequest.ts | 4 +- ...nnectorUpdateFilteringValidationRequest.ts | 4 +- .../ConnectorUpdateIndexNameRequest.ts | 4 +- .../update_name/ConnectorUpdateNameRequest.ts | 4 +- .../ConnectorUpdateNativeRequest.ts | 4 +- .../ConnectorUpdatePipelineRequest.ts | 4 +- .../ConnectorUpdateSchedulingRequest.ts | 4 +- .../ConnectorUpdateServiceTypeRequest.ts | 4 +- .../ConnectorUpdateStatusRequest.ts | 4 +- .../DeleteDanglingIndexRequest.ts | 3 +- .../ImportDanglingIndexRequest.ts | 3 +- .../ListDanglingIndicesRequest.ts | 2 + .../DeleteEnrichPolicyRequest.ts | 3 +- .../ExecuteEnrichPolicyRequest.ts | 3 +- .../get_policy/GetEnrichPolicyRequest.ts | 3 +- .../put_policy/PutEnrichPolicyRequest.ts | 4 +- .../enrich/stats/EnrichStatsRequest.ts | 2 + specification/eql/delete/EqlDeleteRequest.ts | 3 +- specification/eql/get/EqlGetRequest.ts | 3 +- .../eql/get_status/EqlGetStatusRequest.ts | 3 +- specification/eql/search/EqlSearchRequest.ts | 4 +- .../esql/async_query/AsyncQueryRequest.ts | 4 +- .../AsyncQueryDeleteRequest.ts | 3 +- .../async_query_get/AsyncQueryGetRequest.ts | 3 +- .../async_query_stop/AsyncQueryStopRequest.ts | 3 +- specification/esql/query/QueryRequest.ts | 4 +- .../get_features/GetFeaturesRequest.ts | 2 + .../reset_features/ResetFeaturesRequest.ts | 2 + .../delete_secret/FleetDeleteSecretRequest.ts | 2 + .../fleet/get_secret/FleetGetSecretRequest.ts | 2 + .../GlobalCheckpointsRequest.ts | 4 +- .../fleet/msearch/MultiSearchRequest.ts | 3 + .../post_secret/FleetPostSecretRequest.ts | 2 + specification/fleet/search/SearchRequest.ts | 3 + .../graph/explore/GraphExploreRequest.ts | 4 +- .../DeleteLifecycleRequest.ts | 3 +- .../ExplainLifecycleRequest.ts | 3 +- .../ilm/get_lifecycle/GetLifecycleRequest.ts | 3 +- .../ilm/get_status/GetIlmStatusRequest.ts | 2 + .../ilm/migrate_to_data_tiers/Request.ts | 3 + .../ilm/move_to_step/MoveToStepRequest.ts | 4 +- .../ilm/put_lifecycle/PutLifecycleRequest.ts | 4 +- .../ilm/remove_policy/RemovePolicyRequest.ts | 3 +- specification/ilm/retry/RetryIlmRequest.ts | 3 +- specification/ilm/start/StartIlmRequest.ts | 2 + specification/ilm/stop/StopIlmRequest.ts | 2 + .../add_block/IndicesAddBlockRequest.ts | 3 +- .../indices/analyze/IndicesAnalyzeRequest.ts | 4 +- .../MigrateCancelReindexRequest.ts | 4 +- .../clear_cache/IndicesClearCacheRequest.ts | 3 +- .../indices/clone/IndicesCloneRequest.ts | 4 +- .../indices/close/CloseIndexRequest.ts | 8 +- .../indices/create/IndicesCreateRequest.ts | 4 +- .../IndicesCreateDataStreamRequest.ts | 3 +- .../create_from/MigrateCreateFromRequest.ts | 4 +- .../IndicesDataStreamsStatsRequest.ts | 3 +- .../indices/delete/IndicesDeleteRequest.ts | 3 +- .../delete_alias/IndicesDeleteAliasRequest.ts | 3 +- .../IndicesDeleteDataLifecycleRequest.ts | 3 +- .../IndicesDeleteDataStreamRequest.ts | 3 +- .../IndicesDeleteDataStreamOptionsRequest.ts | 3 +- .../IndicesDeleteIndexTemplateRequest.ts | 3 +- .../IndicesDeleteTemplateRequest.ts | 3 +- .../disk_usage/IndicesDiskUsageRequest.ts | 3 +- specification/indices/downsample/Request.ts | 4 +- .../indices/exists/IndicesExistsRequest.ts | 3 +- .../exists_alias/IndicesExistsAliasRequest.ts | 3 +- .../IndicesExistsIndexTemplateRequest.ts | 3 +- .../IndicesExistsTemplateRequest.ts | 3 +- .../IndicesExplainDataLifecycleRequest.ts | 3 +- .../IndicesFieldUsageStatsRequest.ts | 3 +- .../indices/flush/IndicesFlushRequest.ts | 3 +- .../forcemerge/IndicesForceMergeRequest.ts | 3 +- .../indices/get/IndicesGetRequest.ts | 3 +- .../get_alias/IndicesGetAliasRequest.ts | 3 +- .../IndicesGetDataLifecycleRequest.ts | 3 +- .../IndicesGetDataLifecycleStatsRequest.ts | 2 + .../IndicesGetDataStreamRequest.ts | 3 +- .../IndicesGetDataStreamOptionsRequest.ts | 3 +- .../IndicesGetDataStreamSettingsRequest.ts | 3 +- .../IndicesGetFieldMappingRequest.ts | 3 +- .../IndicesGetIndexTemplateRequest.ts | 3 +- .../get_mapping/IndicesGetMappingRequest.ts | 3 +- .../MigrateGetReindexStatusRequest.ts | 4 +- .../get_settings/IndicesGetSettingsRequest.ts | 3 +- .../get_template/IndicesGetTemplateRequest.ts | 3 +- .../migrate_reindex/MigrateReindexRequest.ts | 4 +- .../IndicesMigrateToDataStreamRequest.ts | 3 +- .../IndicesModifyDataStreamRequest.ts | 3 + .../indices/open/IndicesOpenRequest.ts | 8 +- .../IndicesPromoteDataStreamRequest.ts | 3 +- .../put_alias/IndicesPutAliasRequest.ts | 4 +- .../IndicesPutDataLifecycleRequest.ts | 4 +- .../IndicesPutDataStreamOptionsRequest.ts | 4 +- .../IndicesPutDataStreamSettingsRequest.ts | 3 +- .../IndicesPutIndexTemplateRequest.ts | 3 + .../put_mapping/IndicesPutMappingRequest.ts | 3 + .../put_settings/IndicesPutSettingsRequest.ts | 4 +- .../put_template/IndicesPutTemplateRequest.ts | 4 +- .../recovery/IndicesRecoveryRequest.ts | 3 +- .../indices/refresh/IndicesRefreshRequest.ts | 3 +- .../ReloadSearchAnalyzersRequest.ts | 3 +- .../resolve_cluster/ResolveClusterRequest.ts | 3 +- .../resolve_index/ResolveIndexRequest.ts | 3 +- .../rollover/IndicesRolloverRequest.ts | 9 +- .../segments/IndicesSegmentsRequest.ts | 3 +- .../shard_stores/IndicesShardStoresRequest.ts | 3 +- .../indices/shrink/IndicesShrinkRequest.ts | 4 +- .../IndicesSimulateIndexTemplateRequest.ts | 4 +- .../IndicesSimulateTemplateRequest.ts | 10 +- .../indices/split/IndicesSplitRequest.ts | 4 +- .../indices/stats/IndicesStatsRequest.ts | 2 + .../unfreeze/IndicesUnfreezeRequest.ts | 3 +- .../IndicesUpdateAliasesRequest.ts | 3 + .../IndicesValidateQueryRequest.ts | 4 +- .../chat_completion_unified/UnifiedRequest.ts | 4 +- .../inference/completion/CompletionRequest.ts | 4 +- .../inference/delete/DeleteRequest.ts | 3 +- specification/inference/get/GetRequest.ts | 3 +- .../inference/inference/InferenceRequest.ts | 4 +- specification/inference/put/PutRequest.ts | 4 +- .../PutAlibabaCloudRequest.ts | 4 +- .../PutAmazonBedrockRequest.ts | 4 +- .../PutAmazonSageMakerRequest.ts | 4 +- .../put_anthropic/PutAnthropicRequest.ts | 4 +- .../PutAzureAiStudioRequest.ts | 4 +- .../put_azureopenai/PutAzureOpenAiRequest.ts | 4 +- .../inference/put_cohere/PutCohereRequest.ts | 4 +- .../inference/put_custom/PutCustomRequest.ts | 4 +- .../put_deepseek/PutDeepSeekRequest.ts | 4 +- .../PutElasticsearchRequest.ts | 4 +- .../inference/put_elser/PutElserRequest.ts | 4 +- .../PutGoogleAiStudioRequest.ts | 4 +- .../PutGoogleVertexAiRequest.ts | 4 +- .../put_hugging_face/PutHuggingFaceRequest.ts | 4 +- .../inference/put_jinaai/PutJinaAiRequest.ts | 4 +- .../put_mistral/PutMistralRequest.ts | 4 +- .../inference/put_openai/PutOpenAiRequest.ts | 4 +- .../put_voyageai/PutVoyageAIRequest.ts | 4 +- .../put_watsonx/PutWatsonxRequest.ts | 4 +- .../inference/rerank/RerankRequest.ts | 4 +- .../SparseEmbeddingRequest.ts | 4 +- .../StreamInferenceRequest.ts | 4 +- .../text_embedding/TextEmbeddingRequest.ts | 4 +- .../update/UpdateInferenceRequest.ts | 4 +- .../DeleteGeoipDatabaseRequest.ts | 3 +- .../DeleteIpLocationDatabaseRequest.ts | 3 +- .../delete_pipeline/DeletePipelineRequest.ts | 3 +- .../geo_ip_stats/IngestGeoIpStatsRequest.ts | 2 + .../GetGeoipDatabaseRequest.ts | 3 +- .../GetIpLocationDatabaseRequest.ts | 3 +- .../ingest/get_pipeline/GetPipelineRequest.ts | 3 +- .../GrokProcessorPatternsRequest.ts | 2 + .../PutGeoipDatabaseRequest.ts | 4 +- .../PutIpLocationDatabaseRequest.ts | 4 +- .../ingest/put_pipeline/PutPipelineRequest.ts | 4 +- .../simulate/SimulatePipelineRequest.ts | 4 +- .../license/delete/DeleteLicenseRequest.ts | 2 + .../license/get/GetLicenseRequest.ts | 2 + .../GetBasicLicenseStatusRequest.ts | 2 + .../GetTrialLicenseStatusRequest.ts | 2 + .../license/post/PostLicenseRequest.ts | 3 + .../StartBasicLicenseRequest.ts | 2 + .../StartTrialLicenseRequest.ts | 2 + .../LogstashDeletePipelineRequest.ts | 3 +- .../LogstashGetPipelineRequest.ts | 3 +- .../LogstashPutPipelineRequest.ts | 4 +- .../deprecations/DeprecationInfoRequest.ts | 3 +- .../GetFeatureUpgradeStatusRequest.ts | 2 + .../PostFeatureUpgradeRequest.ts | 2 + ...ClearTrainedModelDeploymentCacheRequest.ts | 4 +- .../ml/close_job/MlCloseJobRequest.ts | 4 +- .../MlDeleteCalendarRequest.ts | 3 +- .../MlDeleteCalendarEventRequest.ts | 3 +- .../MlDeleteCalendarJobRequest.ts | 3 +- .../MlDeleteDataFrameAnalyticsRequest.ts | 3 +- .../MlDeleteDatafeedRequest.ts | 3 +- .../MlDeleteExpiredDataRequest.ts | 4 +- .../ml/delete_filter/MlDeleteFilterRequest.ts | 3 +- .../MlDeleteForecastRequest.ts | 3 +- .../ml/delete_job/MlDeleteJobRequest.ts | 3 +- .../MlDeleteModelSnapshotRequest.ts | 3 +- .../MlDeleteTrainedModelRequest.ts | 3 +- .../MlDeleteTrainedModelAliasRequest.ts | 4 +- .../MlEstimateModelMemoryRequest.ts | 4 +- .../MlEvaluateDataFrameRequest.ts | 4 +- .../MlExplainDataFrameAnalyticsRequest.ts | 4 +- .../ml/flush_job/MlFlushJobRequest.ts | 4 +- .../ml/forecast/MlForecastJobRequest.ts | 4 +- .../ml/get_buckets/MlGetBucketsRequest.ts | 4 +- .../MlGetCalendarEventsRequest.ts | 3 +- .../ml/get_calendars/MlGetCalendarsRequest.ts | 4 +- .../get_categories/MlGetCategoriesRequest.ts | 4 +- .../MlGetDataFrameAnalyticsRequest.ts | 3 +- .../MlGetDataFrameAnalyticsStatsRequest.ts | 3 +- .../MlGetDatafeedStatsRequest.ts | 3 +- .../ml/get_datafeeds/MlGetDatafeedsRequest.ts | 3 +- .../ml/get_filters/MlGetFiltersRequest.ts | 3 +- .../MlGetInfluencersRequest.ts | 4 +- .../ml/get_job_stats/MlGetJobStatsRequest.ts | 3 +- specification/ml/get_jobs/MlGetJobsRequest.ts | 3 +- .../MlGetMemoryStatsRequest.ts | 3 +- .../MlGetModelSnapshotUpgradeStatsRequest.ts | 3 +- .../MlGetModelSnapshotsRequest.ts | 4 +- .../MlGetOverallBucketsRequest.ts | 4 +- .../get_records/MlGetAnomalyRecordsRequest.ts | 4 +- .../MlGetTrainedModelRequest.ts | 3 +- .../MlGetTrainedModelStatsRequest.ts | 3 +- .../MlInferTrainedModelRequest.ts | 4 +- specification/ml/info/MlInfoRequest.ts | 2 + specification/ml/open_job/MlOpenJobRequest.ts | 4 +- .../MlPostCalendarEventsRequest.ts | 4 +- .../ml/post_data/MlPostJobDataRequest.ts | 4 +- .../MlPreviewDataFrameAnalyticsRequest.ts | 4 +- .../MlPreviewDatafeedRequest.ts | 4 +- .../ml/put_calendar/MlPutCalendarRequest.ts | 4 +- .../MlPutCalendarJobRequest.ts | 3 +- .../MlPutDataFrameAnalyticsRequest.ts | 10 +- .../ml/put_datafeed/MlPutDatafeedRequest.ts | 5 +- .../ml/put_filter/MlPutFilterRequest.ts | 4 +- specification/ml/put_job/MlPutJobRequest.ts | 4 +- .../MlPutTrainedModelRequest.ts | 4 +- .../MlPutTrainedModelAliasRequest.ts | 4 +- .../MlPutTrainedModelDefinitionPartRequest.ts | 4 +- .../MlPutTrainedModelVocabularyRequest.ts | 4 +- .../ml/reset_job/MlResetJobRequest.ts | 3 +- .../MlRevertModelSnapshotRequest.ts | 4 +- .../MlSetUpgradeModeRequest.ts | 2 + .../MlStartDataFrameAnalyticsRequest.ts | 4 +- .../start_datafeed/MlStartDatafeedRequest.ts | 4 +- .../MlStartTrainedModelDeploymentRequest.ts | 4 +- .../MlStopDataFrameAnalyticsRequest.ts | 4 +- .../ml/stop_datafeed/MlStopDatafeedRequest.ts | 4 +- .../MlStopTrainedModelDeploymentRequest.ts | 4 +- .../MlUpdateDataFrameAnalyticsRequest.ts | 4 +- .../MlUpdateDatafeedRequest.ts | 4 +- .../ml/update_filter/MlUpdateFilterRequest.ts | 4 +- .../ml/update_job/MlUpdateJobRequest.ts | 4 +- .../MlUpdateModelSnapshotRequest.ts | 4 +- .../MlUpdateTrainedModelDeploymentRequest.ts | 4 +- .../MlUpgradeJobSnapshotRequest.ts | 3 +- .../ml/validate/MlValidateJobRequest.ts | 4 +- .../MlValidateDetectorRequest.ts | 3 + .../monitoring/bulk/BulkMonitoringRequest.ts | 3 + ...ClearRepositoriesMeteringArchiveRequest.ts | 3 +- .../GetRepositoriesMeteringInfoRequest.ts | 3 +- .../hot_threads/NodesHotThreadsRequest.ts | 3 +- specification/nodes/info/NodesInfoRequest.ts | 3 +- .../ReloadSecureSettingsRequest.ts | 4 +- .../nodes/stats/NodesStatsRequest.ts | 3 +- .../nodes/usage/NodesUsageRequest.ts | 3 +- .../flamegraph/ProfilingFlamegraphRequest.ts | 3 + .../ProfilingStacktracesRequest.ts | 3 + .../status/ProfilingStatusRequest.ts | 2 + .../ProfilingTopnFunctionsRequest.ts | 4 + .../delete_rule/QueryRuleDeleteRequest.ts | 3 +- .../QueryRulesetDeleteRequest.ts | 3 +- .../get_rule/QueryRuleGetRequest.ts | 3 +- .../get_ruleset/QueryRulesetGetRequest.ts | 3 +- .../list_rulesets/QueryRulesetListRequest.ts | 2 + .../put_rule/QueryRulePutRequest.ts | 4 +- .../put_ruleset/QueryRulesetPutRequest.ts | 4 +- .../test/QueryRulesetTestRequest.ts | 4 +- .../delete_job/DeleteRollupJobRequest.ts | 3 +- .../rollup/get_jobs/GetRollupJobRequest.ts | 3 +- .../GetRollupCapabilitiesRequest.ts | 3 +- .../GetRollupIndexCapabilitiesRequest.ts | 3 +- .../rollup/put_job/CreateRollupJobRequest.ts | 4 +- .../rollup_search/RollupSearchRequest.ts | 4 +- .../rollup/start_job/StartRollupJobRequest.ts | 3 +- .../rollup/stop_job/StopRollupJobRequest.ts | 3 +- .../delete/SearchApplicationsDeleteRequest.ts | 3 +- .../BehavioralAnalyticsDeleteRequest.ts | 3 +- .../get/SearchApplicationsGetRequest.ts | 3 +- .../BehavioralAnalyticsGetRequest.ts | 3 +- .../list/SearchApplicationsListRequest.ts | 2 + .../BehavioralAnalyticsEventPostRequest.ts | 4 +- .../put/SearchApplicationsPutRequest.ts | 4 +- .../BehavioralAnalyticsPutRequest.ts | 3 +- .../SearchApplicationsRenderQueryRequest.ts | 4 +- .../search/SearchApplicationsSearchRequest.ts | 4 +- .../cache_stats/Request.ts | 3 +- .../SearchableSnapshotsClearCacheRequest.ts | 3 +- .../mount/SearchableSnapshotsMountRequest.ts | 4 +- .../stats/SearchableSnapshotsStatsRequest.ts | 3 +- .../security/activate_user_profile/Request.ts | 3 + .../SecurityAuthenticateRequest.ts | 2 + .../SecurityBulkDeleteRoleRequest.ts | 4 +- .../SecurityBulkPutRoleRequest.ts | 4 +- .../SecurityBulkUpdateApiKeysRequest.ts | 4 +- .../SecurityChangePasswordRequest.ts | 4 +- .../SecurityClearApiKeyCacheRequest.ts | 3 +- .../SecurityClearCachedPrivilegesRequest.ts | 3 +- .../SecurityClearCachedRealmsRequest.ts | 3 +- .../ClearCachedRolesRequest.ts | 3 +- .../ClearCachedServiceTokensRequest.ts | 3 +- .../SecurityCreateApiKeyRequest.ts | 4 +- .../CreateCrossClusterApiKeyRequest.ts | 4 +- .../CreateServiceTokenRequest.ts | 3 +- .../SecurityDelegatePkiRequest.ts | 2 + .../SecurityDeletePrivilegesRequest.ts | 3 +- .../delete_role/SecurityDeleteRoleRequest.ts | 3 +- .../SecurityDeleteRoleMappingRequest.ts | 3 +- .../DeleteServiceTokenRequest.ts | 3 +- .../delete_user/SecurityDeleteUserRequest.ts | 3 +- .../SecurityDisableUserRequest.ts | 3 +- .../security/disable_user_profile/Request.ts | 3 +- .../enable_user/SecurityEnableUserRequest.ts | 3 +- .../security/enable_user_profile/Request.ts | 3 +- .../security/enroll_kibana/Request.ts | 3 + specification/security/enroll_node/Request.ts | 3 + .../get_api_key/SecurityGetApiKeyRequest.ts | 3 +- .../SecurityGetBuiltinPrivilegesRequest.ts | 2 + .../SecurityGetPrivilegesRequest.ts | 3 +- .../get_role/SecurityGetRoleRequest.ts | 3 +- .../SecurityGetRoleMappingRequest.ts | 3 +- .../GetServiceAccountsRequest.ts | 3 +- .../GetServiceCredentialsRequest.ts | 3 +- .../SecurityGetSettingsRequest.ts | 3 + .../get_token/GetUserAccessTokenRequest.ts | 4 +- .../get_user/SecurityGetUserRequest.ts | 3 +- .../SecurityGetUserPrivilegesRequest.ts | 2 + .../security/get_user_profile/Request.ts | 2 + .../SecurityGrantApiKeyRequest.ts | 4 +- .../SecurityHasPrivilegesRequest.ts | 4 +- .../has_privileges_user_profile/Request.ts | 3 + .../SecurityInvalidateApiKeyRequest.ts | 4 +- .../SecurityInvalidateTokenRequest.ts | 4 +- .../security/oidc_authenticate/Request.ts | 3 + specification/security/oidc_logout/Request.ts | 3 + .../oidc_prepare_authentication/Request.ts | 3 + .../SecurityPutPrivilegesRequest.ts | 4 +- .../put_role/SecurityPutRoleRequest.ts | 4 +- .../SecurityPutRoleMappingRequest.ts | 4 +- .../put_user/SecurityPutUserRequest.ts | 10 +- .../query_api_keys/QueryApiKeysRequest.ts | 3 + .../security/query_role/QueryRolesRequest.ts | 3 + .../query_user/SecurityQueryUserRequest.ts | 3 + .../security/saml_authenticate/Request.ts | 4 +- .../security/saml_complete_logout/Request.ts | 4 +- .../security/saml_invalidate/Request.ts | 3 + specification/security/saml_logout/Request.ts | 3 + .../saml_prepare_authentication/Request.ts | 3 + .../saml_service_provider_metadata/Request.ts | 4 +- .../security/suggest_user_profiles/Request.ts | 3 + .../security/update_api_key/Request.ts | 4 +- .../UpdateCrossClusterApiKeyRequest.ts | 4 +- .../SecurityUpdateSettingsRequest.ts | 3 + .../update_user_profile_data/Request.ts | 4 +- .../delete_node/ShutdownDeleteNodeRequest.ts | 4 +- .../get_node/ShutdownGetNodeRequest.ts | 4 +- .../put_node/ShutdownPutNodeRequest.ts | 4 +- .../simulate/ingest/SimulateIngestRequest.ts | 4 +- .../DeleteSnapshotLifecycleRequest.ts | 3 +- .../ExecuteSnapshotLifecycleRequest.ts | 3 +- .../ExecuteRetentionRequest.ts | 2 + .../GetSnapshotLifecycleRequest.ts | 3 +- .../GetSnapshotLifecycleStatsRequest.ts | 2 + ...napshotLifecycleManagementStatusRequest.ts | 2 + .../PutSnapshotLifecycleRequest.ts | 4 +- ...StartSnapshotLifecycleManagementRequest.ts | 2 + .../StopSnapshotLifecycleManagementRequest.ts | 2 + .../SnapshotCleanupRepositoryRequest.ts | 3 +- .../snapshot/clone/SnapshotCloneRequest.ts | 4 +- .../snapshot/create/SnapshotCreateRequest.ts | 10 +- .../SnapshotCreateRepositoryRequest.ts | 4 +- .../snapshot/delete/SnapshotDeleteRequest.ts | 3 +- .../SnapshotDeleteRepositoryRequest.ts | 3 +- .../snapshot/get/SnapshotGetRequest.ts | 3 +- .../SnapshotGetRepositoryRequest.ts | 3 +- .../SnapshotAnalyzeRepositoryRequest.ts | 3 +- ...napshotRepositoryVerifyIntegrityRequest.ts | 3 +- .../restore/SnapshotRestoreRequest.ts | 4 +- .../snapshot/status/SnapshotStatusRequest.ts | 3 +- .../SnapshotVerifyRepositoryRequest.ts | 3 +- .../sql/clear_cursor/ClearSqlCursorRequest.ts | 3 + .../sql/delete_async/SqlDeleteAsyncRequest.ts | 3 +- .../sql/get_async/SqlGetAsyncRequest.ts | 3 +- .../SqlGetAsyncStatusRequest.ts | 3 +- specification/sql/query/QuerySqlRequest.ts | 3 + .../sql/translate/TranslateSqlRequest.ts | 3 + .../certificates/GetCertificatesRequest.ts | 2 + .../logs_disable/StreamsLogsDisableRequest.ts | 2 + .../logs_enable/StreamsLogsEnableRequest.ts | 2 + .../streams/status/StreamsStatusRequest.ts | 2 + .../delete_synonym/SynonymsDeleteRequest.ts | 3 +- .../SynonymRuleDeleteRequest.ts | 4 +- .../get_synonym/SynonymsGetRequest.ts | 3 +- .../get_synonym_rule/SynonymRuleGetRequest.ts | 4 +- .../SynonymsSetsGetRequest.ts | 2 + .../put_synonym/SynonymsPutRequest.ts | 4 +- .../put_synonym_rule/SynonymRulePutRequest.ts | 4 +- .../tasks/cancel/CancelTasksRequest.ts | 3 +- specification/tasks/get/GetTaskRequest.ts | 3 +- specification/tasks/list/ListTasksRequest.ts | 3 +- .../FindFieldStructureRequest.ts | 3 +- .../FindMessageStructureRequest.ts | 4 +- .../find_structure/FindStructureRequest.ts | 4 +- .../TestGrokPatternRequest.ts | 4 +- .../DeleteTransformRequest.ts | 3 +- .../get_node_stats/GetNodeStatsRequest.ts | 2 + .../get_transform/GetTransformRequest.ts | 3 +- .../GetTransformStatsRequest.ts | 3 +- .../PreviewTransformRequest.ts | 4 +- .../put_transform/PutTransformRequest.ts | 4 +- .../reset_transform/ResetTransformRequest.ts | 3 +- .../ScheduleNowTransformRequest.ts | 4 +- .../TransformSetUpgradeModeRequest.ts | 2 + .../start_transform/StartTransformRequest.ts | 3 +- .../stop_transform/StopTransformRequest.ts | 3 +- .../UpdateTransformRequest.ts | 4 +- .../UpgradeTransformsRequest.ts | 3 + .../ack_watch/WatcherAckWatchRequest.ts | 3 +- .../WatcherActivateWatchRequest.ts | 3 +- .../DeactivateWatchRequest.ts | 3 +- .../delete_watch/DeleteWatchRequest.ts | 3 +- .../WatcherExecuteWatchRequest.ts | 4 +- .../get_settings/WatcherGetSettingsRequest.ts | 3 + .../watcher/get_watch/GetWatchRequest.ts | 3 +- .../put_watch/WatcherPutWatchRequest.ts | 10 +- .../WatcherQueryWatchesRequest.ts | 3 + .../watcher/start/WatcherStartRequest.ts | 2 + .../watcher/stats/WatcherStatsRequest.ts | 2 + .../watcher/stop/WatcherStopRequest.ts | 2 + .../WatcherUpdateSettingsRequest.ts | 3 + specification/xpack/info/XPackInfoRequest.ts | 2 + .../xpack/usage/XPackUsageRequest.ts | 2 + 573 files changed, 2111 insertions(+), 1088 deletions(-) delete mode 100644 compiler/src/steps/add-content-type.ts diff --git a/compiler/src/index.ts b/compiler/src/index.ts index b1977567c7..d9337825c4 100644 --- a/compiler/src/index.ts +++ b/compiler/src/index.ts @@ -25,7 +25,6 @@ import validateRestSpec from './steps/validate-rest-spec' import addInfo from './steps/add-info' import addDescription from './steps/add-description' import validateModel from './steps/validate-model' -import addContentType from './steps/add-content-type' import readDefinitionValidation from './steps/read-definition-validation' import addDeprecation from './steps/add-deprecation' import ExamplesProcessor from './steps/add-examples' @@ -73,7 +72,6 @@ compiler .generateModel() .step(addInfo) .step(addDeprecation) - .step(addContentType) .step(readDefinitionValidation) .step(validateRestSpec) .step(addDescription) diff --git a/compiler/src/model/build-model.ts b/compiler/src/model/build-model.ts index 483ca8c5df..326bbaef3d 100644 --- a/compiler/src/model/build-model.ts +++ b/compiler/src/model/build-model.ts @@ -53,7 +53,8 @@ import { verifyUniqueness, parseJsDocTags, deepEqual, - sourceLocation, sortTypeDefinitions, parseDeprecation + sourceLocation, sortTypeDefinitions, parseDeprecation, + mediaTypeToStringArray } from './utils' const jsonSpec = buildJsonSpec() @@ -143,11 +144,11 @@ export function compileSpecification (endpointMappings: Record, allClasses: ClassDeclaration[]): model.Request | model.Response | model.Interface { +function compileClassOrInterfaceDeclaration (declaration: ClassDeclaration | InterfaceDeclaration, mappings: Record, allClasses: ClassDeclaration[], allEnums: EnumDeclaration[]): model.Request | model.Response | model.Interface | model.Enum { const name = declaration.getName() assert(declaration, name != null, 'Anonymous definitions should not exists') @@ -234,6 +235,14 @@ function compileClassOrInterfaceDeclaration (declaration: ClassDeclaration | Int assert(member, property.properties.length > 0, 'There is no need to declare an empty object path_parts, just remove the path_parts declaration.') pathMember = member type.path = property.properties + } else if (name === 'request_media_type' || name === 'response_media_type') { + // add those property to requestMediaType and responseMediaType of the endpoint + const mediaType = (member as PropertySignature).getStructure().type as string + if (name === 'request_media_type') { + mapping.requestMediaType = mediaTypeToStringArray(mediaType, allEnums) + } else if (name === 'response_media_type') { + mapping.responseMediaType = mediaTypeToStringArray(mediaType, allEnums) + } } else if (name === 'query_parameters') { const property = visitRequestOrResponseProperty(member) assert(member, property.properties.length > 0, 'There is no need to declare an empty object query_parameters, just remove the query_parameters declaration.') diff --git a/compiler/src/model/utils.ts b/compiler/src/model/utils.ts index 9dd98e4251..a893c1e27f 100644 --- a/compiler/src/model/utils.ts +++ b/compiler/src/model/utils.ts @@ -1504,3 +1504,24 @@ export function sortTypeDefinitions (types: model.TypeDefinition[]): void { return 0 }) } + +export function mediaTypeToStringArray (mediaType: string, allEnums: EnumDeclaration[]): string[] { + const mediaTypeEnumName = 'MediaType' + const mediaTypeEnum = allEnums.find(e => e.getName() === mediaTypeEnumName) + + // Handle strings separated by a pipe and return multiple media types + let enumTypeList: string[] + if (mediaType.includes('|')) { + enumTypeList = mediaType.split('|').map(mt => mt.trim()) + } else { + enumTypeList = [mediaType.trim()] + } + + const mediaTypeList: string[] = [] + for (const enumType of enumTypeList) { + const memberName = enumType.split('.').pop() + const value = mediaTypeEnum?.getMembers().find(m => m.getName() === memberName)?.getValue() as string + mediaTypeList.push(value) + } + return mediaTypeList +} diff --git a/compiler/src/steps/add-content-type.ts b/compiler/src/steps/add-content-type.ts deleted file mode 100644 index 23f509e80d..0000000000 --- a/compiler/src/steps/add-content-type.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import assert from 'assert' -import * as model from '../model/metamodel' -import { JsonSpec } from '../model/json-spec' - -/** - * Adds the `responseMediaType` (accept in the rest-api-spec) - * and `responseMediaType` (content_type in the rest api spec) - * fields to every endpoint from the rest-api-spec if present. - */ -export default async function addContentType (model: model.Model, jsonSpec: Map): Promise { - for (const endpoint of model.endpoints) { - const spec = jsonSpec.get(endpoint.name) - assert(spec, `Can't find the json spec for ${endpoint.name}`) - - if (Array.isArray(spec.headers.accept)) { - endpoint.responseMediaType = spec.headers.accept - } - - if (Array.isArray(spec.headers.content_type)) { - endpoint.requestMediaType = spec.headers.content_type - } - } - - return model -} diff --git a/output/schema/schema.json b/output/schema/schema.json index efa820a29d..bdd749d78e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -2283,8 +2283,8 @@ }, "requestBodyRequired": false, "requestMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "response": { "name": "Response", @@ -13872,8 +13872,8 @@ }, "requestBodyRequired": true, "requestMediaType": [ - "application/x-ndjson", - "application/json" + "application/json", + "application/x-ndjson" ], "response": { "name": "Response", @@ -22003,8 +22003,8 @@ "namespace": "streams.logs_disable" }, "responseMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "urls": [ { @@ -22043,8 +22043,8 @@ "namespace": "streams.logs_enable" }, "responseMediaType": [ - "application/json", - "text/plain" + "text/plain", + "application/json" ], "urls": [ { @@ -24681,7 +24681,7 @@ } } ], - "specLocation": "_global/bulk/BulkRequest.ts#L32-L249" + "specLocation": "_global/bulk/BulkRequest.ts#L33-L252" }, { "kind": "response", @@ -25313,7 +25313,7 @@ } } ], - "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L23-L67" + "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L24-L69" }, { "kind": "response", @@ -25410,7 +25410,7 @@ "name": "RestMethod", "namespace": "_global.capabilities" }, - "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L69-L75" + "specLocation": "_global/capabilities/CapabilitiesRequest.ts#L71-L77" }, { "kind": "request", @@ -25497,7 +25497,7 @@ } ], "query": [], - "specLocation": "_global/clear_scroll/ClearScrollRequest.ts#L23-L61" + "specLocation": "_global/clear_scroll/ClearScrollRequest.ts#L23-L63" }, { "kind": "response", @@ -25638,7 +25638,7 @@ }, "path": [], "query": [], - "specLocation": "_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48" + "specLocation": "_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L50" }, { "kind": "response", @@ -25978,7 +25978,7 @@ } } ], - "specLocation": "_global/count/CountRequest.ts#L26-L154" + "specLocation": "_global/count/CountRequest.ts#L26-L156" }, { "kind": "response", @@ -26241,7 +26241,7 @@ } } ], - "specLocation": "_global/create/CreateRequest.ts#L32-L199" + "specLocation": "_global/create/CreateRequest.ts#L33-L202" }, { "kind": "response", @@ -26448,7 +26448,7 @@ } } ], - "specLocation": "_global/delete/DeleteRequest.ts#L34-L146" + "specLocation": "_global/delete/DeleteRequest.ts#L35-L148" }, { "kind": "response", @@ -27094,7 +27094,7 @@ } } ], - "specLocation": "_global/delete_by_query/DeleteByQueryRequest.ts#L37-L320" + "specLocation": "_global/delete_by_query/DeleteByQueryRequest.ts#L38-L323" }, { "kind": "response", @@ -27411,7 +27411,7 @@ } } ], - "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L55" + "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L56" }, { "kind": "response", @@ -27523,7 +27523,7 @@ } } ], - "specLocation": "_global/delete_script/DeleteScriptRequest.ts#L24-L63" + "specLocation": "_global/delete_script/DeleteScriptRequest.ts#L24-L64" }, { "kind": "response", @@ -27747,7 +27747,7 @@ } } ], - "specLocation": "_global/exists/DocumentExistsRequest.ts#L31-L136" + "specLocation": "_global/exists/DocumentExistsRequest.ts#L32-L138" }, { "kind": "response", @@ -27952,7 +27952,7 @@ } } ], - "specLocation": "_global/exists_source/SourceExistsRequest.ts#L31-L113" + "specLocation": "_global/exists_source/SourceExistsRequest.ts#L32-L115" }, { "kind": "response", @@ -28298,7 +28298,7 @@ } } ], - "specLocation": "_global/explain/ExplainRequest.ts#L26-L125" + "specLocation": "_global/explain/ExplainRequest.ts#L26-L127" }, { "kind": "response", @@ -28824,7 +28824,7 @@ } } ], - "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130" + "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L25-L132" }, { "kind": "response", @@ -29262,7 +29262,7 @@ } } ], - "specLocation": "_global/get/GetRequest.ts#L31-L180" + "specLocation": "_global/get/GetRequest.ts#L32-L182" }, { "kind": "response", @@ -29431,7 +29431,7 @@ } } ], - "specLocation": "_global/get_script/GetScriptRequest.ts#L24-L56" + "specLocation": "_global/get_script/GetScriptRequest.ts#L24-L57" }, { "kind": "response", @@ -29644,7 +29644,7 @@ }, "path": [], "query": [], - "specLocation": "_global/get_script_context/GetScriptContextRequest.ts#L22-L39" + "specLocation": "_global/get_script_context/GetScriptContextRequest.ts#L23-L41" }, { "kind": "response", @@ -29760,7 +29760,7 @@ }, "path": [], "query": [], - "specLocation": "_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L39" + "specLocation": "_global/get_script_languages/GetScriptLanguagesRequest.ts#L23-L41" }, { "kind": "response", @@ -29994,7 +29994,7 @@ } } ], - "specLocation": "_global/get_source/SourceRequest.ts#L31-L112" + "specLocation": "_global/get_source/SourceRequest.ts#L32-L114" }, { "kind": "response", @@ -31074,7 +31074,7 @@ } } ], - "specLocation": "_global/health_report/Request.ts#L24-L81" + "specLocation": "_global/health_report/Request.ts#L25-L83" }, { "kind": "response", @@ -31812,7 +31812,7 @@ } } ], - "specLocation": "_global/index/IndexRequest.ts#L35-L273" + "specLocation": "_global/index/IndexRequest.ts#L36-L276" }, { "kind": "response", @@ -31896,7 +31896,7 @@ }, "path": [], "query": [], - "specLocation": "_global/info/RootNodeInfoRequest.ts#L22-L40" + "specLocation": "_global/info/RootNodeInfoRequest.ts#L23-L42" }, { "kind": "response", @@ -32133,7 +32133,7 @@ } } ], - "specLocation": "_global/knn_search/KnnSearchRequest.ts#L26-L112" + "specLocation": "_global/knn_search/KnnSearchRequest.ts#L26-L114" }, { "kind": "response", @@ -32749,7 +32749,7 @@ } } ], - "specLocation": "_global/mget/MultiGetRequest.ts#L25-L127" + "specLocation": "_global/mget/MultiGetRequest.ts#L25-L129" }, { "kind": "response", @@ -33794,7 +33794,7 @@ } } ], - "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L141" + "specLocation": "_global/msearch/MultiSearchRequest.ts#L31-L149" }, { "kind": "type_alias", @@ -34044,7 +34044,7 @@ } } ], - "specLocation": "_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116" + "specLocation": "_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L118" }, { "kind": "type_alias", @@ -34676,7 +34676,7 @@ } } ], - "specLocation": "_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L137" + "specLocation": "_global/mtermvectors/MultiTermVectorsRequest.ts#L32-L140" }, { "kind": "response", @@ -34971,7 +34971,7 @@ } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L26-L130" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L26-L132" }, { "kind": "response", @@ -35036,7 +35036,7 @@ }, "path": [], "query": [], - "specLocation": "_global/ping/PingRequest.ts#L22-L38" + "specLocation": "_global/ping/PingRequest.ts#L23-L40" }, { "kind": "response", @@ -35210,7 +35210,7 @@ } } ], - "specLocation": "_global/put_script/PutScriptRequest.ts#L25-L87" + "specLocation": "_global/put_script/PutScriptRequest.ts#L25-L89" }, { "kind": "response", @@ -35955,7 +35955,7 @@ } } ], - "specLocation": "_global/rank_eval/RankEvalRequest.ts#L24-L83" + "specLocation": "_global/rank_eval/RankEvalRequest.ts#L24-L85" }, { "kind": "response", @@ -36795,7 +36795,7 @@ } } ], - "specLocation": "_global/reindex/ReindexRequest.ts#L27-L317" + "specLocation": "_global/reindex/ReindexRequest.ts#L32-L324" }, { "kind": "response", @@ -37578,7 +37578,7 @@ } } ], - "specLocation": "_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L63" + "specLocation": "_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L64" }, { "kind": "response", @@ -37738,7 +37738,7 @@ } ], "query": [], - "specLocation": "_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L76" + "specLocation": "_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L78" }, { "kind": "response", @@ -38025,7 +38025,7 @@ }, "path": [], "query": [], - "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64" + "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L25-L67" }, { "kind": "response", @@ -38219,7 +38219,7 @@ } } ], - "specLocation": "_global/scroll/ScrollRequest.ts#L24-L94" + "specLocation": "_global/scroll/ScrollRequest.ts#L24-L96" }, { "kind": "response", @@ -39536,7 +39536,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L54-L590" + "specLocation": "_global/search/SearchRequest.ts#L55-L593" }, { "kind": "response", @@ -45830,7 +45830,7 @@ } } ], - "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L382" + "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L384" }, { "kind": "response", @@ -46082,7 +46082,7 @@ } } ], - "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L99" + "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L100" }, { "kind": "response", @@ -46643,7 +46643,7 @@ } } ], - "specLocation": "_global/search_template/SearchTemplateRequest.ts#L32-L153" + "specLocation": "_global/search_template/SearchTemplateRequest.ts#L33-L156" }, { "kind": "response", @@ -47026,7 +47026,7 @@ } ], "query": [], - "specLocation": "_global/terms_enum/TermsEnumRequest.ts#L26-L93" + "specLocation": "_global/terms_enum/TermsEnumRequest.ts#L26-L95" }, { "kind": "response", @@ -47748,7 +47748,7 @@ } } ], - "specLocation": "_global/termvectors/TermVectorsRequest.ts#L33-L239" + "specLocation": "_global/termvectors/TermVectorsRequest.ts#L34-L242" }, { "kind": "response", @@ -48691,7 +48691,7 @@ } } ], - "specLocation": "_global/update/UpdateRequest.ts#L38-L194" + "specLocation": "_global/update/UpdateRequest.ts#L39-L197" }, { "kind": "response", @@ -49398,7 +49398,7 @@ } } ], - "specLocation": "_global/update_by_query/UpdateByQueryRequest.ts#L37-L343" + "specLocation": "_global/update_by_query/UpdateByQueryRequest.ts#L38-L346" }, { "kind": "response", @@ -49710,7 +49710,7 @@ } } ], - "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L55" + "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L56" }, { "kind": "response", @@ -49820,7 +49820,7 @@ } } ], - "specLocation": "_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts#L23-L43" + "specLocation": "_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts#L24-L45" }, { "kind": "response", @@ -49881,7 +49881,7 @@ } } ], - "specLocation": "_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts#L23-L48" + "specLocation": "_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts#L24-L50" }, { "kind": "response", @@ -49929,7 +49929,7 @@ } } ], - "specLocation": "_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts#L23-L43" + "specLocation": "_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts#L24-L45" }, { "kind": "response", @@ -49980,7 +49980,7 @@ } } ], - "specLocation": "_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts#L23-L43" + "specLocation": "_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts#L24-L45" }, { "kind": "response", @@ -50092,7 +50092,7 @@ } } ], - "specLocation": "_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts#L23-L63" + "specLocation": "_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts#L24-L65" }, { "kind": "response", @@ -50197,7 +50197,7 @@ } } ], - "specLocation": "_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts#L25-L66" + "specLocation": "_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts#L26-L69" }, { "kind": "response", @@ -50910,7 +50910,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L383-L389" + "specLocation": "_types/common.ts#L396-L402" }, { "kind": "type_alias", @@ -50918,7 +50918,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L391-L391", + "specLocation": "_types/common.ts#L404-L404", "type": { "kind": "union_of", "items": [ @@ -53664,7 +53664,7 @@ } } ], - "specLocation": "_types/common.ts#L337-L364" + "specLocation": "_types/common.ts#L350-L377" }, { "kind": "interface", @@ -53807,7 +53807,7 @@ } } ], - "specLocation": "_types/common.ts#L322-L335" + "specLocation": "_types/common.ts#L335-L348" }, { "kind": "interface", @@ -54321,7 +54321,7 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L251-L255" + "specLocation": "_types/common.ts#L264-L268" }, { "kind": "enum", @@ -55332,7 +55332,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L257-L266" + "specLocation": "_types/common.ts#L270-L279" }, { "kind": "type_alias", @@ -55928,7 +55928,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L268-L275" + "specLocation": "_types/common.ts#L281-L288" }, { "kind": "interface", @@ -57319,7 +57319,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L277-L282" + "specLocation": "_types/common.ts#L290-L295" }, { "kind": "interface", @@ -57879,7 +57879,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L366-L371", + "specLocation": "_types/common.ts#L379-L384", "type": { "kind": "union_of", "items": [ @@ -57912,7 +57912,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L373-L381" + "specLocation": "_types/common.ts#L386-L394" }, { "kind": "type_alias", @@ -58407,7 +58407,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L284-L297" + "specLocation": "_types/common.ts#L297-L310" }, { "kind": "type_alias", @@ -58644,7 +58644,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L299-L305" + "specLocation": "_types/common.ts#L312-L318" }, { "kind": "type_alias", @@ -59139,7 +59139,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L307-L311" + "specLocation": "_types/common.ts#L320-L324" }, { "kind": "type_alias", @@ -59198,7 +59198,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L313-L320" + "specLocation": "_types/common.ts#L326-L333" }, { "kind": "interface", @@ -98542,7 +98542,7 @@ } ], "query": [], - "specLocation": "async_search/delete/AsyncSearchDeleteRequest.ts#L23-L46" + "specLocation": "async_search/delete/AsyncSearchDeleteRequest.ts#L23-L47" }, { "kind": "response", @@ -98664,7 +98664,7 @@ } } ], - "specLocation": "async_search/get/AsyncSearchGetRequest.ts#L24-L66" + "specLocation": "async_search/get/AsyncSearchGetRequest.ts#L24-L67" }, { "kind": "response", @@ -98813,7 +98813,7 @@ } } ], - "specLocation": "async_search/status/AsyncSearchStatusRequest.ts#L24-L58" + "specLocation": "async_search/status/AsyncSearchStatusRequest.ts#L24-L59" }, { "kind": "response", @@ -99995,7 +99995,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L54-L416" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L419" }, { "kind": "response", @@ -100202,7 +100202,7 @@ } } ], - "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L55" + "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L56" }, { "kind": "response", @@ -100487,7 +100487,7 @@ } } ], - "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L23-L57" + "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L24-L59" }, { "kind": "response", @@ -100610,7 +100610,7 @@ } } ], - "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L51" + "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L52" }, { "kind": "response", @@ -100771,7 +100771,7 @@ } } ], - "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L58" + "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L60" }, { "kind": "response", @@ -104689,7 +104689,7 @@ } } ], - "specLocation": "cat/aliases/CatAliasesRequest.ts#L23-L78" + "specLocation": "cat/aliases/CatAliasesRequest.ts#L23-L79" }, { "kind": "response", @@ -105184,7 +105184,7 @@ } } ], - "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L76" + "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L77" }, { "kind": "response", @@ -105429,7 +105429,7 @@ } } ], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L24-L81" + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L24-L82" }, { "kind": "response", @@ -105627,7 +105627,7 @@ } } ], - "specLocation": "cat/count/CatCountRequest.ts#L23-L68" + "specLocation": "cat/count/CatCountRequest.ts#L23-L69" }, { "kind": "response", @@ -105856,7 +105856,7 @@ } } ], - "specLocation": "cat/fielddata/CatFielddataRequest.ts#L23-L68" + "specLocation": "cat/fielddata/CatFielddataRequest.ts#L23-L69" }, { "kind": "response", @@ -106255,7 +106255,7 @@ } } ], - "specLocation": "cat/health/CatHealthRequest.ts#L23-L65" + "specLocation": "cat/health/CatHealthRequest.ts#L23-L66" }, { "kind": "response", @@ -106296,7 +106296,7 @@ }, "path": [], "query": [], - "specLocation": "cat/help/CatHelpRequest.ts#L20-L36" + "specLocation": "cat/help/CatHelpRequest.ts#L22-L39" }, { "kind": "response", @@ -108547,7 +108547,7 @@ } } ], - "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L100" + "specLocation": "cat/indices/CatIndicesRequest.ts#L30-L107" }, { "kind": "response", @@ -108744,7 +108744,7 @@ } } ], - "specLocation": "cat/master/CatMasterRequest.ts#L24-L68" + "specLocation": "cat/master/CatMasterRequest.ts#L24-L69" }, { "kind": "response", @@ -109135,7 +109135,7 @@ } } ], - "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L70" + "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L23-L71" }, { "kind": "response", @@ -109465,7 +109465,7 @@ } } ], - "specLocation": "cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L80" + "specLocation": "cat/ml_datafeeds/CatDatafeedsRequest.ts#L23-L81" }, { "kind": "response", @@ -110561,7 +110561,7 @@ } } ], - "specLocation": "cat/ml_jobs/CatJobsRequest.ts#L23-L80" + "specLocation": "cat/ml_jobs/CatJobsRequest.ts#L23-L81" }, { "kind": "response", @@ -110720,7 +110720,7 @@ } } ], - "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L79" + "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L80" }, { "kind": "response", @@ -111256,7 +111256,7 @@ } } ], - "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L67" + "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L68" }, { "kind": "response", @@ -112936,7 +112936,7 @@ } } ], - "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L71" + "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L72" }, { "kind": "response", @@ -113145,7 +113145,7 @@ } } ], - "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L24-L67" + "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L24-L68" }, { "kind": "response", @@ -113388,7 +113388,7 @@ } } ], - "specLocation": "cat/plugins/CatPluginsRequest.ts#L24-L72" + "specLocation": "cat/plugins/CatPluginsRequest.ts#L24-L73" }, { "kind": "response", @@ -113968,7 +113968,7 @@ } } ], - "specLocation": "cat/recovery/CatRecoveryRequest.ts#L23-L83" + "specLocation": "cat/recovery/CatRecoveryRequest.ts#L23-L84" }, { "kind": "response", @@ -114152,7 +114152,7 @@ } } ], - "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L24-L67" + "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L24-L68" }, { "kind": "response", @@ -114364,7 +114364,7 @@ } } ], - "specLocation": "cat/segments/CatSegmentsRequest.ts#L24-L113" + "specLocation": "cat/segments/CatSegmentsRequest.ts#L24-L114" }, { "kind": "response", @@ -114737,7 +114737,7 @@ } } ], - "specLocation": "cat/shards/CatShardsRequest.ts#L24-L73" + "specLocation": "cat/shards/CatShardsRequest.ts#L24-L74" }, { "kind": "response", @@ -116186,7 +116186,7 @@ } } ], - "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L80" + "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L81" }, { "kind": "response", @@ -116620,7 +116620,7 @@ } } ], - "specLocation": "cat/tasks/CatTasksRequest.ts#L24-L78" + "specLocation": "cat/tasks/CatTasksRequest.ts#L24-L79" }, { "kind": "response", @@ -117012,7 +117012,7 @@ } } ], - "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L79" + "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L80" }, { "kind": "response", @@ -117256,7 +117256,7 @@ } } ], - "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L79" + "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L80" }, { "kind": "response", @@ -117780,7 +117780,7 @@ } } ], - "specLocation": "cat/transforms/CatTransformsRequest.ts#L24-L84" + "specLocation": "cat/transforms/CatTransformsRequest.ts#L24-L85" }, { "kind": "response", @@ -118956,7 +118956,7 @@ } } ], - "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L54" + "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L55" }, { "kind": "response", @@ -119246,7 +119246,7 @@ } } ], - "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L125" + "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L31-L132" }, { "kind": "response", @@ -119595,7 +119595,7 @@ } } ], - "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L55" + "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L56" }, { "kind": "response", @@ -119715,7 +119715,7 @@ } } ], - "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L54" + "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -119878,7 +119878,7 @@ } } ], - "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L66" + "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L68" }, { "kind": "response", @@ -120108,7 +120108,7 @@ } } ], - "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L60" + "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L61" }, { "kind": "response", @@ -120222,7 +120222,7 @@ } } ], - "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L60" + "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L61" }, { "kind": "response", @@ -120327,7 +120327,7 @@ } } ], - "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L56" + "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L57" }, { "kind": "response", @@ -120635,7 +120635,7 @@ } } ], - "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133" + "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L33-L141" }, { "kind": "response", @@ -120740,7 +120740,7 @@ } } ], - "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L56" + "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L57" }, { "kind": "response", @@ -120959,7 +120959,7 @@ } } ], - "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L66" + "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L68" }, { "kind": "response", @@ -121215,7 +121215,7 @@ } } ], - "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L53" + "specLocation": "ccr/stats/CcrStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -121339,7 +121339,7 @@ } } ], - "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L59" + "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L60" }, { "kind": "response", @@ -122368,7 +122368,7 @@ } } ], - "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79" + "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L81" }, { "kind": "interface", @@ -123003,7 +123003,7 @@ } } ], - "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L61" + "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L62" }, { "kind": "response", @@ -123071,7 +123071,7 @@ } } ], - "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L23-L55" + "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L24-L57" }, { "kind": "response", @@ -123149,7 +123149,7 @@ } } ], - "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L63" + "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L64" }, { "kind": "response", @@ -123320,7 +123320,7 @@ } } ], - "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L83" + "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L84" }, { "kind": "response", @@ -123454,7 +123454,7 @@ } } ], - "specLocation": "cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L69" + "specLocation": "cluster/get_settings/ClusterGetSettingsRequest.ts#L24-L71" }, { "kind": "response", @@ -124119,7 +124119,7 @@ } } ], - "specLocation": "cluster/health/ClusterHealthRequest.ts#L32-L122" + "specLocation": "cluster/health/ClusterHealthRequest.ts#L33-L124" }, { "kind": "response", @@ -124341,7 +124341,7 @@ } ], "query": [], - "specLocation": "cluster/info/ClusterInfoRequest.ts#L23-L42" + "specLocation": "cluster/info/ClusterInfoRequest.ts#L23-L43" }, { "kind": "response", @@ -124592,7 +124592,7 @@ } } ], - "specLocation": "cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L56" + "specLocation": "cluster/pending_tasks/ClusterPendingTasksRequest.ts#L24-L58" }, { "kind": "response", @@ -124693,7 +124693,7 @@ } } ], - "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L80" + "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L81" }, { "kind": "response", @@ -124887,7 +124887,7 @@ } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L110" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L112" }, { "kind": "response", @@ -125074,7 +125074,7 @@ } } ], - "specLocation": "cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L81" + "specLocation": "cluster/put_settings/ClusterPutSettingsRequest.ts#L26-L84" }, { "kind": "response", @@ -125429,7 +125429,7 @@ }, "path": [], "query": [], - "specLocation": "cluster/remote_info/ClusterRemoteInfoRequest.ts#L22-L46" + "specLocation": "cluster/remote_info/ClusterRemoteInfoRequest.ts#L23-L48" }, { "kind": "response", @@ -125886,7 +125886,7 @@ } } ], - "specLocation": "cluster/reroute/ClusterRerouteRequest.ts#L25-L91" + "specLocation": "cluster/reroute/ClusterRerouteRequest.ts#L25-L93" }, { "kind": "interface", @@ -126283,7 +126283,7 @@ } } ], - "specLocation": "cluster/state/ClusterStateRequest.ts#L29-L119" + "specLocation": "cluster/state/ClusterStateRequest.ts#L30-L121" }, { "kind": "response", @@ -129711,7 +129711,7 @@ } } ], - "specLocation": "cluster/stats/ClusterStatsRequest.ts#L24-L60" + "specLocation": "cluster/stats/ClusterStatsRequest.ts#L24-L61" }, { "kind": "response", @@ -132460,7 +132460,7 @@ } ], "query": [], - "specLocation": "connector/check_in/ConnectorCheckInRequest.ts#L22-L44" + "specLocation": "connector/check_in/ConnectorCheckInRequest.ts#L22-L45" }, { "kind": "response", @@ -132570,7 +132570,7 @@ } } ], - "specLocation": "connector/delete/ConnectorDeleteRequest.ts#L22-L54" + "specLocation": "connector/delete/ConnectorDeleteRequest.ts#L22-L55" }, { "kind": "response", @@ -132660,7 +132660,7 @@ } ], "query": [], - "specLocation": "connector/get/ConnectorGetRequest.ts#L22-L44" + "specLocation": "connector/get/ConnectorGetRequest.ts#L22-L45" }, { "kind": "response", @@ -132872,7 +132872,7 @@ } ], "query": [], - "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66" + "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L68" }, { "kind": "response", @@ -133025,7 +133025,7 @@ } } ], - "specLocation": "connector/list/ConnectorListRequest.ts#L23-L67" + "specLocation": "connector/list/ConnectorListRequest.ts#L23-L68" }, { "kind": "response", @@ -133154,7 +133154,7 @@ }, "path": [], "query": [], - "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L52" + "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L54" }, { "kind": "response", @@ -133355,7 +133355,7 @@ } ], "query": [], - "specLocation": "connector/put/ConnectorPutRequest.ts#L22-L58" + "specLocation": "connector/put/ConnectorPutRequest.ts#L22-L60" }, { "kind": "response", @@ -133431,7 +133431,7 @@ } ], "query": [], - "specLocation": "connector/secret_delete/ConnectorSecretDeleteRequest.ts#L22-L39" + "specLocation": "connector/secret_delete/ConnectorSecretDeleteRequest.ts#L23-L41" }, { "kind": "response", @@ -133491,7 +133491,7 @@ } ], "query": [], - "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L22-L39" + "specLocation": "connector/secret_get/ConnectorSecretGetRequest.ts#L23-L41" }, { "kind": "response", @@ -133562,7 +133562,7 @@ }, "path": [], "query": [], - "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L22-L38" + "specLocation": "connector/secret_post/ConnectorSecretPostRequest.ts#L23-L40" }, { "kind": "response", @@ -133635,7 +133635,7 @@ } ], "query": [], - "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L22-L42" + "specLocation": "connector/secret_put/ConnectorSecretPutRequest.ts#L23-L44" }, { "kind": "response", @@ -133726,7 +133726,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L45" + "specLocation": "connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L46" }, { "kind": "response", @@ -133817,7 +133817,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L45" + "specLocation": "connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L46" }, { "kind": "response", @@ -133920,7 +133920,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61" + "specLocation": "connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L63" }, { "kind": "response", @@ -133999,7 +133999,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L45" + "specLocation": "connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L46" }, { "kind": "response", @@ -134104,7 +134104,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52" + "specLocation": "connector/sync_job_error/SyncJobErrorRequest.ts#L23-L54" }, { "kind": "response", @@ -134183,7 +134183,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_get/SyncJobGetRequest.ts#L22-L42" + "specLocation": "connector/sync_job_get/SyncJobGetRequest.ts#L22-L43" }, { "kind": "response", @@ -134333,7 +134333,7 @@ } } ], - "specLocation": "connector/sync_job_list/SyncJobListRequest.ts#L25-L65" + "specLocation": "connector/sync_job_list/SyncJobListRequest.ts#L25-L66" }, { "kind": "response", @@ -134462,7 +134462,7 @@ }, "path": [], "query": [], - "specLocation": "connector/sync_job_post/SyncJobPostRequest.ts#L23-L51" + "specLocation": "connector/sync_job_post/SyncJobPostRequest.ts#L23-L53" }, { "kind": "response", @@ -134629,7 +134629,7 @@ } ], "query": [], - "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78" + "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L80" }, { "kind": "response", @@ -134677,7 +134677,7 @@ } ], "query": [], - "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L44" + "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L46" }, { "kind": "response", @@ -134793,7 +134793,7 @@ } ], "query": [], - "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53" + "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L55" }, { "kind": "response", @@ -134951,7 +134951,7 @@ } ], "query": [], - "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55" + "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L57" }, { "kind": "response", @@ -135070,7 +135070,7 @@ } ], "query": [], - "specLocation": "connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54" + "specLocation": "connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L56" }, { "kind": "response", @@ -135210,7 +135210,7 @@ } ], "query": [], - "specLocation": "connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61" + "specLocation": "connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L63" }, { "kind": "response", @@ -135378,7 +135378,7 @@ } ], "query": [], - "specLocation": "connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60" + "specLocation": "connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L62" }, { "kind": "response", @@ -135456,7 +135456,7 @@ } ], "query": [], - "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48" + "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L50" }, { "kind": "response", @@ -135570,7 +135570,7 @@ } ], "query": [], - "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51" + "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L53" }, { "kind": "response", @@ -135691,7 +135691,7 @@ } ], "query": [], - "specLocation": "connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49" + "specLocation": "connector/update_name/ConnectorUpdateNameRequest.ts#L22-L51" }, { "kind": "response", @@ -135769,7 +135769,7 @@ } ], "query": [], - "specLocation": "connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48" + "specLocation": "connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L50" }, { "kind": "response", @@ -135874,7 +135874,7 @@ } ], "query": [], - "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52" + "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L54" }, { "kind": "response", @@ -136014,7 +136014,7 @@ } ], "query": [], - "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50" + "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L52" }, { "kind": "response", @@ -136124,7 +136124,7 @@ } ], "query": [], - "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48" + "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L50" }, { "kind": "response", @@ -136234,7 +136234,7 @@ } ], "query": [], - "specLocation": "connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49" + "specLocation": "connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L51" }, { "kind": "response", @@ -136370,7 +136370,7 @@ } } ], - "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L64" + "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L65" }, { "kind": "response", @@ -136495,7 +136495,7 @@ } } ], - "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L66" + "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L67" }, { "kind": "response", @@ -136636,7 +136636,7 @@ }, "path": [], "query": [], - "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L42" + "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L23-L44" }, { "kind": "response", @@ -136876,7 +136876,7 @@ } } ], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L52" + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L53" }, { "kind": "response", @@ -137045,7 +137045,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L57" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L58" }, { "kind": "response", @@ -137161,7 +137161,7 @@ } } ], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L57" + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L58" }, { "kind": "response", @@ -137309,7 +137309,7 @@ } } ], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67" + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L69" }, { "kind": "response", @@ -137608,7 +137608,7 @@ } } ], - "specLocation": "enrich/stats/EnrichStatsRequest.ts#L23-L45" + "specLocation": "enrich/stats/EnrichStatsRequest.ts#L24-L47" }, { "kind": "response", @@ -138078,7 +138078,7 @@ } ], "query": [], - "specLocation": "eql/delete/EqlDeleteRequest.ts#L23-L47" + "specLocation": "eql/delete/EqlDeleteRequest.ts#L23-L48" }, { "kind": "response", @@ -138189,7 +138189,7 @@ } } ], - "specLocation": "eql/get/EqlGetRequest.ts#L24-L58" + "specLocation": "eql/get/EqlGetRequest.ts#L24-L59" }, { "kind": "response", @@ -138289,7 +138289,7 @@ } ], "query": [], - "specLocation": "eql/get_status/EqlGetStatusRequest.ts#L23-L42" + "specLocation": "eql/get_status/EqlGetStatusRequest.ts#L23-L43" }, { "kind": "response", @@ -138866,7 +138866,7 @@ } } ], - "specLocation": "eql/search/EqlSearchRequest.ts#L28-L171" + "specLocation": "eql/search/EqlSearchRequest.ts#L28-L173" }, { "kind": "response", @@ -139866,7 +139866,7 @@ } } ], - "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L139" + "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L141" }, { "kind": "response", @@ -139947,7 +139947,7 @@ } ], "query": [], - "specLocation": "esql/async_query_delete/AsyncQueryDeleteRequest.ts#L23-L46" + "specLocation": "esql/async_query_delete/AsyncQueryDeleteRequest.ts#L23-L47" }, { "kind": "response", @@ -140078,7 +140078,7 @@ } } ], - "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L67" + "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L25-L68" }, { "kind": "response", @@ -140173,7 +140173,7 @@ } } ], - "specLocation": "esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L50" + "specLocation": "esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L51" }, { "kind": "response", @@ -140458,7 +140458,7 @@ } } ], - "specLocation": "esql/query/QueryRequest.ts#L27-L116" + "specLocation": "esql/query/QueryRequest.ts#L27-L118" }, { "kind": "response", @@ -140576,7 +140576,7 @@ } } ], - "specLocation": "features/get_features/GetFeaturesRequest.ts#L23-L53" + "specLocation": "features/get_features/GetFeaturesRequest.ts#L24-L55" }, { "kind": "response", @@ -140677,7 +140677,7 @@ } } ], - "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L23-L60" + "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L24-L62" }, { "kind": "response", @@ -140761,7 +140761,7 @@ } ], "query": [], - "specLocation": "fleet/delete_secret/FleetDeleteSecretRequest.ts#L22-L39" + "specLocation": "fleet/delete_secret/FleetDeleteSecretRequest.ts#L23-L41" }, { "kind": "response", @@ -140821,7 +140821,7 @@ } ], "query": [], - "specLocation": "fleet/get_secret/FleetGetSecretRequest.ts#L22-L39" + "specLocation": "fleet/get_secret/FleetGetSecretRequest.ts#L23-L41" }, { "kind": "response", @@ -140960,7 +140960,7 @@ } } ], - "specLocation": "fleet/global_checkpoints/GlobalCheckpointsRequest.ts#L25-L74" + "specLocation": "fleet/global_checkpoints/GlobalCheckpointsRequest.ts#L25-L76" }, { "kind": "response", @@ -141227,7 +141227,7 @@ } } ], - "specLocation": "fleet/msearch/MultiSearchRequest.ts#L31-L128" + "specLocation": "fleet/msearch/MultiSearchRequest.ts#L32-L131" }, { "kind": "response", @@ -141305,7 +141305,7 @@ }, "path": [], "query": [], - "specLocation": "fleet/post_secret/FleetPostSecretRequest.ts#L22-L38" + "specLocation": "fleet/post_secret/FleetPostSecretRequest.ts#L23-L40" }, { "kind": "response", @@ -142332,7 +142332,7 @@ } } ], - "specLocation": "fleet/search/SearchRequest.ts#L55-L268" + "specLocation": "fleet/search/SearchRequest.ts#L56-L271" }, { "kind": "response", @@ -143075,7 +143075,7 @@ } } ], - "specLocation": "graph/explore/GraphExploreRequest.ts#L28-L84" + "specLocation": "graph/explore/GraphExploreRequest.ts#L28-L86" }, { "kind": "response", @@ -143988,7 +143988,7 @@ } } ], - "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L58" + "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L59" }, { "kind": "response", @@ -144614,7 +144614,7 @@ } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L64" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L65" }, { "kind": "response", @@ -144793,7 +144793,7 @@ } } ], - "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L61" + "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L62" }, { "kind": "response", @@ -144882,7 +144882,7 @@ }, "path": [], "query": [], - "specLocation": "ilm/get_status/GetIlmStatusRequest.ts#L22-L38" + "specLocation": "ilm/get_status/GetIlmStatusRequest.ts#L23-L40" }, { "kind": "response", @@ -145006,7 +145006,7 @@ } } ], - "specLocation": "ilm/migrate_to_data_tiers/Request.ts#L22-L61" + "specLocation": "ilm/migrate_to_data_tiers/Request.ts#L23-L64" }, { "kind": "response", @@ -145248,7 +145248,7 @@ } ], "query": [], - "specLocation": "ilm/move_to_step/MoveToStepRequest.ts#L24-L65" + "specLocation": "ilm/move_to_step/MoveToStepRequest.ts#L24-L67" }, { "kind": "response", @@ -145427,7 +145427,7 @@ } } ], - "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66" + "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L68" }, { "kind": "response", @@ -145518,7 +145518,7 @@ } ], "query": [], - "specLocation": "ilm/remove_policy/RemovePolicyRequest.ts#L23-L43" + "specLocation": "ilm/remove_policy/RemovePolicyRequest.ts#L23-L44" }, { "kind": "response", @@ -145629,7 +145629,7 @@ } ], "query": [], - "specLocation": "ilm/retry/RetryIlmRequest.ts#L23-L44" + "specLocation": "ilm/retry/RetryIlmRequest.ts#L23-L45" }, { "kind": "response", @@ -145728,7 +145728,7 @@ } } ], - "specLocation": "ilm/start/StartIlmRequest.ts#L23-L52" + "specLocation": "ilm/start/StartIlmRequest.ts#L24-L54" }, { "kind": "response", @@ -145833,7 +145833,7 @@ } } ], - "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L54" + "specLocation": "ilm/stop/StopIlmRequest.ts#L24-L56" }, { "kind": "response", @@ -150697,7 +150697,7 @@ "name": "IndicesBlockOptions", "namespace": "indices.add_block" }, - "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L91-L100" + "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L92-L101" }, { "kind": "interface", @@ -150874,7 +150874,7 @@ } } ], - "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L24-L89" + "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L24-L90" }, { "kind": "response", @@ -151691,7 +151691,7 @@ } } ], - "specLocation": "indices/analyze/IndicesAnalyzeRequest.ts#L27-L119" + "specLocation": "indices/analyze/IndicesAnalyzeRequest.ts#L27-L121" }, { "kind": "response", @@ -151867,7 +151867,7 @@ } ], "query": [], - "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L38" + "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L40" }, { "kind": "response", @@ -152052,7 +152052,7 @@ } } ], - "specLocation": "indices/clear_cache/IndicesClearCacheRequest.ts#L23-L99" + "specLocation": "indices/clear_cache/IndicesClearCacheRequest.ts#L23-L100" }, { "kind": "response", @@ -152240,7 +152240,7 @@ } } ], - "specLocation": "indices/clone/IndicesCloneRequest.ts#L27-L127" + "specLocation": "indices/clone/IndicesCloneRequest.ts#L27-L129" }, { "kind": "response", @@ -152499,7 +152499,7 @@ } } ], - "specLocation": "indices/close/CloseIndexRequest.ts#L24-L100" + "specLocation": "indices/close/CloseIndexRequest.ts#L29-L106" }, { "kind": "response", @@ -152787,7 +152787,7 @@ } } ], - "specLocation": "indices/create/IndicesCreateRequest.ts#L28-L108" + "specLocation": "indices/create/IndicesCreateRequest.ts#L28-L110" }, { "kind": "response", @@ -152927,7 +152927,7 @@ } } ], - "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L65" + "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L66" }, { "kind": "response", @@ -152992,7 +152992,7 @@ } } ], - "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L46-L60" + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L48-L62" }, { "kind": "request", @@ -153079,7 +153079,7 @@ } ], "query": [], - "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L44" + "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L46" }, { "kind": "response", @@ -153285,7 +153285,7 @@ } } ], - "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L61" + "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L62" }, { "kind": "response", @@ -153512,7 +153512,7 @@ } } ], - "specLocation": "indices/delete/IndicesDeleteRequest.ts#L24-L86" + "specLocation": "indices/delete/IndicesDeleteRequest.ts#L24-L87" }, { "kind": "response", @@ -153663,7 +153663,7 @@ } } ], - "specLocation": "indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L70" + "specLocation": "indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L71" }, { "kind": "response", @@ -153788,7 +153788,7 @@ } } ], - "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L64" + "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L65" }, { "kind": "response", @@ -153906,7 +153906,7 @@ } } ], - "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L59" + "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L60" }, { "kind": "response", @@ -154000,7 +154000,7 @@ } } ], - "specLocation": "indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L65" + "specLocation": "indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts#L24-L66" }, { "kind": "response", @@ -154118,7 +154118,7 @@ } } ], - "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L60" + "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L61" }, { "kind": "response", @@ -154234,7 +154234,7 @@ } } ], - "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L61" + "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L62" }, { "kind": "response", @@ -154385,7 +154385,7 @@ } } ], - "specLocation": "indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L84" + "specLocation": "indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L85" }, { "kind": "response", @@ -154487,7 +154487,7 @@ } ], "query": [], - "specLocation": "indices/downsample/Request.ts#L24-L58" + "specLocation": "indices/downsample/Request.ts#L24-L60" }, { "kind": "response", @@ -154647,7 +154647,7 @@ } } ], - "specLocation": "indices/exists/IndicesExistsRequest.ts#L23-L79" + "specLocation": "indices/exists/IndicesExistsRequest.ts#L23-L80" }, { "kind": "response", @@ -154794,7 +154794,7 @@ } } ], - "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L80" + "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L81" }, { "kind": "response", @@ -154881,7 +154881,7 @@ } } ], - "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L62" + "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L63" }, { "kind": "response", @@ -155003,7 +155003,7 @@ } } ], - "specLocation": "indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L70" + "specLocation": "indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L71" }, { "kind": "response", @@ -155235,7 +155235,7 @@ } } ], - "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L57" + "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L58" }, { "kind": "response", @@ -155637,7 +155637,7 @@ } } ], - "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L74" + "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L75" }, { "kind": "response", @@ -155924,7 +155924,7 @@ } } ], - "specLocation": "indices/flush/IndicesFlushRequest.ts#L23-L91" + "specLocation": "indices/flush/IndicesFlushRequest.ts#L23-L92" }, { "kind": "response", @@ -156098,7 +156098,7 @@ } } ], - "specLocation": "indices/forcemerge/IndicesForceMergeRequest.ts#L24-L137" + "specLocation": "indices/forcemerge/IndicesForceMergeRequest.ts#L24-L138" }, { "kind": "response", @@ -156163,7 +156163,7 @@ "name": "Feature", "namespace": "indices.get" }, - "specLocation": "indices/get/IndicesGetRequest.ts#L98-L102" + "specLocation": "indices/get/IndicesGetRequest.ts#L99-L103" }, { "kind": "type_alias", @@ -156171,7 +156171,7 @@ "name": "Features", "namespace": "indices.get" }, - "specLocation": "indices/get/IndicesGetRequest.ts#L103-L103", + "specLocation": "indices/get/IndicesGetRequest.ts#L104-L104", "type": { "kind": "union_of", "items": [ @@ -156371,7 +156371,7 @@ } } ], - "specLocation": "indices/get/IndicesGetRequest.ts#L24-L96" + "specLocation": "indices/get/IndicesGetRequest.ts#L24-L97" }, { "kind": "response", @@ -156536,7 +156536,7 @@ } } ], - "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L23-L91" + "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L23-L92" }, { "kind": "response", @@ -156828,7 +156828,7 @@ } } ], - "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L68" + "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L69" }, { "kind": "response", @@ -156961,7 +156961,7 @@ }, "path": [], "query": [], - "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L22-L39" + "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L23-L41" }, { "kind": "response", @@ -157178,7 +157178,7 @@ } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L78" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L79" }, { "kind": "response", @@ -157306,7 +157306,7 @@ } } ], - "specLocation": "indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L63" + "specLocation": "indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts#L24-L64" }, { "kind": "response", @@ -157429,7 +157429,7 @@ } } ], - "specLocation": "indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L57" + "specLocation": "indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts#L24-L58" }, { "kind": "response", @@ -157608,7 +157608,7 @@ } } ], - "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L88" + "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L89" }, { "kind": "response", @@ -157851,7 +157851,7 @@ } } ], - "specLocation": "indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L73" + "specLocation": "indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L74" }, { "kind": "response", @@ -158047,7 +158047,7 @@ } } ], - "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L84" + "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L85" }, { "kind": "response", @@ -158143,7 +158143,7 @@ } ], "query": [], - "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L38" + "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L40" }, { "kind": "response", @@ -158527,7 +158527,7 @@ } } ], - "specLocation": "indices/get_settings/IndicesGetSettingsRequest.ts#L24-L112" + "specLocation": "indices/get_settings/IndicesGetSettingsRequest.ts#L24-L113" }, { "kind": "response", @@ -158671,7 +158671,7 @@ } } ], - "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L74" + "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L75" }, { "kind": "response", @@ -158734,7 +158734,7 @@ } } ], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L41-L50" }, { "kind": "enum", @@ -158747,7 +158747,7 @@ "name": "ModeEnum", "namespace": "indices.migrate_reindex" }, - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L56-L58" }, { "kind": "request", @@ -158811,7 +158811,7 @@ }, "path": [], "query": [], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L39" }, { "kind": "response", @@ -158850,7 +158850,7 @@ } } ], - "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52" + "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L52-L54" }, { "kind": "request", @@ -158944,7 +158944,7 @@ } } ], - "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L66" + "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L67" }, { "kind": "response", @@ -159106,7 +159106,7 @@ }, "path": [], "query": [], - "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45" + "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L24-L48" }, { "kind": "response", @@ -159272,7 +159272,7 @@ } } ], - "specLocation": "indices/open/IndicesOpenRequest.ts#L24-L110" + "specLocation": "indices/open/IndicesOpenRequest.ts#L29-L116" }, { "kind": "response", @@ -159394,7 +159394,7 @@ } } ], - "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L59" + "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L60" }, { "kind": "response", @@ -159593,7 +159593,7 @@ } } ], - "specLocation": "indices/put_alias/IndicesPutAliasRequest.ts#L25-L104" + "specLocation": "indices/put_alias/IndicesPutAliasRequest.ts#L25-L106" }, { "kind": "response", @@ -159790,7 +159790,7 @@ } } ], - "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93" + "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L95" }, { "kind": "response", @@ -159904,7 +159904,7 @@ } } ], - "specLocation": "indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L82" + "specLocation": "indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts#L25-L84" }, { "kind": "response", @@ -160122,7 +160122,7 @@ } } ], - "specLocation": "indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L77" + "specLocation": "indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L78" }, { "kind": "response", @@ -160325,7 +160325,7 @@ } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L162-L184" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L165-L187" }, { "kind": "request", @@ -160596,7 +160596,7 @@ } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L160" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L38-L163" }, { "kind": "response", @@ -160926,7 +160926,7 @@ } } ], - "specLocation": "indices/put_mapping/IndicesPutMappingRequest.ts#L41-L184" + "specLocation": "indices/put_mapping/IndicesPutMappingRequest.ts#L42-L187" }, { "kind": "response", @@ -161182,7 +161182,7 @@ } } ], - "specLocation": "indices/put_settings/IndicesPutSettingsRequest.ts#L25-L162" + "specLocation": "indices/put_settings/IndicesPutSettingsRequest.ts#L25-L164" }, { "kind": "response", @@ -161457,7 +161457,7 @@ } } ], - "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L129" + "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L131" }, { "kind": "response", @@ -162202,7 +162202,7 @@ } } ], - "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L102" + "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L103" }, { "kind": "response", @@ -162720,7 +162720,7 @@ } } ], - "specLocation": "indices/refresh/IndicesRefreshRequest.ts#L23-L85" + "specLocation": "indices/refresh/IndicesRefreshRequest.ts#L23-L86" }, { "kind": "response", @@ -162935,7 +162935,7 @@ } } ], - "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L75" + "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L76" }, { "kind": "response", @@ -163095,7 +163095,7 @@ } } ], - "specLocation": "indices/resolve_cluster/ResolveClusterRequest.ts#L24-L143" + "specLocation": "indices/resolve_cluster/ResolveClusterRequest.ts#L24-L144" }, { "kind": "interface", @@ -163310,7 +163310,7 @@ } } ], - "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L23-L68" + "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L23-L69" }, { "kind": "interface", @@ -163728,7 +163728,7 @@ } } ], - "specLocation": "indices/rollover/IndicesRolloverRequest.ts#L29-L153" + "specLocation": "indices/rollover/IndicesRolloverRequest.ts#L34-L160" }, { "kind": "response", @@ -164186,7 +164186,7 @@ } } ], - "specLocation": "indices/segments/IndicesSegmentsRequest.ts#L23-L77" + "specLocation": "indices/segments/IndicesSegmentsRequest.ts#L23-L78" }, { "kind": "response", @@ -164627,7 +164627,7 @@ } } ], - "specLocation": "indices/shard_stores/IndicesShardStoresRequest.ts#L24-L82" + "specLocation": "indices/shard_stores/IndicesShardStoresRequest.ts#L24-L83" }, { "kind": "response", @@ -165098,7 +165098,7 @@ } } ], - "specLocation": "indices/shrink/IndicesShrinkRequest.ts#L27-L113" + "specLocation": "indices/shrink/IndicesShrinkRequest.ts#L27-L115" }, { "kind": "response", @@ -165281,7 +165281,7 @@ } } ], - "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L70" + "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L72" }, { "kind": "response", @@ -165623,7 +165623,7 @@ } } ], - "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L136" + "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L33-L144" }, { "kind": "response", @@ -165886,7 +165886,7 @@ } } ], - "specLocation": "indices/split/IndicesSplitRequest.ts#L27-L113" + "specLocation": "indices/split/IndicesSplitRequest.ts#L27-L115" }, { "kind": "response", @@ -166543,7 +166543,7 @@ } } ], - "specLocation": "indices/stats/IndicesStatsRequest.ts#L29-L117" + "specLocation": "indices/stats/IndicesStatsRequest.ts#L30-L119" }, { "kind": "response", @@ -167551,7 +167551,7 @@ } } ], - "specLocation": "indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L86" + "specLocation": "indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L87" }, { "kind": "response", @@ -168027,7 +168027,7 @@ } } ], - "specLocation": "indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59" + "specLocation": "indices/update_aliases/IndicesUpdateAliasesRequest.ts#L25-L62" }, { "kind": "response", @@ -168334,7 +168334,7 @@ } } ], - "specLocation": "indices/validate_query/IndicesValidateQueryRequest.ts#L25-L122" + "specLocation": "indices/validate_query/IndicesValidateQueryRequest.ts#L25-L124" }, { "kind": "response", @@ -173614,7 +173614,7 @@ } } ], - "specLocation": "inference/chat_completion_unified/UnifiedRequest.ts#L24-L61" + "specLocation": "inference/chat_completion_unified/UnifiedRequest.ts#L24-L63" }, { "kind": "response", @@ -173763,7 +173763,7 @@ } } ], - "specLocation": "inference/completion/CompletionRequest.ts#L25-L63" + "specLocation": "inference/completion/CompletionRequest.ts#L25-L65" }, { "kind": "response", @@ -173894,7 +173894,7 @@ } } ], - "specLocation": "inference/delete/DeleteRequest.ts#L24-L66" + "specLocation": "inference/delete/DeleteRequest.ts#L24-L67" }, { "kind": "response", @@ -173991,7 +173991,7 @@ } ], "query": [], - "specLocation": "inference/get/GetRequest.ts#L24-L56" + "specLocation": "inference/get/GetRequest.ts#L24-L57" }, { "kind": "response", @@ -174145,7 +174145,7 @@ } } ], - "specLocation": "inference/inference/InferenceRequest.ts#L26-L104" + "specLocation": "inference/inference/InferenceRequest.ts#L26-L106" }, { "kind": "response", @@ -174266,7 +174266,7 @@ } } ], - "specLocation": "inference/put/PutRequest.ts#L26-L89" + "specLocation": "inference/put/PutRequest.ts#L26-L91" }, { "kind": "response", @@ -174528,7 +174528,7 @@ } } ], - "specLocation": "inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L85" + "specLocation": "inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L87" }, { "kind": "response", @@ -174726,7 +174726,7 @@ } } ], - "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L88" + "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L90" }, { "kind": "response", @@ -174890,7 +174890,7 @@ } } ], - "specLocation": "inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L86" + "specLocation": "inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts#L31-L88" }, { "kind": "response", @@ -175055,7 +175055,7 @@ } } ], - "specLocation": "inference/put_anthropic/PutAnthropicRequest.ts#L31-L86" + "specLocation": "inference/put_anthropic/PutAnthropicRequest.ts#L31-L88" }, { "kind": "response", @@ -175253,7 +175253,7 @@ } } ], - "specLocation": "inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L85" + "specLocation": "inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L87" }, { "kind": "response", @@ -175451,7 +175451,7 @@ } } ], - "specLocation": "inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L93" + "specLocation": "inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L95" }, { "kind": "response", @@ -175655,7 +175655,7 @@ } } ], - "specLocation": "inference/put_cohere/PutCohereRequest.ts#L31-L86" + "specLocation": "inference/put_cohere/PutCohereRequest.ts#L31-L88" }, { "kind": "response", @@ -175805,7 +175805,7 @@ } ], "query": [], - "specLocation": "inference/put_custom/PutCustomRequest.ts#L30-L117" + "specLocation": "inference/put_custom/PutCustomRequest.ts#L30-L119" }, { "kind": "response", @@ -175925,7 +175925,7 @@ } } ], - "specLocation": "inference/put_deepseek/PutDeepSeekRequest.ts#L30-L80" + "specLocation": "inference/put_deepseek/PutDeepSeekRequest.ts#L30-L82" }, { "kind": "response", @@ -176251,7 +176251,7 @@ } } ], - "specLocation": "inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L99" + "specLocation": "inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L101" }, { "kind": "response", @@ -176447,7 +176447,7 @@ } } ], - "specLocation": "inference/put_elser/PutElserRequest.ts#L30-L94" + "specLocation": "inference/put_elser/PutElserRequest.ts#L30-L96" }, { "kind": "response", @@ -176607,7 +176607,7 @@ } } ], - "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L79" + "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L81" }, { "kind": "response", @@ -176805,7 +176805,7 @@ } } ], - "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L85" + "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L87" }, { "kind": "response", @@ -177003,7 +177003,7 @@ } } ], - "specLocation": "inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L121" + "specLocation": "inference/put_hugging_face/PutHuggingFaceRequest.ts#L31-L123" }, { "kind": "response", @@ -177201,7 +177201,7 @@ } } ], - "specLocation": "inference/put_jinaai/PutJinaAiRequest.ts#L31-L88" + "specLocation": "inference/put_jinaai/PutJinaAiRequest.ts#L31-L90" }, { "kind": "response", @@ -177354,7 +177354,7 @@ } } ], - "specLocation": "inference/put_mistral/PutMistralRequest.ts#L30-L79" + "specLocation": "inference/put_mistral/PutMistralRequest.ts#L30-L81" }, { "kind": "response", @@ -177552,7 +177552,7 @@ } } ], - "specLocation": "inference/put_openai/PutOpenAiRequest.ts#L31-L86" + "specLocation": "inference/put_openai/PutOpenAiRequest.ts#L31-L88" }, { "kind": "response", @@ -177750,7 +177750,7 @@ } } ], - "specLocation": "inference/put_voyageai/PutVoyageAIRequest.ts#L31-L87" + "specLocation": "inference/put_voyageai/PutVoyageAIRequest.ts#L31-L89" }, { "kind": "response", @@ -177889,7 +177889,7 @@ } } ], - "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L29-L76" + "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L29-L78" }, { "kind": "response", @@ -178108,7 +178108,7 @@ } } ], - "specLocation": "inference/rerank/RerankRequest.ts#L25-L72" + "specLocation": "inference/rerank/RerankRequest.ts#L25-L74" }, { "kind": "response", @@ -178268,7 +178268,7 @@ } } ], - "specLocation": "inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63" + "specLocation": "inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L65" }, { "kind": "response", @@ -178418,7 +178418,7 @@ } } ], - "specLocation": "inference/stream_completion/StreamInferenceRequest.ts#L25-L71" + "specLocation": "inference/stream_completion/StreamInferenceRequest.ts#L25-L73" }, { "kind": "response", @@ -178573,7 +178573,7 @@ } } ], - "specLocation": "inference/text_embedding/TextEmbeddingRequest.ts#L25-L76" + "specLocation": "inference/text_embedding/TextEmbeddingRequest.ts#L25-L78" }, { "kind": "response", @@ -178683,7 +178683,7 @@ } ], "query": [], - "specLocation": "inference/update/UpdateInferenceRequest.ts#L25-L61" + "specLocation": "inference/update/UpdateInferenceRequest.ts#L25-L63" }, { "kind": "response", @@ -184018,7 +184018,7 @@ } } ], - "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L57" + "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L58" }, { "kind": "response", @@ -184130,7 +184130,7 @@ } } ], - "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L60" + "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L61" }, { "kind": "response", @@ -184242,7 +184242,7 @@ } } ], - "specLocation": "ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L61" + "specLocation": "ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L62" }, { "kind": "response", @@ -184468,7 +184468,7 @@ }, "path": [], "query": [], - "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L22-L38" + "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L23-L40" }, { "kind": "response", @@ -184615,7 +184615,7 @@ } ], "query": [], - "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L51" + "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L52" }, { "kind": "response", @@ -184792,7 +184792,7 @@ } ], "query": [], - "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L50" + "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L23-L51" }, { "kind": "response", @@ -184913,7 +184913,7 @@ } } ], - "specLocation": "ingest/get_pipeline/GetPipelineRequest.ts#L24-L65" + "specLocation": "ingest/get_pipeline/GetPipelineRequest.ts#L24-L66" }, { "kind": "response", @@ -185002,7 +185002,7 @@ }, "path": [], "query": [], - "specLocation": "ingest/processor_grok/GrokProcessorPatternsRequest.ts#L22-L40" + "specLocation": "ingest/processor_grok/GrokProcessorPatternsRequest.ts#L23-L42" }, { "kind": "response", @@ -185126,7 +185126,7 @@ } } ], - "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66" + "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L68" }, { "kind": "response", @@ -185248,7 +185248,7 @@ } } ], - "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62" + "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L64" }, { "kind": "response", @@ -185487,7 +185487,7 @@ } } ], - "specLocation": "ingest/put_pipeline/PutPipelineRequest.ts#L25-L90" + "specLocation": "ingest/put_pipeline/PutPipelineRequest.ts#L25-L92" }, { "kind": "response", @@ -185618,7 +185618,7 @@ } } ], - "specLocation": "ingest/simulate/SimulatePipelineRequest.ts#L25-L73" + "specLocation": "ingest/simulate/SimulatePipelineRequest.ts#L25-L75" }, { "kind": "response", @@ -185950,7 +185950,7 @@ } } ], - "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L54" + "specLocation": "license/delete/DeleteLicenseRequest.ts#L24-L56" }, { "kind": "response", @@ -186246,7 +186246,7 @@ } } ], - "specLocation": "license/get/GetLicenseRequest.ts#L22-L56" + "specLocation": "license/get/GetLicenseRequest.ts#L23-L58" }, { "kind": "response", @@ -186330,7 +186330,7 @@ }, "path": [], "query": [], - "specLocation": "license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L36" + "specLocation": "license/get_basic_status/GetBasicLicenseStatusRequest.ts#L23-L38" }, { "kind": "response", @@ -186414,7 +186414,7 @@ }, "path": [], "query": [], - "specLocation": "license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L36" + "specLocation": "license/get_trial_status/GetTrialLicenseStatusRequest.ts#L23-L38" }, { "kind": "response", @@ -186603,7 +186603,7 @@ } } ], - "specLocation": "license/post/PostLicenseRequest.ts#L24-L70" + "specLocation": "license/post/PostLicenseRequest.ts#L25-L73" }, { "kind": "response", @@ -186749,7 +186749,7 @@ } } ], - "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L63" + "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L24-L65" }, { "kind": "response", @@ -186943,7 +186943,7 @@ } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L60" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L24-L62" }, { "kind": "response", @@ -187277,7 +187277,7 @@ } ], "query": [], - "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L47" + "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L48" }, { "kind": "response", @@ -187355,7 +187355,7 @@ } ], "query": [], - "specLocation": "logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L50" + "specLocation": "logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L51" }, { "kind": "response", @@ -187468,7 +187468,7 @@ } ], "query": [], - "specLocation": "logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51" + "specLocation": "logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L53" }, { "kind": "response", @@ -187657,7 +187657,7 @@ } ], "query": [], - "specLocation": "migration/deprecations/DeprecationInfoRequest.ts#L23-L49" + "specLocation": "migration/deprecations/DeprecationInfoRequest.ts#L23-L50" }, { "kind": "response", @@ -188000,7 +188000,7 @@ }, "path": [], "query": [], - "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L42" + "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L23-L44" }, { "kind": "response", @@ -188119,7 +188119,7 @@ }, "path": [], "query": [], - "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L43" + "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L23-L45" }, { "kind": "response", @@ -200978,7 +200978,7 @@ } ], "query": [], - "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L50" + "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L52" }, { "kind": "response", @@ -201156,7 +201156,7 @@ } } ], - "specLocation": "ml/close_job/MlCloseJobRequest.ts#L24-L85" + "specLocation": "ml/close_job/MlCloseJobRequest.ts#L24-L87" }, { "kind": "response", @@ -201253,7 +201253,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L45" + "specLocation": "ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L46" }, { "kind": "response", @@ -201356,7 +201356,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L49" + "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L50" }, { "kind": "response", @@ -201459,7 +201459,7 @@ } ], "query": [], - "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L50" + "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L51" }, { "kind": "response", @@ -201608,7 +201608,7 @@ } } ], - "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L58" + "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L59" }, { "kind": "response", @@ -201712,7 +201712,7 @@ } } ], - "specLocation": "ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L55" + "specLocation": "ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L56" }, { "kind": "response", @@ -201856,7 +201856,7 @@ } } ], - "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85" + "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L87" }, { "kind": "response", @@ -201953,7 +201953,7 @@ } ], "query": [], - "specLocation": "ml/delete_filter/MlDeleteFilterRequest.ts#L23-L48" + "specLocation": "ml/delete_filter/MlDeleteFilterRequest.ts#L23-L49" }, { "kind": "response", @@ -202083,7 +202083,7 @@ } } ], - "specLocation": "ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L78" + "specLocation": "ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L79" }, { "kind": "response", @@ -202214,7 +202214,7 @@ } } ], - "specLocation": "ml/delete_job/MlDeleteJobRequest.ts#L23-L73" + "specLocation": "ml/delete_job/MlDeleteJobRequest.ts#L23-L74" }, { "kind": "response", @@ -202323,7 +202323,7 @@ } ], "query": [], - "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L53" + "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L54" }, { "kind": "response", @@ -202440,7 +202440,7 @@ } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L57" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L58" }, { "kind": "response", @@ -202543,7 +202543,7 @@ } ], "query": [], - "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L53" + "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L55" }, { "kind": "response", @@ -202683,7 +202683,7 @@ }, "path": [], "query": [], - "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71" + "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L73" }, { "kind": "response", @@ -203570,7 +203570,7 @@ }, "path": [], "query": [], - "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61" + "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L63" }, { "kind": "response", @@ -203810,7 +203810,7 @@ } ], "query": [], - "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120" + "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L122" }, { "kind": "response", @@ -204048,7 +204048,7 @@ } } ], - "specLocation": "ml/flush_job/MlFlushJobRequest.ts#L24-L107" + "specLocation": "ml/flush_job/MlFlushJobRequest.ts#L24-L109" }, { "kind": "response", @@ -204234,7 +204234,7 @@ } } ], - "specLocation": "ml/forecast/MlForecastJobRequest.ts#L24-L95" + "specLocation": "ml/forecast/MlForecastJobRequest.ts#L24-L97" }, { "kind": "response", @@ -204572,7 +204572,7 @@ } } ], - "specLocation": "ml/get_buckets/MlGetBucketsRequest.ts#L26-L145" + "specLocation": "ml/get_buckets/MlGetBucketsRequest.ts#L26-L147" }, { "kind": "response", @@ -204740,7 +204740,7 @@ } } ], - "specLocation": "ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L61" + "specLocation": "ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L62" }, { "kind": "response", @@ -204935,7 +204935,7 @@ } } ], - "specLocation": "ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63" + "specLocation": "ml/get_calendars/MlGetCalendarsRequest.ts#L25-L65" }, { "kind": "response", @@ -205107,7 +205107,7 @@ } } ], - "specLocation": "ml/get_categories/MlGetCategoriesRequest.ts#L25-L82" + "specLocation": "ml/get_categories/MlGetCategoriesRequest.ts#L25-L84" }, { "kind": "response", @@ -205265,7 +205265,7 @@ } } ], - "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L89" + "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L90" }, { "kind": "response", @@ -205424,7 +205424,7 @@ } } ], - "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L84" + "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L85" }, { "kind": "response", @@ -205543,7 +205543,7 @@ } } ], - "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L72" + "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L73" }, { "kind": "response", @@ -205674,7 +205674,7 @@ } } ], - "specLocation": "ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L78" + "specLocation": "ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L79" }, { "kind": "response", @@ -205806,7 +205806,7 @@ } } ], - "specLocation": "ml/get_filters/MlGetFiltersRequest.ts#L24-L63" + "specLocation": "ml/get_filters/MlGetFiltersRequest.ts#L24-L64" }, { "kind": "response", @@ -206031,7 +206031,7 @@ } } ], - "specLocation": "ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105" + "specLocation": "ml/get_influencers/MlGetInfluencersRequest.ts#L26-L107" }, { "kind": "response", @@ -206151,7 +206151,7 @@ } } ], - "specLocation": "ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L68" + "specLocation": "ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L69" }, { "kind": "response", @@ -206283,7 +206283,7 @@ } } ], - "specLocation": "ml/get_jobs/MlGetJobsRequest.ts#L23-L78" + "specLocation": "ml/get_jobs/MlGetJobsRequest.ts#L23-L79" }, { "kind": "response", @@ -206803,7 +206803,7 @@ } } ], - "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L66" + "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L67" }, { "kind": "response", @@ -206952,7 +206952,7 @@ } } ], - "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L65" + "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L66" }, { "kind": "response", @@ -207209,7 +207209,7 @@ } } ], - "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108" + "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L110" }, { "kind": "response", @@ -207517,7 +207517,7 @@ } } ], - "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153" + "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L155" }, { "kind": "response", @@ -207821,7 +207821,7 @@ } } ], - "specLocation": "ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135" + "specLocation": "ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L137" }, { "kind": "response", @@ -208047,7 +208047,7 @@ } } ], - "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L110" + "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L111" }, { "kind": "response", @@ -208193,7 +208193,7 @@ } } ], - "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L77" + "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L78" }, { "kind": "response", @@ -208352,7 +208352,7 @@ } } ], - "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L72" + "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L74" }, { "kind": "response", @@ -208648,7 +208648,7 @@ }, "path": [], "query": [], - "specLocation": "ml/info/MlInfoRequest.ts#L22-L44" + "specLocation": "ml/info/MlInfoRequest.ts#L23-L46" }, { "kind": "response", @@ -208803,7 +208803,7 @@ } } ], - "specLocation": "ml/open_job/MlOpenJobRequest.ts#L24-L67" + "specLocation": "ml/open_job/MlOpenJobRequest.ts#L24-L69" }, { "kind": "response", @@ -208931,7 +208931,7 @@ } ], "query": [], - "specLocation": "ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48" + "specLocation": "ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L50" }, { "kind": "response", @@ -209040,7 +209040,7 @@ } } ], - "specLocation": "ml/post_data/MlPostJobDataRequest.ts#L24-L76" + "specLocation": "ml/post_data/MlPostJobDataRequest.ts#L24-L78" }, { "kind": "response", @@ -209455,7 +209455,7 @@ } ], "query": [], - "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60" + "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L62" }, { "kind": "response", @@ -209612,7 +209612,7 @@ } } ], - "specLocation": "ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L83" + "specLocation": "ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L85" }, { "kind": "response", @@ -209735,7 +209735,7 @@ } ], "query": [], - "specLocation": "ml/put_calendar/MlPutCalendarRequest.ts#L23-L51" + "specLocation": "ml/put_calendar/MlPutCalendarRequest.ts#L23-L53" }, { "kind": "response", @@ -209863,7 +209863,7 @@ } ], "query": [], - "specLocation": "ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L45" + "specLocation": "ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L46" }, { "kind": "response", @@ -210129,7 +210129,7 @@ } ], "query": [], - "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155" + "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L36-L163" }, { "kind": "response", @@ -210625,7 +210625,7 @@ } } ], - "specLocation": "ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184" + "specLocation": "ml/put_datafeed/MlPutDatafeedRequest.ts#L38-L187" }, { "kind": "response", @@ -210926,7 +210926,7 @@ } ], "query": [], - "specLocation": "ml/put_filter/MlPutFilterRequest.ts#L23-L58" + "specLocation": "ml/put_filter/MlPutFilterRequest.ts#L23-L60" }, { "kind": "response", @@ -211302,7 +211302,7 @@ } } ], - "specLocation": "ml/put_job/MlPutJobRequest.ts#L30-L151" + "specLocation": "ml/put_job/MlPutJobRequest.ts#L30-L153" }, { "kind": "response", @@ -212088,7 +212088,7 @@ } } ], - "specLocation": "ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L137" + "specLocation": "ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L139" }, { "kind": "response", @@ -212503,7 +212503,7 @@ } } ], - "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L74" + "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L76" }, { "kind": "response", @@ -212636,7 +212636,7 @@ } ], "query": [], - "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65" + "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L67" }, { "kind": "response", @@ -212782,7 +212782,7 @@ } ], "query": [], - "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68" + "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L70" }, { "kind": "response", @@ -212894,7 +212894,7 @@ } } ], - "specLocation": "ml/reset_job/MlResetJobRequest.ts#L23-L65" + "specLocation": "ml/reset_job/MlResetJobRequest.ts#L23-L66" }, { "kind": "response", @@ -213022,7 +213022,7 @@ } } ], - "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77" + "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L79" }, { "kind": "response", @@ -213127,7 +213127,7 @@ } } ], - "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L23-L64" + "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L24-L66" }, { "kind": "response", @@ -213253,7 +213253,7 @@ } } ], - "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L80" + "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L82" }, { "kind": "response", @@ -213435,7 +213435,7 @@ } } ], - "specLocation": "ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99" + "specLocation": "ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L101" }, { "kind": "response", @@ -213660,7 +213660,7 @@ } } ], - "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L112" + "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L114" }, { "kind": "response", @@ -213844,7 +213844,7 @@ } } ], - "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L110" + "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L112" }, { "kind": "response", @@ -214018,7 +214018,7 @@ } } ], - "specLocation": "ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86" + "specLocation": "ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L88" }, { "kind": "response", @@ -214176,7 +214176,7 @@ } } ], - "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L81" + "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L83" }, { "kind": "response", @@ -214326,7 +214326,7 @@ } ], "query": [], - "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80" + "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L82" }, { "kind": "response", @@ -214784,7 +214784,7 @@ } } ], - "specLocation": "ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L164" + "specLocation": "ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L166" }, { "kind": "response", @@ -215100,7 +215100,7 @@ } ], "query": [], - "specLocation": "ml/update_filter/MlUpdateFilterRequest.ts#L23-L60" + "specLocation": "ml/update_filter/MlUpdateFilterRequest.ts#L23-L62" }, { "kind": "response", @@ -215422,7 +215422,7 @@ } ], "query": [], - "specLocation": "ml/update_job/MlUpdateJobRequest.ts#L33-L147" + "specLocation": "ml/update_job/MlUpdateJobRequest.ts#L33-L149" }, { "kind": "response", @@ -215806,7 +215806,7 @@ } ], "query": [], - "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63" + "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L65" }, { "kind": "response", @@ -215951,7 +215951,7 @@ } } ], - "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78" + "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L80" }, { "kind": "response", @@ -216081,7 +216081,7 @@ } } ], - "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L72" + "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L73" }, { "kind": "response", @@ -216242,7 +216242,7 @@ }, "path": [], "query": [], - "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L52" + "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L54" }, { "kind": "response", @@ -216291,7 +216291,7 @@ }, "path": [], "query": [], - "specLocation": "ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40" + "specLocation": "ml/validate_detector/MlValidateDetectorRequest.ts#L24-L43" }, { "kind": "response", @@ -216425,7 +216425,7 @@ } } ], - "specLocation": "monitoring/bulk/BulkMonitoringRequest.ts#L24-L59" + "specLocation": "monitoring/bulk/BulkMonitoringRequest.ts#L25-L62" }, { "kind": "response", @@ -221229,7 +221229,7 @@ } ], "query": [], - "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L52" + "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L53" }, { "kind": "response", @@ -221338,7 +221338,7 @@ } ], "query": [], - "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L50" + "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L51" }, { "kind": "response", @@ -221566,7 +221566,7 @@ } } ], - "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L92" + "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L93" }, { "kind": "response", @@ -224706,7 +224706,7 @@ } } ], - "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L71" + "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L72" }, { "kind": "response", @@ -224876,7 +224876,7 @@ } } ], - "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70" + "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L72" }, { "kind": "response", @@ -225156,7 +225156,7 @@ } } ], - "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L102" + "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L103" }, { "kind": "response", @@ -225406,7 +225406,7 @@ } } ], - "specLocation": "nodes/usage/NodesUsageRequest.ts#L24-L72" + "specLocation": "nodes/usage/NodesUsageRequest.ts#L24-L73" }, { "kind": "response", @@ -225500,7 +225500,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/flamegraph/ProfilingFlamegraphRequest.ts#L23-L39" + "specLocation": "profiling/flamegraph/ProfilingFlamegraphRequest.ts#L24-L42" }, { "kind": "response", @@ -225541,7 +225541,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/stacktraces/ProfilingStacktracesRequest.ts#L23-L39" + "specLocation": "profiling/stacktraces/ProfilingStacktracesRequest.ts#L24-L42" }, { "kind": "response", @@ -225636,7 +225636,7 @@ } } ], - "specLocation": "profiling/status/ProfilingStatusRequest.ts#L23-L55" + "specLocation": "profiling/status/ProfilingStatusRequest.ts#L24-L57" }, { "kind": "response", @@ -225687,7 +225687,7 @@ }, "path": [], "query": [], - "specLocation": "profiling/topn_functions/ProfilingTopnFunctionsRequest.ts#L23-L42" + "specLocation": "profiling/topn_functions/ProfilingTopnFunctionsRequest.ts#L24-L46" }, { "kind": "response", @@ -226048,7 +226048,7 @@ } ], "query": [], - "specLocation": "query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L50" + "specLocation": "query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L51" }, { "kind": "response", @@ -226133,7 +226133,7 @@ } ], "query": [], - "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L45" + "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L46" }, { "kind": "response", @@ -226230,7 +226230,7 @@ } ], "query": [], - "specLocation": "query_rules/get_rule/QueryRuleGetRequest.ts#L22-L50" + "specLocation": "query_rules/get_rule/QueryRuleGetRequest.ts#L22-L51" }, { "kind": "response", @@ -226321,7 +226321,7 @@ } ], "query": [], - "specLocation": "query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L44" + "specLocation": "query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L45" }, { "kind": "response", @@ -226506,7 +226506,7 @@ } } ], - "specLocation": "query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L50" + "specLocation": "query_rules/list_rulesets/QueryRulesetListRequest.ts#L23-L52" }, { "kind": "response", @@ -226695,7 +226695,7 @@ } ], "query": [], - "specLocation": "query_rules/put_rule/QueryRulePutRequest.ts#L28-L79" + "specLocation": "query_rules/put_rule/QueryRulePutRequest.ts#L28-L81" }, { "kind": "response", @@ -226816,7 +226816,7 @@ } ], "query": [], - "specLocation": "query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59" + "specLocation": "query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L61" }, { "kind": "response", @@ -226964,7 +226964,7 @@ } ], "query": [], - "specLocation": "query_rules/test/QueryRulesetTestRequest.ts#L24-L57" + "specLocation": "query_rules/test/QueryRulesetTestRequest.ts#L24-L59" }, { "kind": "response", @@ -227339,7 +227339,7 @@ } ], "query": [], - "specLocation": "rollup/delete_job/DeleteRollupJobRequest.ts#L23-L67" + "specLocation": "rollup/delete_job/DeleteRollupJobRequest.ts#L23-L68" }, { "kind": "response", @@ -227479,7 +227479,7 @@ } ], "query": [], - "specLocation": "rollup/get_jobs/GetRollupJobRequest.ts#L23-L54" + "specLocation": "rollup/get_jobs/GetRollupJobRequest.ts#L23-L55" }, { "kind": "response", @@ -227949,7 +227949,7 @@ } ], "query": [], - "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L57" + "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L58" }, { "kind": "response", @@ -228215,7 +228215,7 @@ } ], "query": [], - "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L50" + "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L51" }, { "kind": "response", @@ -228535,7 +228535,7 @@ } ], "query": [], - "specLocation": "rollup/put_job/CreateRollupJobRequest.ts#L27-L105" + "specLocation": "rollup/put_job/CreateRollupJobRequest.ts#L27-L107" }, { "kind": "response", @@ -228714,7 +228714,7 @@ } } ], - "specLocation": "rollup/rollup_search/RollupSearchRequest.ts#L27-L117" + "specLocation": "rollup/rollup_search/RollupSearchRequest.ts#L27-L119" }, { "kind": "response", @@ -228896,7 +228896,7 @@ } ], "query": [], - "specLocation": "rollup/start_job/StartRollupJobRequest.ts#L23-L46" + "specLocation": "rollup/start_job/StartRollupJobRequest.ts#L23-L47" }, { "kind": "response", @@ -229024,7 +229024,7 @@ } } ], - "specLocation": "rollup/stop_job/StopRollupJobRequest.ts#L24-L73" + "specLocation": "rollup/stop_job/StopRollupJobRequest.ts#L24-L74" }, { "kind": "response", @@ -229300,7 +229300,7 @@ } ], "query": [], - "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L46" + "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L47" }, { "kind": "response", @@ -229385,7 +229385,7 @@ } ], "query": [], - "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L44" + "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L45" }, { "kind": "response", @@ -229470,7 +229470,7 @@ } ], "query": [], - "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L43" + "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L44" }, { "kind": "response", @@ -229564,7 +229564,7 @@ } ], "query": [], - "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L47" + "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L48" }, { "kind": "response", @@ -229691,7 +229691,7 @@ } } ], - "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L22-L53" + "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L23-L55" }, { "kind": "response", @@ -229833,7 +229833,7 @@ } } ], - "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L57" + "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L59" }, { "kind": "response", @@ -229984,7 +229984,7 @@ } } ], - "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L57" + "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L59" }, { "kind": "response", @@ -230103,7 +230103,7 @@ } ], "query": [], - "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L43" + "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L44" }, { "kind": "response", @@ -230210,7 +230210,7 @@ } ], "query": [], - "specLocation": "search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54" + "specLocation": "search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L56" }, { "kind": "response", @@ -230338,7 +230338,7 @@ } } ], - "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L61" + "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L63" }, { "kind": "response", @@ -230490,7 +230490,7 @@ } } ], - "specLocation": "searchable_snapshots/cache_stats/Request.ts#L24-L53" + "specLocation": "searchable_snapshots/cache_stats/Request.ts#L24-L54" }, { "kind": "response", @@ -230734,7 +230734,7 @@ } } ], - "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L67" + "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L68" }, { "kind": "response", @@ -230973,7 +230973,7 @@ } } ], - "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92" + "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L94" }, { "kind": "response", @@ -231078,7 +231078,7 @@ } } ], - "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L56" + "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L57" }, { "kind": "response", @@ -234068,7 +234068,7 @@ }, "path": [], "query": [], - "specLocation": "security/activate_user_profile/Request.ts#L23-L76" + "specLocation": "security/activate_user_profile/Request.ts#L24-L79" }, { "kind": "response", @@ -234178,7 +234178,7 @@ }, "path": [], "query": [], - "specLocation": "security/authenticate/SecurityAuthenticateRequest.ts#L22-L41" + "specLocation": "security/authenticate/SecurityAuthenticateRequest.ts#L23-L43" }, { "kind": "response", @@ -234476,7 +234476,7 @@ } } ], - "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L53" + "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L55" }, { "kind": "response", @@ -234707,7 +234707,7 @@ } } ], - "specLocation": "security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L55" + "specLocation": "security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L57" }, { "kind": "response", @@ -234952,7 +234952,7 @@ }, "path": [], "query": [], - "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83" + "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L85" }, { "kind": "response", @@ -235118,7 +235118,7 @@ } } ], - "specLocation": "security/change_password/SecurityChangePasswordRequest.ts#L23-L68" + "specLocation": "security/change_password/SecurityChangePasswordRequest.ts#L23-L70" }, { "kind": "response", @@ -235197,7 +235197,7 @@ } ], "query": [], - "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L49" + "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L50" }, { "kind": "response", @@ -235322,7 +235322,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L49" + "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L50" }, { "kind": "response", @@ -235463,7 +235463,7 @@ } } ], - "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L60" + "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L61" }, { "kind": "response", @@ -235588,7 +235588,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L48" + "specLocation": "security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L49" }, { "kind": "response", @@ -235737,7 +235737,7 @@ } ], "query": [], - "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L58" + "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L59" }, { "kind": "response", @@ -235933,7 +235933,7 @@ } } ], - "specLocation": "security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L89" + "specLocation": "security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L91" }, { "kind": "response", @@ -236124,7 +236124,7 @@ }, "path": [], "query": [], - "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80" + "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L82" }, { "kind": "response", @@ -236316,7 +236316,7 @@ } } ], - "specLocation": "security/create_service_token/CreateServiceTokenRequest.ts#L23-L75" + "specLocation": "security/create_service_token/CreateServiceTokenRequest.ts#L23-L76" }, { "kind": "response", @@ -236685,7 +236685,7 @@ }, "path": [], "query": [], - "specLocation": "security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57" + "specLocation": "security/delegate_pki/SecurityDelegatePkiRequest.ts#L23-L59" }, { "kind": "response", @@ -236864,7 +236864,7 @@ } } ], - "specLocation": "security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L61" + "specLocation": "security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L62" }, { "kind": "response", @@ -236990,7 +236990,7 @@ } } ], - "specLocation": "security/delete_role/SecurityDeleteRoleRequest.ts#L23-L52" + "specLocation": "security/delete_role/SecurityDeleteRoleRequest.ts#L23-L53" }, { "kind": "response", @@ -237101,7 +237101,7 @@ } } ], - "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L56" + "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L57" }, { "kind": "response", @@ -237236,7 +237236,7 @@ } } ], - "specLocation": "security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L61" + "specLocation": "security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L62" }, { "kind": "response", @@ -237347,7 +237347,7 @@ } } ], - "specLocation": "security/delete_user/SecurityDeleteUserRequest.ts#L23-L51" + "specLocation": "security/delete_user/SecurityDeleteUserRequest.ts#L23-L52" }, { "kind": "response", @@ -237458,7 +237458,7 @@ } } ], - "specLocation": "security/disable_user/SecurityDisableUserRequest.ts#L23-L53" + "specLocation": "security/disable_user/SecurityDisableUserRequest.ts#L23-L54" }, { "kind": "response", @@ -237551,7 +237551,7 @@ } } ], - "specLocation": "security/disable_user_profile/Request.ts#L24-L63" + "specLocation": "security/disable_user_profile/Request.ts#L24-L64" }, { "kind": "response", @@ -237649,7 +237649,7 @@ } } ], - "specLocation": "security/enable_user/SecurityEnableUserRequest.ts#L23-L52" + "specLocation": "security/enable_user/SecurityEnableUserRequest.ts#L23-L53" }, { "kind": "response", @@ -237742,7 +237742,7 @@ } } ], - "specLocation": "security/enable_user_profile/Request.ts#L24-L64" + "specLocation": "security/enable_user_profile/Request.ts#L24-L65" }, { "kind": "response", @@ -237814,7 +237814,7 @@ }, "path": [], "query": [], - "specLocation": "security/enroll_kibana/Request.ts#L22-L40" + "specLocation": "security/enroll_kibana/Request.ts#L23-L43" }, { "kind": "response", @@ -237913,7 +237913,7 @@ }, "path": [], "query": [], - "specLocation": "security/enroll_node/Request.ts#L22-L40" + "specLocation": "security/enroll_node/Request.ts#L23-L43" }, { "kind": "response", @@ -238180,7 +238180,7 @@ } } ], - "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L95" + "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L96" }, { "kind": "response", @@ -238273,7 +238273,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L40" + "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L23-L42" }, { "kind": "response", @@ -238421,7 +238421,7 @@ } ], "query": [], - "specLocation": "security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L65" + "specLocation": "security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L66" }, { "kind": "response", @@ -238534,7 +238534,7 @@ } ], "query": [], - "specLocation": "security/get_role/SecurityGetRoleRequest.ts#L23-L54" + "specLocation": "security/get_role/SecurityGetRoleRequest.ts#L23-L55" }, { "kind": "response", @@ -238847,7 +238847,7 @@ } ], "query": [], - "specLocation": "security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L53" + "specLocation": "security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L54" }, { "kind": "response", @@ -238961,7 +238961,7 @@ } ], "query": [], - "specLocation": "security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L64" + "specLocation": "security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L65" }, { "kind": "response", @@ -239165,7 +239165,7 @@ } ], "query": [], - "specLocation": "security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L56" + "specLocation": "security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L57" }, { "kind": "response", @@ -239308,7 +239308,7 @@ } } ], - "specLocation": "security/get_settings/SecurityGetSettingsRequest.ts#L23-L52" + "specLocation": "security/get_settings/SecurityGetSettingsRequest.ts#L24-L55" }, { "kind": "response", @@ -239638,7 +239638,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_token/GetUserAccessTokenRequest.ts#L25-L90" + "specLocation": "security/get_token/GetUserAccessTokenRequest.ts#L25-L92" }, { "kind": "response", @@ -239874,7 +239874,7 @@ } } ], - "specLocation": "security/get_user/SecurityGetUserRequest.ts#L23-L56" + "specLocation": "security/get_user/SecurityGetUserRequest.ts#L23-L57" }, { "kind": "response", @@ -239963,7 +239963,7 @@ }, "path": [], "query": [], - "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L22-L41" + "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L23-L43" }, { "kind": "response", @@ -240233,7 +240233,7 @@ } } ], - "specLocation": "security/get_user_profile/Request.ts#L23-L59" + "specLocation": "security/get_user_profile/Request.ts#L24-L61" }, { "kind": "response", @@ -240576,7 +240576,7 @@ } } ], - "specLocation": "security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L102" + "specLocation": "security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L104" }, { "kind": "response", @@ -240920,7 +240920,7 @@ } ], "query": [], - "specLocation": "security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L60" + "specLocation": "security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L62" }, { "kind": "type_alias", @@ -241223,7 +241223,7 @@ }, "path": [], "query": [], - "specLocation": "security/has_privileges_user_profile/Request.ts#L24-L55" + "specLocation": "security/has_privileges_user_profile/Request.ts#L25-L58" }, { "kind": "response", @@ -241563,7 +241563,7 @@ }, "path": [], "query": [], - "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82" + "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L84" }, { "kind": "response", @@ -241874,7 +241874,7 @@ }, "path": [], "query": [], - "specLocation": "security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71" + "specLocation": "security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L73" }, { "kind": "response", @@ -242050,7 +242050,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_authenticate/Request.ts#L22-L61" + "specLocation": "security/oidc_authenticate/Request.ts#L23-L64" }, { "kind": "response", @@ -242199,7 +242199,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_logout/Request.ts#L22-L52" + "specLocation": "security/oidc_logout/Request.ts#L23-L55" }, { "kind": "response", @@ -242413,7 +242413,7 @@ }, "path": [], "query": [], - "specLocation": "security/oidc_prepare_authentication/Request.ts#L22-L71" + "specLocation": "security/oidc_prepare_authentication/Request.ts#L23-L74" }, { "kind": "response", @@ -242666,7 +242666,7 @@ } } ], - "specLocation": "security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L70" + "specLocation": "security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L72" }, { "kind": "response", @@ -243032,7 +243032,7 @@ } } ], - "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L114" + "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L116" }, { "kind": "response", @@ -243484,7 +243484,7 @@ } } ], - "specLocation": "security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L106" + "specLocation": "security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L108" }, { "kind": "response", @@ -243735,7 +243735,7 @@ } } ], - "specLocation": "security/put_user/SecurityPutUserRequest.ts#L23-L101" + "specLocation": "security/put_user/SecurityPutUserRequest.ts#L29-L109" }, { "kind": "response", @@ -244619,7 +244619,7 @@ } } ], - "specLocation": "security/query_api_keys/QueryApiKeysRequest.ts#L26-L125" + "specLocation": "security/query_api_keys/QueryApiKeysRequest.ts#L27-L128" }, { "kind": "response", @@ -244907,7 +244907,7 @@ }, "path": [], "query": [], - "specLocation": "security/query_role/QueryRolesRequest.ts#L25-L85" + "specLocation": "security/query_role/QueryRolesRequest.ts#L26-L88" }, { "kind": "response", @@ -245392,7 +245392,7 @@ } } ], - "specLocation": "security/query_user/SecurityQueryUserRequest.ts#L25-L91" + "specLocation": "security/query_user/SecurityQueryUserRequest.ts#L26-L94" }, { "kind": "response", @@ -245778,7 +245778,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_authenticate/Request.ts#L23-L61" + "specLocation": "security/saml_authenticate/Request.ts#L23-L63" }, { "kind": "response", @@ -245996,7 +245996,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_complete_logout/Request.ts#L23-L61" + "specLocation": "security/saml_complete_logout/Request.ts#L23-L63" }, { "kind": "response", @@ -246101,7 +246101,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_invalidate/Request.ts#L22-L61" + "specLocation": "security/saml_invalidate/Request.ts#L23-L64" }, { "kind": "response", @@ -246238,7 +246238,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_logout/Request.ts#L22-L57" + "specLocation": "security/saml_logout/Request.ts#L23-L60" }, { "kind": "response", @@ -246396,7 +246396,7 @@ }, "path": [], "query": [], - "specLocation": "security/saml_prepare_authentication/Request.ts#L22-L67" + "specLocation": "security/saml_prepare_authentication/Request.ts#L23-L70" }, { "kind": "response", @@ -246518,7 +246518,7 @@ } ], "query": [], - "specLocation": "security/saml_service_provider_metadata/Request.ts#L23-L46" + "specLocation": "security/saml_service_provider_metadata/Request.ts#L23-L48" }, { "kind": "response", @@ -246762,7 +246762,7 @@ } } ], - "specLocation": "security/suggest_user_profiles/Request.ts#L24-L81" + "specLocation": "security/suggest_user_profiles/Request.ts#L25-L84" }, { "kind": "response", @@ -247003,7 +247003,7 @@ } ], "query": [], - "specLocation": "security/update_api_key/Request.ts#L26-L91" + "specLocation": "security/update_api_key/Request.ts#L26-L93" }, { "kind": "response", @@ -247142,7 +247142,7 @@ } ], "query": [], - "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83" + "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L85" }, { "kind": "response", @@ -247293,7 +247293,7 @@ } } ], - "specLocation": "security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L72" + "specLocation": "security/update_settings/SecurityUpdateSettingsRequest.ts#L25-L75" }, { "kind": "response", @@ -247464,7 +247464,7 @@ } } ], - "specLocation": "security/update_user_profile_data/Request.ts#L27-L98" + "specLocation": "security/update_user_profile_data/Request.ts#L27-L100" }, { "kind": "response", @@ -247601,7 +247601,7 @@ } } ], - "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L62" + "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L64" }, { "kind": "response", @@ -247855,7 +247855,7 @@ } } ], - "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L60" + "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L62" }, { "kind": "response", @@ -248093,7 +248093,7 @@ } } ], - "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108" + "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L110" }, { "kind": "response", @@ -248546,7 +248546,7 @@ } } ], - "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L29-L100" + "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L29-L102" }, { "kind": "response", @@ -249346,7 +249346,7 @@ } } ], - "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L59" + "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L60" }, { "kind": "response", @@ -249458,7 +249458,7 @@ } } ], - "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L59" + "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L60" }, { "kind": "response", @@ -249569,7 +249569,7 @@ } } ], - "specLocation": "slm/execute_retention/ExecuteRetentionRequest.ts#L23-L54" + "specLocation": "slm/execute_retention/ExecuteRetentionRequest.ts#L24-L56" }, { "kind": "response", @@ -249681,7 +249681,7 @@ } } ], - "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L62" + "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L63" }, { "kind": "response", @@ -249798,7 +249798,7 @@ } } ], - "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L23-L51" + "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L24-L53" }, { "kind": "response", @@ -250020,7 +250020,7 @@ } } ], - "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L23-L54" + "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L24-L56" }, { "kind": "response", @@ -250241,7 +250241,7 @@ } } ], - "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89" + "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L91" }, { "kind": "response", @@ -250340,7 +250340,7 @@ } } ], - "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L56" + "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L24-L58" }, { "kind": "response", @@ -250414,7 +250414,7 @@ } } ], - "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L60" + "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L24-L62" }, { "kind": "response", @@ -252580,7 +252580,7 @@ } } ], - "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L63" + "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L64" }, { "kind": "response", @@ -252732,7 +252732,7 @@ } } ], - "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L70" + "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L72" }, { "kind": "response", @@ -252953,7 +252953,7 @@ } } ], - "specLocation": "snapshot/create/SnapshotCreateRequest.ts#L24-L126" + "specLocation": "snapshot/create/SnapshotCreateRequest.ts#L30-L134" }, { "kind": "response", @@ -253281,7 +253281,7 @@ } } ], - "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79" + "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L81" }, { "kind": "response", @@ -253405,7 +253405,7 @@ } } ], - "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L65" + "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L66" }, { "kind": "response", @@ -253524,7 +253524,7 @@ } } ], - "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L64" + "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L65" }, { "kind": "response", @@ -253842,7 +253842,7 @@ } } ], - "specLocation": "snapshot/get/SnapshotGetRequest.ts#L27-L158" + "specLocation": "snapshot/get/SnapshotGetRequest.ts#L27-L159" }, { "kind": "response", @@ -254078,7 +254078,7 @@ } } ], - "specLocation": "snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L68" + "specLocation": "snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L69" }, { "kind": "response", @@ -254901,7 +254901,7 @@ } } ], - "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L202" + "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L203" }, { "kind": "response", @@ -255517,7 +255517,7 @@ } } ], - "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L126" + "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L127" }, { "kind": "response", @@ -255808,7 +255808,7 @@ } } ], - "specLocation": "snapshot/restore/SnapshotRestoreRequest.ts#L25-L175" + "specLocation": "snapshot/restore/SnapshotRestoreRequest.ts#L25-L177" }, { "kind": "response", @@ -255995,7 +255995,7 @@ } } ], - "specLocation": "snapshot/status/SnapshotStatusRequest.ts#L24-L90" + "specLocation": "snapshot/status/SnapshotStatusRequest.ts#L24-L91" }, { "kind": "response", @@ -256145,7 +256145,7 @@ } } ], - "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L63" + "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L64" }, { "kind": "response", @@ -256297,7 +256297,7 @@ }, "path": [], "query": [], - "specLocation": "sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42" + "specLocation": "sql/clear_cursor/ClearSqlCursorRequest.ts#L23-L45" }, { "kind": "response", @@ -256388,7 +256388,7 @@ } ], "query": [], - "specLocation": "sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L51" + "specLocation": "sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L52" }, { "kind": "response", @@ -256524,7 +256524,7 @@ } } ], - "specLocation": "sql/get_async/SqlGetAsyncRequest.ts#L24-L72" + "specLocation": "sql/get_async/SqlGetAsyncRequest.ts#L24-L73" }, { "kind": "response", @@ -256682,7 +256682,7 @@ } ], "query": [], - "specLocation": "sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L45" + "specLocation": "sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L46" }, { "kind": "response", @@ -257080,7 +257080,7 @@ } } ], - "specLocation": "sql/query/QuerySqlRequest.ts#L27-L151" + "specLocation": "sql/query/QuerySqlRequest.ts#L28-L154" }, { "kind": "response", @@ -257202,7 +257202,7 @@ "name": "SqlFormat", "namespace": "sql.query" }, - "specLocation": "sql/query/QuerySqlRequest.ts#L153-L161" + "specLocation": "sql/query/QuerySqlRequest.ts#L156-L164" }, { "kind": "request", @@ -257317,7 +257317,7 @@ }, "path": [], "query": [], - "specLocation": "sql/translate/TranslateSqlRequest.ts#L25-L65" + "specLocation": "sql/translate/TranslateSqlRequest.ts#L26-L68" }, { "kind": "response", @@ -257593,7 +257593,7 @@ }, "path": [], "query": [], - "specLocation": "ssl/certificates/GetCertificatesRequest.ts#L22-L55" + "specLocation": "ssl/certificates/GetCertificatesRequest.ts#L23-L57" }, { "kind": "response", @@ -257676,7 +257676,7 @@ } } ], - "specLocation": "streams/logs_disable/StreamsLogsDisableRequest.ts#L23-L55" + "specLocation": "streams/logs_disable/StreamsLogsDisableRequest.ts#L24-L57" }, { "kind": "response", @@ -257757,7 +257757,7 @@ } } ], - "specLocation": "streams/logs_enable/StreamsLogsEnableRequest.ts#L23-L59" + "specLocation": "streams/logs_enable/StreamsLogsEnableRequest.ts#L24-L61" }, { "kind": "response", @@ -257847,7 +257847,7 @@ } } ], - "specLocation": "streams/status/StreamsStatusRequest.ts#L23-L47" + "specLocation": "streams/status/StreamsStatusRequest.ts#L24-L49" }, { "kind": "response", @@ -258085,7 +258085,7 @@ } ], "query": [], - "specLocation": "synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L60" + "specLocation": "synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L61" }, { "kind": "response", @@ -258182,7 +258182,7 @@ } ], "query": [], - "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L48" + "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L50" }, { "kind": "response", @@ -258300,7 +258300,7 @@ } } ], - "specLocation": "synonyms/get_synonym/SynonymsGetRequest.ts#L23-L56" + "specLocation": "synonyms/get_synonym/SynonymsGetRequest.ts#L23-L57" }, { "kind": "response", @@ -258425,7 +258425,7 @@ } ], "query": [], - "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L48" + "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L50" }, { "kind": "response", @@ -258530,7 +258530,7 @@ } } ], - "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L22-L50" + "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L23-L52" }, { "kind": "response", @@ -258702,7 +258702,7 @@ } ], "query": [], - "specLocation": "synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55" + "specLocation": "synonyms/put_synonym/SynonymsPutRequest.ts#L23-L57" }, { "kind": "response", @@ -258836,7 +258836,7 @@ } ], "query": [], - "specLocation": "synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60" + "specLocation": "synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L62" }, { "kind": "response", @@ -259457,7 +259457,7 @@ } } ], - "specLocation": "tasks/cancel/CancelTasksRequest.ts#L23-L78" + "specLocation": "tasks/cancel/CancelTasksRequest.ts#L23-L79" }, { "kind": "response", @@ -259565,7 +259565,7 @@ } } ], - "specLocation": "tasks/get/GetTaskRequest.ts#L24-L64" + "specLocation": "tasks/get/GetTaskRequest.ts#L24-L65" }, { "kind": "response", @@ -259784,7 +259784,7 @@ } } ], - "specLocation": "tasks/list/ListTasksRequest.ts#L25-L139" + "specLocation": "tasks/list/ListTasksRequest.ts#L25-L140" }, { "kind": "response", @@ -260213,7 +260213,7 @@ } } ], - "specLocation": "text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L184" + "specLocation": "text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L185" }, { "kind": "response", @@ -260623,7 +260623,7 @@ } } ], - "specLocation": "text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174" + "specLocation": "text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L176" }, { "kind": "response", @@ -260846,7 +260846,7 @@ "name": "FindStructureFormat", "namespace": "text_structure.find_structure" }, - "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L209-L214" + "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L211-L216" }, { "kind": "request", @@ -261092,7 +261092,7 @@ } } ], - "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L24-L207" + "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L24-L209" }, { "kind": "response", @@ -261577,7 +261577,7 @@ } } ], - "specLocation": "text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59" + "specLocation": "text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L61" }, { "kind": "response", @@ -262184,7 +262184,7 @@ } } ], - "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L64" + "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L65" }, { "kind": "response", @@ -262231,7 +262231,7 @@ }, "path": [], "query": [], - "specLocation": "transform/get_node_stats/GetNodeStatsRequest.ts#L22-L38" + "specLocation": "transform/get_node_stats/GetNodeStatsRequest.ts#L23-L40" }, { "kind": "response", @@ -262474,7 +262474,7 @@ } } ], - "specLocation": "transform/get_transform/GetTransformRequest.ts#L24-L84" + "specLocation": "transform/get_transform/GetTransformRequest.ts#L24-L85" }, { "kind": "response", @@ -263013,7 +263013,7 @@ } } ], - "specLocation": "transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L81" + "specLocation": "transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L82" }, { "kind": "response", @@ -263774,7 +263774,7 @@ } } ], - "specLocation": "transform/preview_transform/PreviewTransformRequest.ts#L33-L119" + "specLocation": "transform/preview_transform/PreviewTransformRequest.ts#L33-L121" }, { "kind": "response", @@ -264076,7 +264076,7 @@ } } ], - "specLocation": "transform/put_transform/PutTransformRequest.ts#L33-L130" + "specLocation": "transform/put_transform/PutTransformRequest.ts#L33-L132" }, { "kind": "response", @@ -264194,7 +264194,7 @@ } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L62" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L63" }, { "kind": "response", @@ -264299,7 +264299,7 @@ } } ], - "specLocation": "transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L57" + "specLocation": "transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L59" }, { "kind": "response", @@ -264378,7 +264378,7 @@ } } ], - "specLocation": "transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L23-L64" + "specLocation": "transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts#L24-L66" }, { "kind": "response", @@ -264489,7 +264489,7 @@ } } ], - "specLocation": "transform/start_transform/StartTransformRequest.ts#L24-L72" + "specLocation": "transform/start_transform/StartTransformRequest.ts#L24-L73" }, { "kind": "response", @@ -264646,7 +264646,7 @@ } } ], - "specLocation": "transform/stop_transform/StopTransformRequest.ts#L24-L84" + "specLocation": "transform/stop_transform/StopTransformRequest.ts#L24-L85" }, { "kind": "response", @@ -264876,7 +264876,7 @@ } } ], - "specLocation": "transform/update_transform/UpdateTransformRequest.ts#L31-L113" + "specLocation": "transform/update_transform/UpdateTransformRequest.ts#L31-L115" }, { "kind": "response", @@ -265130,7 +265130,7 @@ } } ], - "specLocation": "transform/upgrade_transforms/UpgradeTransformsRequest.ts#L23-L65" + "specLocation": "transform/upgrade_transforms/UpgradeTransformsRequest.ts#L24-L68" }, { "kind": "response", @@ -269718,7 +269718,7 @@ } ], "query": [], - "specLocation": "watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L61" + "specLocation": "watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L62" }, { "kind": "response", @@ -269815,7 +269815,7 @@ } ], "query": [], - "specLocation": "watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L45" + "specLocation": "watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L46" }, { "kind": "response", @@ -269906,7 +269906,7 @@ } ], "query": [], - "specLocation": "watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L45" + "specLocation": "watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L46" }, { "kind": "response", @@ -269997,7 +269997,7 @@ } ], "query": [], - "specLocation": "watcher/delete_watch/DeleteWatchRequest.ts#L23-L50" + "specLocation": "watcher/delete_watch/DeleteWatchRequest.ts#L23-L51" }, { "kind": "response", @@ -270303,7 +270303,7 @@ } } ], - "specLocation": "watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105" + "specLocation": "watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L107" }, { "kind": "response", @@ -270548,7 +270548,7 @@ } } ], - "specLocation": "watcher/get_settings/WatcherGetSettingsRequest.ts#L23-L46" + "specLocation": "watcher/get_settings/WatcherGetSettingsRequest.ts#L24-L49" }, { "kind": "response", @@ -270645,7 +270645,7 @@ } ], "query": [], - "specLocation": "watcher/get_watch/GetWatchRequest.ts#L23-L43" + "specLocation": "watcher/get_watch/GetWatchRequest.ts#L23-L44" }, { "kind": "response", @@ -270978,7 +270978,7 @@ } } ], - "specLocation": "watcher/put_watch/WatcherPutWatchRequest.ts#L31-L115" + "specLocation": "watcher/put_watch/WatcherPutWatchRequest.ts#L37-L123" }, { "kind": "response", @@ -271168,7 +271168,7 @@ }, "path": [], "query": [], - "specLocation": "watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70" + "specLocation": "watcher/query_watches/WatcherQueryWatchesRequest.ts#L26-L73" }, { "kind": "response", @@ -271282,7 +271282,7 @@ } } ], - "specLocation": "watcher/start/WatcherStartRequest.ts#L23-L45" + "specLocation": "watcher/start/WatcherStartRequest.ts#L24-L47" }, { "kind": "response", @@ -271429,7 +271429,7 @@ } } ], - "specLocation": "watcher/stats/WatcherStatsRequest.ts#L23-L60" + "specLocation": "watcher/stats/WatcherStatsRequest.ts#L24-L62" }, { "kind": "response", @@ -271807,7 +271807,7 @@ } } ], - "specLocation": "watcher/stop/WatcherStopRequest.ts#L23-L47" + "specLocation": "watcher/stop/WatcherStopRequest.ts#L24-L49" }, { "kind": "response", @@ -271936,7 +271936,7 @@ } } ], - "specLocation": "watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L62" + "specLocation": "watcher/update_settings/WatcherUpdateSettingsRequest.ts#L25-L65" }, { "kind": "response", @@ -272589,7 +272589,7 @@ } } ], - "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L60" + "specLocation": "xpack/info/XPackInfoRequest.ts#L23-L62" }, { "kind": "response", @@ -272671,7 +272671,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L62-L66" + "specLocation": "xpack/info/XPackInfoRequest.ts#L64-L68" }, { "kind": "interface", @@ -275010,7 +275010,7 @@ } } ], - "specLocation": "xpack/usage/XPackUsageRequest.ts#L23-L49" + "specLocation": "xpack/usage/XPackUsageRequest.ts#L24-L51" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index c50ea9a666..32f8e957ed 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -37,6 +37,7 @@ "Dangling type '_types:IndexMetrics'", "Dangling type '_types:LogLevel'", "Dangling type '_types:LongId'", + "Dangling type '_types:MediaType'", "Dangling type '_types:ScriptBase'", "Dangling type '_types:Transform'", "Dangling type '_types:UnitFloatSeconds'", diff --git a/specification/_global/bulk/BulkRequest.ts b/specification/_global/bulk/BulkRequest.ts index 3c34bfb623..e76bd85c98 100644 --- a/specification/_global/bulk/BulkRequest.ts +++ b/specification/_global/bulk/BulkRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Fields, IndexName, + MediaType, Refresh, Routing, WaitForActiveShards @@ -166,6 +167,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * True or false if to include the document source in the error message in case of parsing errors. diff --git a/specification/_global/capabilities/CapabilitiesRequest.ts b/specification/_global/capabilities/CapabilitiesRequest.ts index 76f6a33d61..89eb55ea51 100644 --- a/specification/_global/capabilities/CapabilitiesRequest.ts +++ b/specification/_global/capabilities/CapabilitiesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported. @@ -34,6 +35,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * REST method to check diff --git a/specification/_global/clear_scroll/ClearScrollRequest.ts b/specification/_global/clear_scroll/ClearScrollRequest.ts index 0ea0ad6cf5..b6f102ea96 100644 --- a/specification/_global/clear_scroll/ClearScrollRequest.ts +++ b/specification/_global/clear_scroll/ClearScrollRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ScrollIds } from '@_types/common' +import { MediaType, ScrollIds } from '@_types/common' /** * Clear a scrolling search. @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ scroll_id?: ScrollIds } + request_media_type: MediaType.Text | MediaType.Json + response_media_type: MediaType.Json body?: { /** * The scroll IDs to clear. diff --git a/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts b/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts index 922650cead..c2e31d3380 100644 --- a/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts +++ b/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Close a point in time. @@ -39,6 +39,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The ID of the point-in-time. diff --git a/specification/_global/count/CountRequest.ts b/specification/_global/count/CountRequest.ts index 0837919f24..afe138f4e2 100644 --- a/specification/_global/count/CountRequest.ts +++ b/specification/_global/count/CountRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Routing } from '@_types/common' import { double, long } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' @@ -61,6 +61,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/create/CreateRequest.ts b/specification/_global/create/CreateRequest.ts index 06e19ff024..5c54674b79 100644 --- a/specification/_global/create/CreateRequest.ts +++ b/specification/_global/create/CreateRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, Refresh, Routing, VersionNumber, @@ -130,6 +131,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * True or false if to include the document source in the error message in case of parsing errors. diff --git a/specification/_global/delete/DeleteRequest.ts b/specification/_global/delete/DeleteRequest.ts index 1d92d6c3a0..48f2167414 100644 --- a/specification/_global/delete/DeleteRequest.ts +++ b/specification/_global/delete/DeleteRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, Refresh, Routing, SequenceNumber, @@ -95,6 +96,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/delete_by_query/DeleteByQueryRequest.ts b/specification/_global/delete_by_query/DeleteByQueryRequest.ts index 09e4db4233..1e61e56a5c 100644 --- a/specification/_global/delete_by_query/DeleteByQueryRequest.ts +++ b/specification/_global/delete_by_query/DeleteByQueryRequest.ts @@ -22,6 +22,7 @@ import { Conflicts, ExpandWildcards, Indices, + MediaType, Routing, SearchType, Slices, @@ -137,6 +138,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts index e98ff6eba7..e7effffd04 100644 --- a/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts +++ b/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TaskId } from '@_types/common' +import { MediaType, TaskId } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ task_id: TaskId } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_global/delete_script/DeleteScriptRequest.ts b/specification/_global/delete_script/DeleteScriptRequest.ts index 586e1a29ae..c00ef98e7d 100644 --- a/specification/_global/delete_script/DeleteScriptRequest.ts +++ b/specification/_global/delete_script/DeleteScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/_global/exists/DocumentExistsRequest.ts b/specification/_global/exists/DocumentExistsRequest.ts index 5b78709d63..a9b5ac37cd 100644 --- a/specification/_global/exists/DocumentExistsRequest.ts +++ b/specification/_global/exists/DocumentExistsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -72,6 +73,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/exists_source/SourceExistsRequest.ts b/specification/_global/exists_source/SourceExistsRequest.ts index 71384dd241..cc5189589d 100644 --- a/specification/_global/exists_source/SourceExistsRequest.ts +++ b/specification/_global/exists_source/SourceExistsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -65,6 +66,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/explain/ExplainRequest.ts b/specification/_global/explain/ExplainRequest.ts index 3e44fc21df..5068375023 100644 --- a/specification/_global/explain/ExplainRequest.ts +++ b/specification/_global/explain/ExplainRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Id, IndexName, Routing } from '@_types/common' +import { Fields, Id, IndexName, MediaType, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' import { SourceConfigParam } from '@global/search/_types/SourceFilter' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The analyzer to use for the query string. diff --git a/specification/_global/field_caps/FieldCapabilitiesRequest.ts b/specification/_global/field_caps/FieldCapabilitiesRequest.ts index a65294402b..20938f30a5 100644 --- a/specification/_global/field_caps/FieldCapabilitiesRequest.ts +++ b/specification/_global/field_caps/FieldCapabilitiesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, diff --git a/specification/_global/get/GetRequest.ts b/specification/_global/get/GetRequest.ts index 6370063dff..689450b773 100644 --- a/specification/_global/get/GetRequest.ts +++ b/specification/_global/get/GetRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -107,6 +108,7 @@ export interface Request extends RequestBase { /** The name of the index that contains the document. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether the request forces synthetic `_source`. diff --git a/specification/_global/get_script/GetScriptRequest.ts b/specification/_global/get_script/GetScriptRequest.ts index ae747ad3a8..77224b4e3c 100644 --- a/specification/_global/get_script/GetScriptRequest.ts +++ b/specification/_global/get_script/GetScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/_global/get_script_context/GetScriptContextRequest.ts b/specification/_global/get_script_context/GetScriptContextRequest.ts index 1b69e9025b..3dc2a89a91 100644 --- a/specification/_global/get_script_context/GetScriptContextRequest.ts +++ b/specification/_global/get_script_context/GetScriptContextRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get script contexts. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts b/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts index 95ceed49c3..720b56d294 100644 --- a/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts +++ b/specification/_global/get_script_languages/GetScriptLanguagesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get script languages. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/get_source/SourceRequest.ts b/specification/_global/get_source/SourceRequest.ts index bf8f338273..6c60d1d253 100644 --- a/specification/_global/get_source/SourceRequest.ts +++ b/specification/_global/get_source/SourceRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -64,6 +65,7 @@ export interface Request extends RequestBase { /** The name of the index that contains the document. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The node or shard the operation should be performed on. diff --git a/specification/_global/health_report/Request.ts b/specification/_global/health_report/Request.ts index 50ba8b6816..9ccbc7ea77 100644 --- a/specification/_global/health_report/Request.ts +++ b/specification/_global/health_report/Request.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the cluster health. @@ -62,6 +63,7 @@ export interface Request extends RequestBase { */ feature?: string | string[] } + response_media_type: MediaType.Json query_parameters: { /** * Explicit operation timeout. diff --git a/specification/_global/index/IndexRequest.ts b/specification/_global/index/IndexRequest.ts index 6a4dae61ec..a11566d119 100644 --- a/specification/_global/index/IndexRequest.ts +++ b/specification/_global/index/IndexRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, IndexName, + MediaType, OpType, Refresh, Routing, @@ -185,6 +186,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/info/RootNodeInfoRequest.ts b/specification/_global/info/RootNodeInfoRequest.ts index 5efb702c84..767ea90794 100644 --- a/specification/_global/info/RootNodeInfoRequest.ts +++ b/specification/_global/info/RootNodeInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get cluster info. @@ -37,4 +38,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/knn_search/KnnSearchRequest.ts b/specification/_global/knn_search/KnnSearchRequest.ts index aa1c59036a..a001bd6cbd 100644 --- a/specification/_global/knn_search/KnnSearchRequest.ts +++ b/specification/_global/knn_search/KnnSearchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Indices, Routing } from '@_types/common' +import { Fields, Indices, MediaType, Routing } from '@_types/common' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' import { SourceConfig } from '@global/search/_types/SourceFilter' import { Query } from './_types/Knn' @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of specific routing values. diff --git a/specification/_global/mget/MultiGetRequest.ts b/specification/_global/mget/MultiGetRequest.ts index f175b8b987..e64a473fad 100644 --- a/specification/_global/mget/MultiGetRequest.ts +++ b/specification/_global/mget/MultiGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Ids, IndexName, Routing } from '@_types/common' +import { Fields, Ids, IndexName, MediaType, Routing } from '@_types/common' import { SourceConfigParam } from '@global/search/_types/SourceFilter' import { Operation } from './types' @@ -64,6 +64,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Should this request force synthetic _source? diff --git a/specification/_global/msearch/MultiSearchRequest.ts b/specification/_global/msearch/MultiSearchRequest.ts index d57764866f..93cec47795 100644 --- a/specification/_global/msearch/MultiSearchRequest.ts +++ b/specification/_global/msearch/MultiSearchRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Routing, SearchType } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + Routing, + SearchType +} from '@_types/common' import { long } from '@_types/Numeric' import { RequestItem } from './types' @@ -64,6 +70,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. diff --git a/specification/_global/msearch_template/MultiSearchTemplateRequest.ts b/specification/_global/msearch_template/MultiSearchTemplateRequest.ts index 8a3656d145..22a5ccb8ed 100644 --- a/specification/_global/msearch_template/MultiSearchTemplateRequest.ts +++ b/specification/_global/msearch_template/MultiSearchTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, SearchType } from '@_types/common' +import { Indices, MediaType, SearchType } from '@_types/common' import { long } from '@_types/Numeric' import { RequestItem } from './types' @@ -65,6 +65,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If `true`, network round-trips are minimized for cross-cluster search requests. diff --git a/specification/_global/mtermvectors/MultiTermVectorsRequest.ts b/specification/_global/mtermvectors/MultiTermVectorsRequest.ts index 4373531571..7d7b34e4d0 100644 --- a/specification/_global/mtermvectors/MultiTermVectorsRequest.ts +++ b/specification/_global/mtermvectors/MultiTermVectorsRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -65,6 +66,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index 814f70fc58..e1b1d484a9 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Routing } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' @@ -82,6 +82,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Extend the length of time that the point in time persists. diff --git a/specification/_global/ping/PingRequest.ts b/specification/_global/ping/PingRequest.ts index 5d6e45ac2f..d1117f2a42 100644 --- a/specification/_global/ping/PingRequest.ts +++ b/specification/_global/ping/PingRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Ping the cluster. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['HEAD'] } ] + response_media_type: MediaType.Json } diff --git a/specification/_global/put_script/PutScriptRequest.ts b/specification/_global/put_script/PutScriptRequest.ts index d31a4420be..13ab37470e 100644 --- a/specification/_global/put_script/PutScriptRequest.ts +++ b/specification/_global/put_script/PutScriptRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' import { StoredScript } from '@_types/Scripting' import { Duration } from '@_types/Time' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ context?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The context in which the script or search template should run. diff --git a/specification/_global/rank_eval/RankEvalRequest.ts b/specification/_global/rank_eval/RankEvalRequest.ts index 22f1842c97..714a56e9c0 100644 --- a/specification/_global/rank_eval/RankEvalRequest.ts +++ b/specification/_global/rank_eval/RankEvalRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { RankEvalMetric, RankEvalRequestItem } from './types' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. diff --git a/specification/_global/reindex/ReindexRequest.ts b/specification/_global/reindex/ReindexRequest.ts index b5b38975a9..35dab84a25 100644 --- a/specification/_global/reindex/ReindexRequest.ts +++ b/specification/_global/reindex/ReindexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { Conflicts, Slices, WaitForActiveShards } from '@_types/common' +import { + Conflicts, + MediaType, + Slices, + WaitForActiveShards +} from '@_types/common' import { float, integer, long } from '@_types/Numeric' import { Script } from '@_types/Scripting' import { Duration } from '@_types/Time' @@ -221,6 +226,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request refreshes affected shards to make this operation visible to search. diff --git a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts index 8d49812825..46c8c31b17 100644 --- a/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts +++ b/specification/_global/reindex_rethrottle/ReindexRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_global/render_search_template/RenderSearchTemplateRequest.ts b/specification/_global/render_search_template/RenderSearchTemplateRequest.ts index 89d9117ade..438e1ec52b 100644 --- a/specification/_global/render_search_template/RenderSearchTemplateRequest.ts +++ b/specification/_global/render_search_template/RenderSearchTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The ID of the search template to render. diff --git a/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts b/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts index 8c8d52005d..5d6ca6e7bf 100644 --- a/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts +++ b/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Script } from '@_types/Scripting' import { PainlessContext, PainlessContextSetup } from './types' @@ -44,6 +45,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The context that the script should run in. diff --git a/specification/_global/scroll/ScrollRequest.ts b/specification/_global/scroll/ScrollRequest.ts index b0f4150239..9a2ae72a0b 100644 --- a/specification/_global/scroll/ScrollRequest.ts +++ b/specification/_global/scroll/ScrollRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ScrollId } from '@_types/common' +import { MediaType, ScrollId } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ scroll_id?: ScrollId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to retain the search context for scrolling. diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index fc7d9cfa6b..c162c6d5d1 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexName, Indices, + MediaType, Routing, SearchType, SuggestMode, @@ -98,6 +99,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/search_mvt/SearchMvtRequest.ts b/specification/_global/search_mvt/SearchMvtRequest.ts index 8935c9df7e..80f03d48ab 100644 --- a/specification/_global/search_mvt/SearchMvtRequest.ts +++ b/specification/_global/search_mvt/SearchMvtRequest.ts @@ -19,7 +19,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { Field, Fields, Indices } from '@_types/common' +import { Field, Fields, Indices, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -206,6 +206,8 @@ export interface Request extends RequestBase { /** The Y coordinate for the vector tile to search. */ y: Coordinate } + request_media_type: MediaType.Json + response_media_type: MediaType.MapboxVectorTile query_parameters: { /** * If `false`, the meta layer's feature is the bounding box of the tile. diff --git a/specification/_global/search_shards/SearchShardsRequest.ts b/specification/_global/search_shards/SearchShardsRequest.ts index 2d69861276..36cb89c99a 100644 --- a/specification/_global/search_shards/SearchShardsRequest.ts +++ b/specification/_global/search_shards/SearchShardsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Routing } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/search_template/SearchTemplateRequest.ts b/specification/_global/search_template/SearchTemplateRequest.ts index 405e446b8e..d6edab9011 100644 --- a/specification/_global/search_template/SearchTemplateRequest.ts +++ b/specification/_global/search_template/SearchTemplateRequest.ts @@ -22,6 +22,7 @@ import { ExpandWildcards, Id, Indices, + MediaType, Routing, SearchType } from '@_types/common' @@ -57,6 +58,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/terms_enum/TermsEnumRequest.ts b/specification/_global/terms_enum/TermsEnumRequest.ts index c2c8dbc10d..77d0065f75 100644 --- a/specification/_global/terms_enum/TermsEnumRequest.ts +++ b/specification/_global/terms_enum/TermsEnumRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, IndexName } from '@_types/common' +import { Field, IndexName, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The string to match at the start of indexed terms. If not provided, all terms in the field are considered. */ field: Field diff --git a/specification/_global/termvectors/TermVectorsRequest.ts b/specification/_global/termvectors/TermVectorsRequest.ts index 190078eae9..b09462bfe5 100644 --- a/specification/_global/termvectors/TermVectorsRequest.ts +++ b/specification/_global/termvectors/TermVectorsRequest.ts @@ -23,6 +23,7 @@ import { Fields, Id, IndexName, + MediaType, Routing, VersionNumber, VersionType @@ -100,6 +101,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expressions of fields to include in the statistics. diff --git a/specification/_global/update/UpdateRequest.ts b/specification/_global/update/UpdateRequest.ts index 1b961b4362..a2b5a8c54e 100644 --- a/specification/_global/update/UpdateRequest.ts +++ b/specification/_global/update/UpdateRequest.ts @@ -22,6 +22,7 @@ import { Fields, Id, IndexName, + MediaType, Refresh, Routing, SequenceNumber, @@ -80,6 +81,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this primary term. diff --git a/specification/_global/update_by_query/UpdateByQueryRequest.ts b/specification/_global/update_by_query/UpdateByQueryRequest.ts index 2a77b5e6e2..161add6df5 100644 --- a/specification/_global/update_by_query/UpdateByQueryRequest.ts +++ b/specification/_global/update_by_query/UpdateByQueryRequest.ts @@ -22,6 +22,7 @@ import { Conflicts, ExpandWildcards, Indices, + MediaType, Routing, SearchType, Slices, @@ -141,6 +142,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts index 5e37131147..6b07991379 100644 --- a/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts +++ b/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The throttle for this request in sub-requests per second. diff --git a/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts b/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts index 5ae988ac69..b541754c27 100644 --- a/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts +++ b/specification/_internal/delete_desired_balance/InternalDeleteDesiredBalanceRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * This API is a diagnostics API and the output should not be relied upon for building applications. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts b/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts index 046c42fbcd..e18a284e17 100644 --- a/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts +++ b/specification/_internal/delete_desired_nodes/InternalDeleteDesiredNodesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Designed for indirect use by ECE/ESS and ECK, direct use is not supported. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts b/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts index 5b1ace6e51..9b545dd549 100644 --- a/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts +++ b/specification/_internal/get_desired_balance/InternalGetDesiredBalanceRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * This API is a diagnostics API and the output should not be relied upon for building applications. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts b/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts index fca80bae87..d006f8f710 100644 --- a/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts +++ b/specification/_internal/get_desired_nodes/InternalGetDesiredNodesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Gets the latest desired nodes. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts b/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts index 51d8f05a8d..3656ac353c 100644 --- a/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts +++ b/specification/_internal/prevalidate_node_removal/InternalPrevalidateNodeRemovalRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Prevalidates node removal from the cluster. @@ -33,6 +34,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of node names to prevalidate diff --git a/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts b/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts index 4d4229b8cf..ad2a110f7e 100644 --- a/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts +++ b/specification/_internal/update_desired_nodes/InternalUpdateDesiredNodesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -45,6 +46,8 @@ export interface Request extends RequestBase { */ version: long } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Simulate the update diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 5730f63b55..8359509e86 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -248,6 +248,19 @@ export enum HttpMethod { HEAD } +export enum MediaType { + Arrow = 'application/vnd.apache.arrow.stream', + Cbor = 'application/cbor', + Csv = 'text/csv', + EventStream = 'text/event-stream', + Json = 'application/json', + MapboxVectorTile = 'application/vnd.mapbox-vector-tile', + Ndjson = 'application/x-ndjson', + Smile = 'application/x-jackson-smile', + Text = 'text/plain', + Yaml = 'application/x-yaml' +} + export enum Level { cluster, indices, diff --git a/specification/async_search/delete/AsyncSearchDeleteRequest.ts b/specification/async_search/delete/AsyncSearchDeleteRequest.ts index f06d60b3eb..e7563da023 100644 --- a/specification/async_search/delete/AsyncSearchDeleteRequest.ts +++ b/specification/async_search/delete/AsyncSearchDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async search. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/async_search/get/AsyncSearchGetRequest.ts b/specification/async_search/get/AsyncSearchGetRequest.ts index bd0abc8f75..d1652011d0 100644 --- a/specification/async_search/get/AsyncSearchGetRequest.ts +++ b/specification/async_search/get/AsyncSearchGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The length of time that the async search should be available in the cluster. diff --git a/specification/async_search/status/AsyncSearchStatusRequest.ts b/specification/async_search/status/AsyncSearchStatusRequest.ts index 9de0bfa2e0..c0e3e59c6e 100644 --- a/specification/async_search/status/AsyncSearchStatusRequest.ts +++ b/specification/async_search/status/AsyncSearchStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { /** A unique identifier for the async search. */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The length of time that the async search needs to be available. diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index d59bc5c304..e8ddd8ab1e 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexName, Indices, + MediaType, Routing, SearchType, SuggestMode @@ -84,6 +85,8 @@ export interface Request extends RequestBase { /** A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Blocks and waits until the search is completed up to a certain timeout. diff --git a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts index af93f8dbed..39cc2e31d9 100644 --- a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -41,6 +41,7 @@ export interface Request extends RequestBase { /** Name of the autoscaling policy */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts index 4dbf3f8cc9..8fb4a0febf 100644 --- a/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts +++ b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the autoscaling capacity. @@ -47,6 +48,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts index 1a34420285..b0e1d4e5ec 100644 --- a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -41,6 +41,7 @@ export interface Request extends RequestBase { /** Name of the autoscaling policy */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts index 9fcb9de543..6d574f2235 100644 --- a/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { AutoscalingPolicy } from '@autoscaling/_types/AutoscalingPolicy' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { /** Name of the autoscaling policy */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cat/aliases/CatAliasesRequest.ts b/specification/cat/aliases/CatAliasesRequest.ts index 7af7767d25..91bc98dd31 100644 --- a/specification/cat/aliases/CatAliasesRequest.ts +++ b/specification/cat/aliases/CatAliasesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ExpandWildcards, Names } from '@_types/common' +import { ExpandWildcards, MediaType, Names } from '@_types/common' import { CatAliasesColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -48,6 +48,7 @@ export interface Request extends CatRequestBase { /** A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. */ name?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/allocation/CatAllocationRequest.ts b/specification/cat/allocation/CatAllocationRequest.ts index 559ab8f238..f13bf9e8db 100644 --- a/specification/cat/allocation/CatAllocationRequest.ts +++ b/specification/cat/allocation/CatAllocationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names, NodeIds } from '@_types/common' +import { MediaType, Names, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' import { CatAllocationColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -48,6 +48,7 @@ export interface Request extends CatRequestBase { /** A comma-separated list of node identifiers or names used to limit the returned information. */ node_id?: NodeIds } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/component_templates/CatComponentTemplatesRequest.ts b/specification/cat/component_templates/CatComponentTemplatesRequest.ts index 7f131988b7..276ace2cb7 100644 --- a/specification/cat/component_templates/CatComponentTemplatesRequest.ts +++ b/specification/cat/component_templates/CatComponentTemplatesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatComponentColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { * If it is omitted, all component templates are returned. */ name?: string } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/count/CatCountRequest.ts b/specification/cat/count/CatCountRequest.ts index a1b3b5f087..700d9b9836 100644 --- a/specification/cat/count/CatCountRequest.ts +++ b/specification/cat/count/CatCountRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { CatCountColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. It supports simple wildcards. diff --git a/specification/cat/fielddata/CatFielddataRequest.ts b/specification/cat/fielddata/CatFielddataRequest.ts index 5cf2f58b39..54f639a26a 100644 --- a/specification/cat/fielddata/CatFielddataRequest.ts +++ b/specification/cat/fielddata/CatFielddataRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Fields, Names } from '@_types/common' +import { Fields, MediaType, Names } from '@_types/common' import { CatFieldDataColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ fields?: Fields } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** Comma-separated list of fields used to limit returned information. */ fields?: Fields diff --git a/specification/cat/health/CatHealthRequest.ts b/specification/cat/health/CatHealthRequest.ts index dcbe0bdefe..f0355ddf32 100644 --- a/specification/cat/health/CatHealthRequest.ts +++ b/specification/cat/health/CatHealthRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { CatRequestBase } from '@cat/_types/CatBase' /** @@ -45,6 +45,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If true, returns `HH:MM:SS` and Unix epoch timestamps. diff --git a/specification/cat/help/CatHelpRequest.ts b/specification/cat/help/CatHelpRequest.ts index 877fd430f6..b7fa73d25d 100644 --- a/specification/cat/help/CatHelpRequest.ts +++ b/specification/cat/help/CatHelpRequest.ts @@ -17,6 +17,8 @@ * under the License. */ +import { MediaType } from '@_types/common' + /** * Get CAT help. * @@ -33,4 +35,5 @@ export interface Request { methods: ['GET'] } ] + response_media_type: MediaType.Text } diff --git a/specification/cat/indices/CatIndicesRequest.ts b/specification/cat/indices/CatIndicesRequest.ts index 222e531067..180b148a4b 100644 --- a/specification/cat/indices/CatIndicesRequest.ts +++ b/specification/cat/indices/CatIndicesRequest.ts @@ -17,7 +17,13 @@ * under the License. */ -import { ExpandWildcards, HealthStatus, Indices, Names } from '@_types/common' +import { + ExpandWildcards, + HealthStatus, + Indices, + MediaType, + Names +} from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -63,6 +69,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The type of index that wildcard patterns can match. diff --git a/specification/cat/master/CatMasterRequest.ts b/specification/cat/master/CatMasterRequest.ts index f214287165..f86a2fdbd9 100644 --- a/specification/cat/master/CatMasterRequest.ts +++ b/specification/cat/master/CatMasterRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -40,6 +40,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index 65dd92fa84..c43ccb6b9e 100644 --- a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -50,6 +50,7 @@ export interface Request extends CatRequestBase { /** The ID of the data frame analytics to fetch */ id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard expression matches no configs. diff --git a/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts b/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts index c7628c2aa8..d3614233f5 100644 --- a/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts +++ b/specification/cat/ml_datafeeds/CatDatafeedsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatDatafeedColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -55,6 +55,7 @@ export interface Request extends CatRequestBase { */ datafeed_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/cat/ml_jobs/CatJobsRequest.ts b/specification/cat/ml_jobs/CatJobsRequest.ts index 34e4d543fc..f828dd720a 100644 --- a/specification/cat/ml_jobs/CatJobsRequest.ts +++ b/specification/cat/ml_jobs/CatJobsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CatAnomalyDetectorColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -55,6 +55,7 @@ export interface Request extends CatRequestBase { */ job_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index d9413b5281..5dc449c0a1 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ model_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. diff --git a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts index 796c2f2e08..5b0363fed3 100644 --- a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts +++ b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index 86a1905270..6177a37686 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatNodeColumns, CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, return the full node ID. If `false`, return the shortened node ID. diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index 245f337083..400b721efe 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/plugins/CatPluginsRequest.ts b/specification/cat/plugins/CatPluginsRequest.ts index b857e16e2d..0c311c057e 100644 --- a/specification/cat/plugins/CatPluginsRequest.ts +++ b/specification/cat/plugins/CatPluginsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 0ffa203307..0ef5166341 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { CatRecoveryColumns, CatRequestBase } from '@cat/_types/CatBase' /** @@ -52,6 +52,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, the response only includes ongoing shard recoveries. diff --git a/specification/cat/repositories/CatRepositoriesRequest.ts b/specification/cat/repositories/CatRepositoriesRequest.ts index be53e62718..985451a576 100644 --- a/specification/cat/repositories/CatRepositoriesRequest.ts +++ b/specification/cat/repositories/CatRepositoriesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/segments/CatSegmentsRequest.ts b/specification/cat/segments/CatSegmentsRequest.ts index c19964b21e..2f05814066 100644 --- a/specification/cat/segments/CatSegmentsRequest.ts +++ b/specification/cat/segments/CatSegmentsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatSegmentsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * A comma-separated list of columns names to display. diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index 2aef08af36..22ce04f1af 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatShardColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ index?: Indices } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 28f230f617..a832836dcb 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatSnapshotsColumns } from '@cat/_types/CatBase' @@ -53,6 +53,7 @@ export interface Request extends CatRequestBase { */ repository?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * If `true`, the response does not include information from unavailable snapshots. diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 7223ca9147..3da81d5108 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -39,6 +39,7 @@ export interface Request extends CatRequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The task action names, which are used to limit the response. diff --git a/specification/cat/templates/CatTemplatesRequest.ts b/specification/cat/templates/CatTemplatesRequest.ts index ca9e3805a9..2bcb7a3242 100644 --- a/specification/cat/templates/CatTemplatesRequest.ts +++ b/specification/cat/templates/CatTemplatesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase } from '@cat/_types/CatBase' @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ name?: Name } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/thread_pool/CatThreadPoolRequest.ts b/specification/cat/thread_pool/CatThreadPoolRequest.ts index f83d447f53..0e58eb1da7 100644 --- a/specification/cat/thread_pool/CatThreadPoolRequest.ts +++ b/specification/cat/thread_pool/CatThreadPoolRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' import { CatRequestBase, CatThreadPoolColumns } from '@cat/_types/CatBase' @@ -51,6 +51,7 @@ export interface Request extends CatRequestBase { */ thread_pool_patterns?: Names } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * List of columns to appear in the response. Supports simple wildcards. diff --git a/specification/cat/transforms/CatTransformsRequest.ts b/specification/cat/transforms/CatTransformsRequest.ts index 5d8b01947c..73f1273ba3 100644 --- a/specification/cat/transforms/CatTransformsRequest.ts +++ b/specification/cat/transforms/CatTransformsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { CatRequestBase, CatTransformColumns } from '@cat/_types/CatBase' @@ -54,6 +54,7 @@ export interface Request extends CatRequestBase { */ transform_id?: Id } + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. diff --git a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts index 1d661ab1f7..f6e5016b16 100644 --- a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts +++ b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** The auto-follow pattern collection to delete. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/follow/CreateFollowIndexRequest.ts b/specification/ccr/follow/CreateFollowIndexRequest.ts index 9b28d5c35a..4e4a545ea1 100644 --- a/specification/ccr/follow/CreateFollowIndexRequest.ts +++ b/specification/ccr/follow/CreateFollowIndexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, IndexName, WaitForActiveShards } from '@_types/common' +import { + ByteSize, + IndexName, + MediaType, + WaitForActiveShards +} from '@_types/common' import { integer, long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -44,6 +49,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/follow_info/FollowInfoRequest.ts b/specification/ccr/follow_info/FollowInfoRequest.ts index 3ba355df66..73014cf6ee 100644 --- a/specification/ccr/follow_info/FollowInfoRequest.ts +++ b/specification/ccr/follow_info/FollowInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A comma-delimited list of follower index patterns. */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts index 420ee63a34..7dd06cccb7 100644 --- a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts +++ b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** A comma-delimited list of index patterns. */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a response. diff --git a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts index 5f9a995569..6da37299ca 100644 --- a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts +++ b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Uuid } from '@_types/common' +import { IndexName, MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { /** Name of the leader index for which specified follower retention leases should be removed */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts index 976fd20d32..d783c37bf2 100644 --- a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts +++ b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { * If you do not specify a name, the API returns information for all collections. */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts index e9e3335c5b..4b32f2ecdb 100644 --- a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts +++ b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { /** The name of the auto-follow pattern to pause. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts index f2ac1d3255..55cde3ac7b 100644 --- a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts +++ b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** The name of the follower index. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts index 3adc5098ad..a0cc056c6d 100644 --- a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts +++ b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, IndexPattern, IndexPatterns, Name } from '@_types/common' +import { + ByteSize, + IndexPattern, + IndexPatterns, + MediaType, + Name +} from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' @@ -50,6 +56,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts index 71045499f9..45f396ebe5 100644 --- a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts +++ b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** The name of the auto-follow pattern to resume. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts index f7d5723bd9..ecbd9272da 100644 --- a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts +++ b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { /** Name of the follow index to resume following */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ccr/stats/CcrStatsRequest.ts b/specification/ccr/stats/CcrStatsRequest.ts index 39e31b08c9..139de72322 100644 --- a/specification/ccr/stats/CcrStatsRequest.ts +++ b/specification/ccr/stats/CcrStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get cross-cluster replication stats. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ccr/unfollow/UnfollowIndexRequest.ts b/specification/ccr/unfollow/UnfollowIndexRequest.ts index ec469d7633..f359ce90eb 100644 --- a/specification/ccr/unfollow/UnfollowIndexRequest.ts +++ b/specification/ccr/unfollow/UnfollowIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { /** The name of the follower index. */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts index 191c2c6485..3d592a14b5 100644 --- a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -41,6 +41,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, returns information about disk usage and shard sizes. diff --git a/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts b/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts index cdead961a5..b59e092cee 100644 --- a/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts +++ b/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts index e2d068f999..446a813d3e 100644 --- a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts +++ b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Clear cluster voting config exclusions. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts b/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts index 413567e5a3..962f9e5026 100644 --- a/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts +++ b/specification/cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is diff --git a/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts b/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts index 297f4fbee0..ec1d4305fc 100644 --- a/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts +++ b/specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/cluster/get_settings/ClusterGetSettingsRequest.ts b/specification/cluster/get_settings/ClusterGetSettingsRequest.ts index b0ee416818..d88e2d46cb 100644 --- a/specification/cluster/get_settings/ClusterGetSettingsRequest.ts +++ b/specification/cluster/get_settings/ClusterGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get cluster-wide settings. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/cluster/health/ClusterHealthRequest.ts b/specification/cluster/health/ClusterHealthRequest.ts index 5bc4a77f3c..da16606062 100644 --- a/specification/cluster/health/ClusterHealthRequest.ts +++ b/specification/cluster/health/ClusterHealthRequest.ts @@ -23,6 +23,7 @@ import { HealthStatus, Indices, Level, + MediaType, WaitForActiveShards, WaitForEvents } from '@_types/common' @@ -65,6 +66,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Whether to expand wildcard expression to concrete indices that are open, closed or both. diff --git a/specification/cluster/info/ClusterInfoRequest.ts b/specification/cluster/info/ClusterInfoRequest.ts index 9d49cbf9ea..803d64d811 100644 --- a/specification/cluster/info/ClusterInfoRequest.ts +++ b/specification/cluster/info/ClusterInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ClusterInfoTargets } from '@_types/common' +import { ClusterInfoTargets, MediaType } from '@_types/common' /** * Get cluster info. @@ -39,4 +39,5 @@ export interface Request extends RequestBase { /** Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. */ target: ClusterInfoTargets } + response_media_type: MediaType.Json } diff --git a/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts b/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts index 6e026fa9d3..691667e167 100644 --- a/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts +++ b/specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the pending cluster tasks. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request retrieves information from the local node only. diff --git a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts index 7076174eef..a6750137cf 100644 --- a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts +++ b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids, Names } from '@_types/common' +import { Ids, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the names of the nodes to exclude from the diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index 4701e5cadb..22149e5d01 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, VersionNumber } from '@_types/common' +import { MediaType, Metadata, Name, VersionNumber } from '@_types/common' import { Duration } from '@_types/Time' import { IndexState } from '@indices/_types/IndexState' @@ -67,6 +67,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this request cannot replace or update existing component templates. diff --git a/specification/cluster/put_settings/ClusterPutSettingsRequest.ts b/specification/cluster/put_settings/ClusterPutSettingsRequest.ts index fd8ac6dae8..32d992240f 100644 --- a/specification/cluster/put_settings/ClusterPutSettingsRequest.ts +++ b/specification/cluster/put_settings/ClusterPutSettingsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -55,6 +56,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Return settings in flat format diff --git a/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts b/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts index 83d8fa7ae3..1d744327f4 100644 --- a/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts +++ b/specification/cluster/remote_info/ClusterRemoteInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get remote cluster information. @@ -43,4 +44,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/cluster/reroute/ClusterRerouteRequest.ts b/specification/cluster/reroute/ClusterRerouteRequest.ts index 06fb169930..b8b5d4bb90 100644 --- a/specification/cluster/reroute/ClusterRerouteRequest.ts +++ b/specification/cluster/reroute/ClusterRerouteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metrics } from '@_types/common' +import { MediaType, Metrics } from '@_types/common' import { Duration } from '@_types/Time' import { Command } from './types' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, then the request simulates the operation. diff --git a/specification/cluster/state/ClusterStateRequest.ts b/specification/cluster/state/ClusterStateRequest.ts index 28754cf707..ecd38b1987 100644 --- a/specification/cluster/state/ClusterStateRequest.ts +++ b/specification/cluster/state/ClusterStateRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, Metrics, VersionNumber } from '@_types/common' @@ -75,6 +76,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard indices expression resolves into no concrete indices. diff --git a/specification/cluster/stats/ClusterStatsRequest.ts b/specification/cluster/stats/ClusterStatsRequest.ts index c2d97881f6..35ec4f4fb7 100644 --- a/specification/cluster/stats/ClusterStatsRequest.ts +++ b/specification/cluster/stats/ClusterStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { /** Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. */ node_id?: NodeIds } + response_media_type: MediaType.Json query_parameters: { /** * Include remote cluster data into the response diff --git a/specification/connector/check_in/ConnectorCheckInRequest.ts b/specification/connector/check_in/ConnectorCheckInRequest.ts index c573372ad6..939067e5c6 100644 --- a/specification/connector/check_in/ConnectorCheckInRequest.ts +++ b/specification/connector/check_in/ConnectorCheckInRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Check in a connector. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/delete/ConnectorDeleteRequest.ts b/specification/connector/delete/ConnectorDeleteRequest.ts index 66755da46f..ddbe2981fe 100644 --- a/specification/connector/delete/ConnectorDeleteRequest.ts +++ b/specification/connector/delete/ConnectorDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a connector. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * A flag indicating if associated sync jobs should be also removed. diff --git a/specification/connector/get/ConnectorGetRequest.ts b/specification/connector/get/ConnectorGetRequest.ts index 1a529a6d4a..89a8c2ef4b 100644 --- a/specification/connector/get/ConnectorGetRequest.ts +++ b/specification/connector/get/ConnectorGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a connector. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ connector_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts b/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts index 5239799b99..2a83e5255d 100644 --- a/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts +++ b/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * Connector last sync stats */ diff --git a/specification/connector/list/ConnectorListRequest.ts b/specification/connector/list/ConnectorListRequest.ts index 593c7369cf..f1806f40da 100644 --- a/specification/connector/list/ConnectorListRequest.ts +++ b/specification/connector/list/ConnectorListRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -36,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Starting offset diff --git a/specification/connector/post/ConnectorPostRequest.ts b/specification/connector/post/ConnectorPostRequest.ts index 1907e63abf..4334a5190a 100644 --- a/specification/connector/post/ConnectorPostRequest.ts +++ b/specification/connector/post/ConnectorPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Create a connector. @@ -41,6 +41,8 @@ export interface Request extends RequestBase { * The connector document to be created */ /** @codegen_name connector */ + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { description?: string index_name?: IndexName diff --git a/specification/connector/put/ConnectorPutRequest.ts b/specification/connector/put/ConnectorPutRequest.ts index ae4dfe35dd..8d47329db0 100644 --- a/specification/connector/put/ConnectorPutRequest.ts +++ b/specification/connector/put/ConnectorPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' /** * Create or update a connector. @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ connector_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector document to be created */ diff --git a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts index c1296329e6..0032e34c84 100644 --- a/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts +++ b/specification/connector/secret_delete/ConnectorSecretDeleteRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Deletes a connector secret. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/connector/secret_get/ConnectorSecretGetRequest.ts b/specification/connector/secret_get/ConnectorSecretGetRequest.ts index dd1d440c27..c1967707c2 100644 --- a/specification/connector/secret_get/ConnectorSecretGetRequest.ts +++ b/specification/connector/secret_get/ConnectorSecretGetRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Retrieves a secret stored by Connectors. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/connector/secret_post/ConnectorSecretPostRequest.ts b/specification/connector/secret_post/ConnectorSecretPostRequest.ts index 9129b46d59..b5faed76c5 100644 --- a/specification/connector/secret_post/ConnectorSecretPostRequest.ts +++ b/specification/connector/secret_post/ConnectorSecretPostRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates a secret for a Connector. @@ -32,6 +33,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { value?: string } diff --git a/specification/connector/secret_put/ConnectorSecretPutRequest.ts b/specification/connector/secret_put/ConnectorSecretPutRequest.ts index 7e44e2975b..227e37099c 100644 --- a/specification/connector/secret_put/ConnectorSecretPutRequest.ts +++ b/specification/connector/secret_put/ConnectorSecretPutRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates or updates a secret for a Connector. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json body: { value: string } diff --git a/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts b/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts index d0c95b9ff8..5e86e4467b 100644 --- a/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts +++ b/specification/connector/sync_job_cancel/SyncJobCancelRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Cancel a connector sync job. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts b/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts index e7d89d943b..193d66235e 100644 --- a/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts +++ b/specification/connector/sync_job_check_in/SyncJobCheckInRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Check in a connector sync job. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_claim/SyncJobClaimRequest.ts b/specification/connector/sync_job_claim/SyncJobClaimRequest.ts index 2de2b9b622..1a96ceab4d 100644 --- a/specification/connector/sync_job_claim/SyncJobClaimRequest.ts +++ b/specification/connector/sync_job_claim/SyncJobClaimRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The cursor object from the last incremental sync job. diff --git a/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts b/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts index 79d268f91f..92ba8dd853 100644 --- a/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts +++ b/specification/connector/sync_job_delete/SyncJobDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a connector sync job. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_error/SyncJobErrorRequest.ts b/specification/connector/sync_job_error/SyncJobErrorRequest.ts index c18e913449..9727f78028 100644 --- a/specification/connector/sync_job_error/SyncJobErrorRequest.ts +++ b/specification/connector/sync_job_error/SyncJobErrorRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Set a connector sync job error. @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The error for the connector sync job error field. diff --git a/specification/connector/sync_job_get/SyncJobGetRequest.ts b/specification/connector/sync_job_get/SyncJobGetRequest.ts index c3ccecf86e..7967d8f97c 100644 --- a/specification/connector/sync_job_get/SyncJobGetRequest.ts +++ b/specification/connector/sync_job_get/SyncJobGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a connector sync job. @@ -39,4 +39,5 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/connector/sync_job_list/SyncJobListRequest.ts b/specification/connector/sync_job_list/SyncJobListRequest.ts index 0ef837f650..a40cd4d535 100644 --- a/specification/connector/sync_job_list/SyncJobListRequest.ts +++ b/specification/connector/sync_job_list/SyncJobListRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { SyncStatus } from '../_types/Connector' import { SyncJobType } from '../_types/SyncJob' @@ -38,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Starting offset diff --git a/specification/connector/sync_job_post/SyncJobPostRequest.ts b/specification/connector/sync_job_post/SyncJobPostRequest.ts index 00c4a29c39..fc3ae1315c 100644 --- a/specification/connector/sync_job_post/SyncJobPostRequest.ts +++ b/specification/connector/sync_job_post/SyncJobPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SyncJobTriggerMethod, SyncJobType } from '../_types/SyncJob' /** @@ -40,6 +40,8 @@ export interface Request extends RequestBase { * The sync job to be created */ /** @codegen_name sync_job */ + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The id of the associated connector diff --git a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts index 4b1f05b57f..366fbee05f 100644 --- a/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts +++ b/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { integer, long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ connector_sync_job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The number of documents the sync job deleted. diff --git a/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts b/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts index 0a4903d1ed..93da322940 100644 --- a/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts +++ b/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Activate the connector draft filter. @@ -41,4 +41,6 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts b/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts index 0fd8f7c645..c77d66615d 100644 --- a/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts +++ b/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector API key ID. * @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector api key request body */ diff --git a/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts b/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts index 6d10709768..6c35cd4f37 100644 --- a/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts +++ b/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { ConnectorConfiguration } from '../_types/Connector' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector configuration */ diff --git a/specification/connector/update_error/ConnectorUpdateErrorRequest.ts b/specification/connector/update_error/ConnectorUpdateErrorRequest.ts index 34d85bc6c0..cf2a74ae85 100644 --- a/specification/connector/update_error/ConnectorUpdateErrorRequest.ts +++ b/specification/connector/update_error/ConnectorUpdateErrorRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { WithNullValue } from '@spec_utils/utils' /** @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector error */ diff --git a/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts b/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts index e575f0ba2f..b09905eae7 100644 --- a/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts +++ b/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { ConnectorFeatures } from '../_types/Connector' /** @@ -52,6 +52,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector configuration */ diff --git a/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts b/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts index 1f2b9e99a0..998c5534f0 100644 --- a/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts +++ b/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { FilteringAdvancedSnippet, FilteringConfig, @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector draft filtering configuration */ diff --git a/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts b/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts index 0a3b0b993b..3d45f9ecdb 100644 --- a/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts +++ b/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { FilteringRulesValidation } from '@connector/_types/Connector' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { validation: FilteringRulesValidation } diff --git a/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts b/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts index a7cc78bb7c..932e2a4d73 100644 --- a/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts +++ b/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' import { WithNullValue } from '@spec_utils/utils' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector index name */ diff --git a/specification/connector/update_name/ConnectorUpdateNameRequest.ts b/specification/connector/update_name/ConnectorUpdateNameRequest.ts index 18d4e902e2..d51176d336 100644 --- a/specification/connector/update_name/ConnectorUpdateNameRequest.ts +++ b/specification/connector/update_name/ConnectorUpdateNameRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector name and description. @@ -39,6 +39,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector name and description */ diff --git a/specification/connector/update_native/ConnectorUpdateNativeRequest.ts b/specification/connector/update_native/ConnectorUpdateNativeRequest.ts index 126bad1357..461b8f7595 100644 --- a/specification/connector/update_native/ConnectorUpdateNativeRequest.ts +++ b/specification/connector/update_native/ConnectorUpdateNativeRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector is_native flag. @@ -39,6 +39,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector is_native flag */ diff --git a/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts b/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts index 02430cf450..507db7158a 100644 --- a/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts +++ b/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { IngestPipelineParams } from '../_types/Connector' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector pipeline object */ diff --git a/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts b/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts index 1b061b13d9..2cf5143240 100644 --- a/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts +++ b/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SchedulingConfiguration } from '../_types/Connector' /** @@ -40,6 +40,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector scheduling object */ diff --git a/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts b/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts index ca7f7cec4e..2b355f95d8 100644 --- a/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts +++ b/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update the connector service type. @@ -39,6 +39,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector service type */ diff --git a/specification/connector/update_status/ConnectorUpdateStatusRequest.ts b/specification/connector/update_status/ConnectorUpdateStatusRequest.ts index f47f5b726b..deca9e4bb9 100644 --- a/specification/connector/update_status/ConnectorUpdateStatusRequest.ts +++ b/specification/connector/update_status/ConnectorUpdateStatusRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { ConnectorStatus } from '../_types/Connector' /** @@ -40,6 +40,8 @@ export interface Request extends RequestBase { */ connector_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The connector service type */ diff --git a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts index 9bacf770b0..4303ec78d4 100644 --- a/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts +++ b/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Uuid } from '@_types/common' +import { MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ index_uuid: Uuid } + response_media_type: MediaType.Json query_parameters: { /** * This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. diff --git a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts index 14e6a1823b..0565b8238c 100644 --- a/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts +++ b/specification/dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Uuid } from '@_types/common' +import { MediaType, Uuid } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ index_uuid: Uuid } + response_media_type: MediaType.Json query_parameters: { /** * This parameter must be set to true to import a dangling index. diff --git a/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts b/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts index 545b72ece9..f19d79ccee 100644 --- a/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts +++ b/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the dangling indices. @@ -39,4 +40,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts index 9f2ef71295..dcd0909f85 100644 --- a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts +++ b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts index 68a85f6a7a..ab5dbe34ec 100644 --- a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts +++ b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts index 361c662662..0f5c8d9edd 100644 --- a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts +++ b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts index cd62e0b1da..b5a90eea93 100644 --- a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts +++ b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Policy } from '@enrich/_types/Policy' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/enrich/stats/EnrichStatsRequest.ts b/specification/enrich/stats/EnrichStatsRequest.ts index 0f43ce5c8b..e8cc30217e 100644 --- a/specification/enrich/stats/EnrichStatsRequest.ts +++ b/specification/enrich/stats/EnrichStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get enrich stats. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/eql/delete/EqlDeleteRequest.ts b/specification/eql/delete/EqlDeleteRequest.ts index aeb140631c..31063ede78 100644 --- a/specification/eql/delete/EqlDeleteRequest.ts +++ b/specification/eql/delete/EqlDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async EQL search. @@ -44,4 +44,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/eql/get/EqlGetRequest.ts b/specification/eql/get/EqlGetRequest.ts index ba5fb258ce..fcffa86545 100644 --- a/specification/eql/get/EqlGetRequest.ts +++ b/specification/eql/get/EqlGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period for which the search and its results are stored on the cluster. diff --git a/specification/eql/get_status/EqlGetStatusRequest.ts b/specification/eql/get_status/EqlGetStatusRequest.ts index 4867b14dc4..f32d87a138 100644 --- a/specification/eql/get_status/EqlGetStatusRequest.ts +++ b/specification/eql/get_status/EqlGetStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the async EQL status. @@ -39,4 +39,5 @@ export interface Request extends RequestBase { /** Identifier for the search. */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/eql/search/EqlSearchRequest.ts b/specification/eql/search/EqlSearchRequest.ts index d4d2145e47..e037544e25 100644 --- a/specification/eql/search/EqlSearchRequest.ts +++ b/specification/eql/search/EqlSearchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Field, Indices } from '@_types/common' +import { ExpandWildcards, Field, Indices, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer, uint } from '@_types/Numeric' import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { /** Comma-separated list of index names to scope the operation */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard indices expression resolves into no concrete indices. diff --git a/specification/esql/async_query/AsyncQueryRequest.ts b/specification/esql/async_query/AsyncQueryRequest.ts index 23f7c944e3..55f09d994b 100644 --- a/specification/esql/async_query/AsyncQueryRequest.ts +++ b/specification/esql/async_query/AsyncQueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { FieldValue } from '@_types/common' +import { FieldValue, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' import { TableValuesContainer } from '@esql/_types/TableValuesContainer' @@ -37,6 +37,8 @@ import { Dictionary } from '@spec_utils/Dictionary' * @index_privileges read */ export interface Request extends RequestBase { + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards. diff --git a/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts b/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts index 9a78be3a87..a10c62f93a 100644 --- a/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts +++ b/specification/esql/async_query_delete/AsyncQueryDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async ES|QL query. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/esql/async_query_get/AsyncQueryGetRequest.ts b/specification/esql/async_query_get/AsyncQueryGetRequest.ts index fb0e98eb73..fa39caa7c2 100644 --- a/specification/esql/async_query_get/AsyncQueryGetRequest.ts +++ b/specification/esql/async_query_get/AsyncQueryGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { EsqlFormat } from '@esql/query/QueryParameters' @@ -40,6 +40,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. diff --git a/specification/esql/async_query_stop/AsyncQueryStopRequest.ts b/specification/esql/async_query_stop/AsyncQueryStopRequest.ts index f7e975e956..95d775e9e6 100644 --- a/specification/esql/async_query_stop/AsyncQueryStopRequest.ts +++ b/specification/esql/async_query_stop/AsyncQueryStopRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Stop async ES|QL query. @@ -39,6 +39,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. diff --git a/specification/esql/query/QueryRequest.ts b/specification/esql/query/QueryRequest.ts index c1ad8e0331..ea2f82ffac 100644 --- a/specification/esql/query/QueryRequest.ts +++ b/specification/esql/query/QueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { FieldValue } from '@_types/common' +import { FieldValue, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { TableValuesContainer } from '@esql/_types/TableValuesContainer' import { EsqlFormat } from '@esql/query/QueryParameters' @@ -40,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A short version of the Accept header, e.g. json, yaml. diff --git a/specification/features/get_features/GetFeaturesRequest.ts b/specification/features/get_features/GetFeaturesRequest.ts index 3e85c362b3..e6130f6c2f 100644 --- a/specification/features/get_features/GetFeaturesRequest.ts +++ b/specification/features/get_features/GetFeaturesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the features. @@ -43,6 +44,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/features/reset_features/ResetFeaturesRequest.ts b/specification/features/reset_features/ResetFeaturesRequest.ts index 41d2414330..f71ae31213 100644 --- a/specification/features/reset_features/ResetFeaturesRequest.ts +++ b/specification/features/reset_features/ResetFeaturesRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Reset the features. @@ -50,6 +51,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts b/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts index e31b304253..4f57922832 100644 --- a/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts +++ b/specification/fleet/delete_secret/FleetDeleteSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Deletes a secret stored by Fleet. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/fleet/get_secret/FleetGetSecretRequest.ts b/specification/fleet/get_secret/FleetGetSecretRequest.ts index 2624de94c2..be3d98c8f9 100644 --- a/specification/fleet/get_secret/FleetGetSecretRequest.ts +++ b/specification/fleet/get_secret/FleetGetSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Retrieves a secret stored by Fleet. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { /** The ID of the secret */ id: string } + response_media_type: MediaType.Json } diff --git a/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts b/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts index 7919b91026..b0791b8014 100644 --- a/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts +++ b/specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexAlias, IndexName } from '@_types/common' +import { IndexAlias, IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Checkpoint } from '../_types/Checkpoints' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ index: IndexName | IndexAlias } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A boolean value which controls whether to wait (until the timeout) for the global checkpoints diff --git a/specification/fleet/msearch/MultiSearchRequest.ts b/specification/fleet/msearch/MultiSearchRequest.ts index 46280f6cb4..108d8ec786 100644 --- a/specification/fleet/msearch/MultiSearchRequest.ts +++ b/specification/fleet/msearch/MultiSearchRequest.ts @@ -22,6 +22,7 @@ import { ExpandWildcards, IndexAlias, IndexName, + MediaType, SearchType } from '@_types/common' import { long } from '@_types/Numeric' @@ -57,6 +58,8 @@ export interface Request extends RequestBase { */ index?: IndexName | IndexAlias } + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. diff --git a/specification/fleet/post_secret/FleetPostSecretRequest.ts b/specification/fleet/post_secret/FleetPostSecretRequest.ts index e03cba4ccb..4b101638a2 100644 --- a/specification/fleet/post_secret/FleetPostSecretRequest.ts +++ b/specification/fleet/post_secret/FleetPostSecretRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Creates a secret stored by Fleet. @@ -32,6 +33,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { value: string } diff --git a/specification/fleet/search/SearchRequest.ts b/specification/fleet/search/SearchRequest.ts index 6c9b78ff4d..4ae383c9d3 100644 --- a/specification/fleet/search/SearchRequest.ts +++ b/specification/fleet/search/SearchRequest.ts @@ -25,6 +25,7 @@ import { Fields, IndexAlias, IndexName, + MediaType, Routing, SearchType, SuggestMode, @@ -74,6 +75,8 @@ export interface Request extends RequestBase { */ index: IndexName | IndexAlias } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { allow_no_indices?: boolean analyzer?: string diff --git a/specification/graph/explore/GraphExploreRequest.ts b/specification/graph/explore/GraphExploreRequest.ts index de1886c80b..0fc25cb1cb 100644 --- a/specification/graph/explore/GraphExploreRequest.ts +++ b/specification/graph/explore/GraphExploreRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Routing } from '@_types/common' +import { Indices, MediaType, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' import { VertexDefinition } from '@graph/_types/Vertex' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Custom value used to route operations to a specific shard. diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index 17e2be2796..a154ddb925 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ policy: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index e38ef3aaf8..b1ae1ca6a3 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Filters the returned indices to only indices that are managed by ILM and are in an error state, either due to an encountering an error while executing the policy, or attempting to use a policy that does not exist. diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index a374e348ea..b512ef7bbb 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ policy?: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/get_status/GetIlmStatusRequest.ts b/specification/ilm/get_status/GetIlmStatusRequest.ts index 5ca238aca2..65993a2420 100644 --- a/specification/ilm/get_status/GetIlmStatusRequest.ts +++ b/specification/ilm/get_status/GetIlmStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the ILM status. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ilm/migrate_to_data_tiers/Request.ts b/specification/ilm/migrate_to_data_tiers/Request.ts index 4887adf61b..60ee878fd7 100644 --- a/specification/ilm/migrate_to_data_tiers/Request.ts +++ b/specification/ilm/migrate_to_data_tiers/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Migrate to data tiers routing. @@ -46,6 +47,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. diff --git a/specification/ilm/move_to_step/MoveToStepRequest.ts b/specification/ilm/move_to_step/MoveToStepRequest.ts index bdd10362af..75f0d50c83 100644 --- a/specification/ilm/move_to_step/MoveToStepRequest.ts +++ b/specification/ilm/move_to_step/MoveToStepRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { StepKey } from './types' /** @@ -52,6 +52,8 @@ export interface Request extends RequestBase { /** The name of the index whose lifecycle step is to change */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The step that the index is expected to be in. diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index ce5071d87e..756a7d8cd9 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Policy } from '@ilm/_types/Policy' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ policy: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/remove_policy/RemovePolicyRequest.ts b/specification/ilm/remove_policy/RemovePolicyRequest.ts index f94a62900f..8a8d0b206a 100644 --- a/specification/ilm/remove_policy/RemovePolicyRequest.ts +++ b/specification/ilm/remove_policy/RemovePolicyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Remove policies from an index. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { /** The name of the index to remove policy on */ index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/ilm/retry/RetryIlmRequest.ts b/specification/ilm/retry/RetryIlmRequest.ts index 7448f2aae9..2260942917 100644 --- a/specification/ilm/retry/RetryIlmRequest.ts +++ b/specification/ilm/retry/RetryIlmRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Retry a policy. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { /** The name of the indices (comma-separated) whose failed lifecycle step is to be retry */ index: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index 0f57107f14..de6b33c3d7 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start the ILM plugin. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 6aa89ec787..16b608256a 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop the ILM plugin. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/add_block/IndicesAddBlockRequest.ts b/specification/indices/add_block/IndicesAddBlockRequest.ts index 95546e2a4b..293dc9db2e 100644 --- a/specification/indices/add_block/IndicesAddBlockRequest.ts +++ b/specification/indices/add_block/IndicesAddBlockRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, IndexName } from '@_types/common' +import { ExpandWildcards, IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ block: IndicesBlockOptions } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/analyze/IndicesAnalyzeRequest.ts b/specification/indices/analyze/IndicesAnalyzeRequest.ts index d04cfba83f..79f1137af9 100644 --- a/specification/indices/analyze/IndicesAnalyzeRequest.ts +++ b/specification/indices/analyze/IndicesAnalyzeRequest.ts @@ -21,7 +21,7 @@ import { CharFilter } from '@_types/analysis/char_filters' import { TokenFilter } from '@_types/analysis/token_filters' import { Tokenizer } from '@_types/analysis/tokenizers' import { RequestBase } from '@_types/Base' -import { Field, IndexName } from '@_types/common' +import { Field, IndexName, MediaType } from '@_types/common' import { TextToAnalyze } from './types' /** @@ -59,6 +59,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Index used to derive the analyzer. diff --git a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts index 8f8513b81f..e45f83de53 100644 --- a/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts +++ b/specification/indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' /** * Cancel a migration reindex operation. @@ -35,4 +35,6 @@ export interface Request extends RequestBase { /** The index or data stream name */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/indices/clear_cache/IndicesClearCacheRequest.ts b/specification/indices/clear_cache/IndicesClearCacheRequest.ts index b740c3b851..d0cd5138dc 100644 --- a/specification/indices/clear_cache/IndicesClearCacheRequest.ts +++ b/specification/indices/clear_cache/IndicesClearCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Clear the cache. @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Comma-separated list of data streams, indices, and aliases used to limit the request. diff --git a/specification/indices/clone/IndicesCloneRequest.ts b/specification/indices/clone/IndicesCloneRequest.ts index 0a9c9d11b2..cb5f0c31ba 100644 --- a/specification/indices/clone/IndicesCloneRequest.ts +++ b/specification/indices/clone/IndicesCloneRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, Name, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -93,6 +93,8 @@ export interface Request extends RequestBase { */ target: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/close/CloseIndexRequest.ts b/specification/indices/close/CloseIndexRequest.ts index e0384ac852..7f84277c50 100644 --- a/specification/indices/close/CloseIndexRequest.ts +++ b/specification/indices/close/CloseIndexRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, WaitForActiveShards } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + WaitForActiveShards +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -59,6 +64,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/create/IndicesCreateRequest.ts b/specification/indices/create/IndicesCreateRequest.ts index 4c12a548c7..43aa398a59 100644 --- a/specification/indices/create/IndicesCreateRequest.ts +++ b/specification/indices/create/IndicesCreateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, Name, WaitForActiveShards } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' @@ -67,6 +67,8 @@ export interface Request extends RequestBase { */ index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts index 82c443fab1..81089ab6be 100644 --- a/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts +++ b/specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamName } from '@_types/common' +import { DataStreamName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name: DataStreamName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/create_from/MigrateCreateFromRequest.ts b/specification/indices/create_from/MigrateCreateFromRequest.ts index 36005e478e..9757e6f146 100644 --- a/specification/indices/create_from/MigrateCreateFromRequest.ts +++ b/specification/indices/create_from/MigrateCreateFromRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -39,6 +39,8 @@ export interface Request extends RequestBase { /** The destination index or data stream name */ dest: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name create_from */ body?: CreateFrom } diff --git a/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts b/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts index ed522ffded..a9f9dd5e1e 100644 --- a/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts +++ b/specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, IndexName } from '@_types/common' +import { ExpandWildcards, IndexName, MediaType } from '@_types/common' /** * Get data stream stats. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name?: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/delete/IndicesDeleteRequest.ts b/specification/indices/delete/IndicesDeleteRequest.ts index b2a93c570b..5c0e80f2f8 100644 --- a/specification/indices/delete/IndicesDeleteRequest.ts +++ b/specification/indices/delete/IndicesDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts b/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts index 26182b0c00..37fd3af662 100644 --- a/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts +++ b/specification/indices/delete_alias/IndicesDeleteAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Names } from '@_types/common' +import { Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts b/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts index 5048d290db..ec4c915fac 100644 --- a/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts +++ b/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Whether wildcard expressions should get expanded to open or closed indices (default: open) diff --git a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts index 8ae3d9ac38..a598b5c576 100644 --- a/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts +++ b/specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts b/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts index 35edb921dd..c357a04aab 100644 --- a/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts +++ b/specification/indices/delete_data_stream_options/IndicesDeleteDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Whether wildcard expressions should get expanded to open or closed indices diff --git a/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts b/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts index b35a35e0ca..fa3e81433b 100644 --- a/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts +++ b/specification/indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts b/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts index baa1a10e63..c67dad3a2a 100644 --- a/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts +++ b/specification/indices/delete_template/IndicesDeleteTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/disk_usage/IndicesDiskUsageRequest.ts b/specification/indices/disk_usage/IndicesDiskUsageRequest.ts index a4c457b201..7c6bc105f1 100644 --- a/specification/indices/disk_usage/IndicesDiskUsageRequest.ts +++ b/specification/indices/disk_usage/IndicesDiskUsageRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Analyze the index disk usage. @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters?: { /** * If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/downsample/Request.ts b/specification/indices/downsample/Request.ts index 64e32d4d41..ffcdd24bad 100644 --- a/specification/indices/downsample/Request.ts +++ b/specification/indices/downsample/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { DownsampleConfig } from '@indices/_types/Downsample' /** @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ target_index: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name config */ body: DownsampleConfig } diff --git a/specification/indices/exists/IndicesExistsRequest.ts b/specification/indices/exists/IndicesExistsRequest.ts index 545f2005bf..3138fc67c8 100644 --- a/specification/indices/exists/IndicesExistsRequest.ts +++ b/specification/indices/exists/IndicesExistsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Check indices. @@ -41,6 +41,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts index c4797d222d..f173d69663 100644 --- a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts +++ b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' /** * Check aliases. @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts b/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts index eed0fbcca3..c173f700bb 100644 --- a/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts +++ b/specification/indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. diff --git a/specification/indices/exists_template/IndicesExistsTemplateRequest.ts b/specification/indices/exists_template/IndicesExistsTemplateRequest.ts index 73e9858d6b..ca78516f83 100644 --- a/specification/indices/exists_template/IndicesExistsTemplateRequest.ts +++ b/specification/indices/exists_template/IndicesExistsTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether to use a flat format for the response. diff --git a/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts b/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts index 240f3704e9..fe731b72a0 100644 --- a/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts +++ b/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** Comma-separated list of index names to explain */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Indicates if the API should return the default values the system uses for the index's lifecycle diff --git a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts index dac6f9f1ce..1414d603be 100644 --- a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts +++ b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Get field usage stats. @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/flush/IndicesFlushRequest.ts b/specification/indices/flush/IndicesFlushRequest.ts index 8101115d40..7b7353e742 100644 --- a/specification/indices/flush/IndicesFlushRequest.ts +++ b/specification/indices/flush/IndicesFlushRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Flush data streams or indices. @@ -57,6 +57,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/forcemerge/IndicesForceMergeRequest.ts b/specification/indices/forcemerge/IndicesForceMergeRequest.ts index 1016bc2c91..6cf26dd6e5 100644 --- a/specification/indices/forcemerge/IndicesForceMergeRequest.ts +++ b/specification/indices/forcemerge/IndicesForceMergeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { long } from '@_types/Numeric' /** @@ -99,6 +99,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard indices expression resolves into no concrete indices. diff --git a/specification/indices/get/IndicesGetRequest.ts b/specification/indices/get/IndicesGetRequest.ts index 4a25de881e..95fc26f113 100644 --- a/specification/indices/get/IndicesGetRequest.ts +++ b/specification/indices/get/IndicesGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all value targets only diff --git a/specification/indices/get_alias/IndicesGetAliasRequest.ts b/specification/indices/get_alias/IndicesGetAliasRequest.ts index 24cb53133b..6ba6c95586 100644 --- a/specification/indices/get_alias/IndicesGetAliasRequest.ts +++ b/specification/indices/get_alias/IndicesGetAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' /** * Get aliases. @@ -62,6 +62,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts index 461fe72835..ac1cdfc36e 100644 --- a/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts +++ b/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts b/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts index 9a665f491d..306f3cc6e9 100644 --- a/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts +++ b/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get data stream lifecycle stats. @@ -36,4 +37,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts index 7a46d919c5..c16427f862 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ name?: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts b/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts index ca5768ce29..20d17954e6 100644 --- a/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts +++ b/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts b/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts index ed09b3bd04..61fe3cb220 100644 --- a/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts +++ b/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. If no response is diff --git a/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts b/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts index c6c94b77b9..52cfb7460e 100644 --- a/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts +++ b/specification/indices/get_field_mapping/IndicesGetFieldMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Fields, Indices } from '@_types/common' +import { ExpandWildcards, Fields, Indices, MediaType } from '@_types/common' /** * Get mapping definitions. @@ -55,6 +55,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts b/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts index 33f161bd58..bb647219d4 100644 --- a/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts +++ b/specification/indices/get_index_template/IndicesGetIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { /** Name of index template to retrieve. Wildcard (*) expressions are supported. */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. diff --git a/specification/indices/get_mapping/IndicesGetMappingRequest.ts b/specification/indices/get_mapping/IndicesGetMappingRequest.ts index 51dbc7fb7e..e02ed08d21 100644 --- a/specification/indices/get_mapping/IndicesGetMappingRequest.ts +++ b/specification/indices/get_mapping/IndicesGetMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts index 0f4eec021c..247b45940a 100644 --- a/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts +++ b/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' /** * Get the migration reindexing status. @@ -35,4 +35,6 @@ export interface Request extends RequestBase { /** The index or data stream name. */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/indices/get_settings/IndicesGetSettingsRequest.ts b/specification/indices/get_settings/IndicesGetSettingsRequest.ts index d5cdfbf1dd..b4dde3483f 100644 --- a/specification/indices/get_settings/IndicesGetSettingsRequest.ts +++ b/specification/indices/get_settings/IndicesGetSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Names } from '@_types/common' +import { ExpandWildcards, Indices, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -62,6 +62,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index diff --git a/specification/indices/get_template/IndicesGetTemplateRequest.ts b/specification/indices/get_template/IndicesGetTemplateRequest.ts index a9ba95bbb0..d56c425292 100644 --- a/specification/indices/get_template/IndicesGetTemplateRequest.ts +++ b/specification/indices/get_template/IndicesGetTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, returns settings in flat format. diff --git a/specification/indices/migrate_reindex/MigrateReindexRequest.ts b/specification/indices/migrate_reindex/MigrateReindexRequest.ts index 2eb69556ad..e0cfe83a56 100644 --- a/specification/indices/migrate_reindex/MigrateReindexRequest.ts +++ b/specification/indices/migrate_reindex/MigrateReindexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Reindex legacy backing indices. @@ -32,6 +32,8 @@ import { IndexName } from '@_types/common' * @doc_tag migration */ export interface Request extends RequestBase { + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name reindex */ body: MigrateReindex } diff --git a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts index 2aecf81b32..5f8c3634e4 100644 --- a/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts +++ b/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { /** Name of the index alias to convert to a data stream. */ name: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts b/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts index 245477fce6..05cd809523 100644 --- a/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts +++ b/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Action } from './types' /** @@ -36,6 +37,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Actions to perform. diff --git a/specification/indices/open/IndicesOpenRequest.ts b/specification/indices/open/IndicesOpenRequest.ts index bb0ebc3be8..456a7bdbd6 100644 --- a/specification/indices/open/IndicesOpenRequest.ts +++ b/specification/indices/open/IndicesOpenRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, WaitForActiveShards } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + WaitForActiveShards +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -69,6 +74,7 @@ export interface Request extends RequestBase { */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts index 943920373d..adc150080d 100644 --- a/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts +++ b/specification/indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { /** The name of the data stream to promote */ name: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/indices/put_alias/IndicesPutAliasRequest.ts b/specification/indices/put_alias/IndicesPutAliasRequest.ts index b45196c063..68476340f2 100644 --- a/specification/indices/put_alias/IndicesPutAliasRequest.ts +++ b/specification/indices/put_alias/IndicesPutAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Name, Routing } from '@_types/common' +import { Indices, MediaType, Name, Routing } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Duration } from '@_types/Time' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts index 32570f3ec2..6afb5fa25b 100644 --- a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts +++ b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DownsamplingRound } from '@indices/_types/DownsamplingRound' @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts b/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts index 286d25aaff..68e7edc890 100644 --- a/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts +++ b/specification/indices/put_data_stream_options/IndicesPutDataStreamOptionsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { DataStreamNames, ExpandWildcards } from '@_types/common' +import { DataStreamNames, ExpandWildcards, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DataStreamFailureStore } from '@indices/_types/DataStreamFailureStore' @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ name: DataStreamNames } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Type of data stream that wildcard patterns can match. diff --git a/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts b/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts index 3eb1e02b06..ce7b5ecdff 100644 --- a/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts +++ b/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ name: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request does not actually change the settings on any data streams or indices. Instead, it diff --git a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts index 49667b1c53..f60275bfc2 100644 --- a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts +++ b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { IndexName, Indices, + MediaType, Metadata, Name, VersionNumber @@ -80,6 +81,8 @@ export interface Request extends RequestBase { /** Index or template name */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Name of the index template to create. diff --git a/specification/indices/put_mapping/IndicesPutMappingRequest.ts b/specification/indices/put_mapping/IndicesPutMappingRequest.ts index b2e707b879..c1ec4e0ef6 100644 --- a/specification/indices/put_mapping/IndicesPutMappingRequest.ts +++ b/specification/indices/put_mapping/IndicesPutMappingRequest.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, + MediaType, Metadata, PropertyName } from '@_types/common' @@ -89,6 +90,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/put_settings/IndicesPutSettingsRequest.ts b/specification/indices/put_settings/IndicesPutSettingsRequest.ts index 2c7c9de645..92b842c8c1 100644 --- a/specification/indices/put_settings/IndicesPutSettingsRequest.ts +++ b/specification/indices/put_settings/IndicesPutSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -101,6 +101,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index diff --git a/specification/indices/put_template/IndicesPutTemplateRequest.ts b/specification/indices/put_template/IndicesPutTemplateRequest.ts index b816149dea..51dc813c43 100644 --- a/specification/indices/put_template/IndicesPutTemplateRequest.ts +++ b/specification/indices/put_template/IndicesPutTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name, VersionNumber } from '@_types/common' +import { IndexName, MediaType, Name, VersionNumber } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -67,6 +67,8 @@ export interface Request extends RequestBase { /** The name of the template */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, this request cannot replace or update existing index templates. diff --git a/specification/indices/recovery/IndicesRecoveryRequest.ts b/specification/indices/recovery/IndicesRecoveryRequest.ts index 61153a3568..c82a8ead89 100644 --- a/specification/indices/recovery/IndicesRecoveryRequest.ts +++ b/specification/indices/recovery/IndicesRecoveryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Get index recovery information. @@ -69,6 +69,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the response only includes ongoing shard recoveries. diff --git a/specification/indices/refresh/IndicesRefreshRequest.ts b/specification/indices/refresh/IndicesRefreshRequest.ts index 478a923fe0..d096a39ae6 100644 --- a/specification/indices/refresh/IndicesRefreshRequest.ts +++ b/specification/indices/refresh/IndicesRefreshRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Refresh an index. @@ -62,6 +62,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts b/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts index ff73253e94..c29b497b48 100644 --- a/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts +++ b/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Reload search analyzers. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { /** A comma-separated list of index names to reload analyzers for */ index: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Whether to ignore if a wildcard indices expression resolves into no concrete indices. diff --git a/specification/indices/resolve_cluster/ResolveClusterRequest.ts b/specification/indices/resolve_cluster/ResolveClusterRequest.ts index 67c213770b..cfbdde5c38 100644 --- a/specification/indices/resolve_cluster/ResolveClusterRequest.ts +++ b/specification/indices/resolve_cluster/ResolveClusterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Names } from '@_types/common' +import { ExpandWildcards, MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -94,6 +94,7 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing diff --git a/specification/indices/resolve_index/ResolveIndexRequest.ts b/specification/indices/resolve_index/ResolveIndexRequest.ts index cda77632f7..b3e2d022e6 100644 --- a/specification/indices/resolve_index/ResolveIndexRequest.ts +++ b/specification/indices/resolve_index/ResolveIndexRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Names } from '@_types/common' +import { ExpandWildcards, MediaType, Names } from '@_types/common' /** * Resolve indices. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * Type of index that wildcard patterns can match. diff --git a/specification/indices/rollover/IndicesRolloverRequest.ts b/specification/indices/rollover/IndicesRolloverRequest.ts index 22a02afe76..2b3af6011d 100644 --- a/specification/indices/rollover/IndicesRolloverRequest.ts +++ b/specification/indices/rollover/IndicesRolloverRequest.ts @@ -18,7 +18,12 @@ */ import { RequestBase } from '@_types/Base' -import { IndexAlias, IndexName, WaitForActiveShards } from '@_types/common' +import { + IndexAlias, + IndexName, + MediaType, + WaitForActiveShards +} from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' @@ -94,6 +99,8 @@ export interface Request extends RequestBase { */ new_index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, checks whether the current index satisfies the specified conditions but does not perform a rollover. diff --git a/specification/indices/segments/IndicesSegmentsRequest.ts b/specification/indices/segments/IndicesSegmentsRequest.ts index 82f3a70831..de5d2a5f27 100644 --- a/specification/indices/segments/IndicesSegmentsRequest.ts +++ b/specification/indices/segments/IndicesSegmentsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Get index segments. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/shard_stores/IndicesShardStoresRequest.ts b/specification/indices/shard_stores/IndicesShardStoresRequest.ts index f635a98157..750002af3c 100644 --- a/specification/indices/shard_stores/IndicesShardStoresRequest.ts +++ b/specification/indices/shard_stores/IndicesShardStoresRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { ShardStoreStatus } from './types' /** @@ -56,6 +56,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * If false, the request returns an error if any wildcard expression, index alias, or _all diff --git a/specification/indices/shrink/IndicesShrinkRequest.ts b/specification/indices/shrink/IndicesShrinkRequest.ts index 159e272c86..982ab9466f 100644 --- a/specification/indices/shrink/IndicesShrinkRequest.ts +++ b/specification/indices/shrink/IndicesShrinkRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -79,6 +79,8 @@ export interface Request extends RequestBase { */ target: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts index 5b3e340276..46aa012ccb 100644 --- a/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts +++ b/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { IndexTemplate } from '@indices/_types/IndexTemplate' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { /** Name of the index to simulate */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one diff --git a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts index 93c1d9197e..58cdce15f9 100644 --- a/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts +++ b/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Metadata, Name, VersionNumber } from '@_types/common' +import { + Indices, + MediaType, + Metadata, + Name, + VersionNumber +} from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { DataStreamVisibility } from '@indices/_types/DataStream' @@ -51,6 +57,8 @@ export interface Request extends RequestBase { */ name?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. diff --git a/specification/indices/split/IndicesSplitRequest.ts b/specification/indices/split/IndicesSplitRequest.ts index 726d57a4e4..16b7c9f396 100644 --- a/specification/indices/split/IndicesSplitRequest.ts +++ b/specification/indices/split/IndicesSplitRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, WaitForActiveShards } from '@_types/common' +import { IndexName, MediaType, WaitForActiveShards } from '@_types/common' import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { Dictionary } from '@spec_utils/Dictionary' @@ -80,6 +80,8 @@ export interface Request extends RequestBase { */ target: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/stats/IndicesStatsRequest.ts b/specification/indices/stats/IndicesStatsRequest.ts index e532182148..ceff447054 100644 --- a/specification/indices/stats/IndicesStatsRequest.ts +++ b/specification/indices/stats/IndicesStatsRequest.ts @@ -23,6 +23,7 @@ import { Fields, Indices, Level, + MediaType, Metrics } from '@_types/common' @@ -69,6 +70,7 @@ export interface Request extends RequestBase { /** A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. diff --git a/specification/indices/unfreeze/IndicesUnfreezeRequest.ts b/specification/indices/unfreeze/IndicesUnfreezeRequest.ts index 20898408cb..c6bf2eef1c 100644 --- a/specification/indices/unfreeze/IndicesUnfreezeRequest.ts +++ b/specification/indices/unfreeze/IndicesUnfreezeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, IndexName } from '@_types/common' +import { ExpandWildcards, IndexName, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ index: IndexName } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts b/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts index d0c6f0e1fa..ce58ed1a4c 100644 --- a/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts +++ b/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Action } from './types' @@ -36,6 +37,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/indices/validate_query/IndicesValidateQueryRequest.ts b/specification/indices/validate_query/IndicesValidateQueryRequest.ts index b9cbfbba8b..514b1faa93 100644 --- a/specification/indices/validate_query/IndicesValidateQueryRequest.ts +++ b/specification/indices/validate_query/IndicesValidateQueryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Operator } from '@_types/query_dsl/Operator' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ index?: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/specification/inference/chat_completion_unified/UnifiedRequest.ts b/specification/inference/chat_completion_unified/UnifiedRequest.ts index 6602d9448d..52fd554737 100644 --- a/specification/inference/chat_completion_unified/UnifiedRequest.ts +++ b/specification/inference/chat_completion_unified/UnifiedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { RequestChatCompletion } from '@inference/_types/CommonTypes' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.EventStream query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/completion/CompletionRequest.ts b/specification/inference/completion/CompletionRequest.ts index 2b05f213e1..1652e8623b 100644 --- a/specification/inference/completion/CompletionRequest.ts +++ b/specification/inference/completion/CompletionRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/delete/DeleteRequest.ts b/specification/inference/delete/DeleteRequest.ts index c12bcbd16c..314621195d 100644 --- a/specification/inference/delete/DeleteRequest.ts +++ b/specification/inference/delete/DeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { TaskType } from '@inference/_types/TaskType' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ inference_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned. diff --git a/specification/inference/get/GetRequest.ts b/specification/inference/get/GetRequest.ts index a9523a8878..aa244b7e85 100644 --- a/specification/inference/get/GetRequest.ts +++ b/specification/inference/get/GetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { TaskType } from '@inference/_types/TaskType' /** @@ -53,4 +53,5 @@ export interface Request extends RequestBase { */ inference_id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/inference/inference/InferenceRequest.ts b/specification/inference/inference/InferenceRequest.ts index cb9e9487f3..7d60be2e23 100644 --- a/specification/inference/inference/InferenceRequest.ts +++ b/specification/inference/inference/InferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -61,6 +61,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/put/PutRequest.ts b/specification/inference/put/PutRequest.ts index 8343da108e..2949bbd4d6 100644 --- a/specification/inference/put/PutRequest.ts +++ b/specification/inference/put/PutRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { InferenceEndpoint } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -77,6 +77,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts b/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts index c725397056..d66dabee30 100644 --- a/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts +++ b/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AlibabaCloudServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ alibabacloud_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts b/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts index 61927ce3bf..914ed358da 100644 --- a/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts +++ b/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AmazonBedrockServiceSettings, @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ amazonbedrock_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts b/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts index 2e35ef4cec..c324cbac03 100644 --- a/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts +++ b/specification/inference/put_amazonsagemaker/PutAmazonSageMakerRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AmazonSageMakerServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ amazonsagemaker_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_anthropic/PutAnthropicRequest.ts b/specification/inference/put_anthropic/PutAnthropicRequest.ts index d7942495c3..0b850212c6 100644 --- a/specification/inference/put_anthropic/PutAnthropicRequest.ts +++ b/specification/inference/put_anthropic/PutAnthropicRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AnthropicServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ anthropic_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts b/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts index 6ab0d8b029..ff9461a9cb 100644 --- a/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts +++ b/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AzureAiStudioServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ azureaistudio_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts b/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts index af881b68ef..c718c7f195 100644 --- a/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts +++ b/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { AzureOpenAIServiceSettings, @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ azureopenai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_cohere/PutCohereRequest.ts b/specification/inference/put_cohere/PutCohereRequest.ts index 6ebfc47292..b407453735 100644 --- a/specification/inference/put_cohere/PutCohereRequest.ts +++ b/specification/inference/put_cohere/PutCohereRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { CohereServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ cohere_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_custom/PutCustomRequest.ts b/specification/inference/put_custom/PutCustomRequest.ts index f7dcf96d14..024b5b350e 100644 --- a/specification/inference/put_custom/PutCustomRequest.ts +++ b/specification/inference/put_custom/PutCustomRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CustomServiceSettings, CustomServiceType, @@ -93,6 +93,8 @@ export interface Request extends RequestBase { */ custom_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The chunking configuration object. diff --git a/specification/inference/put_deepseek/PutDeepSeekRequest.ts b/specification/inference/put_deepseek/PutDeepSeekRequest.ts index 868fce0dc2..9f2aefc00b 100644 --- a/specification/inference/put_deepseek/PutDeepSeekRequest.ts +++ b/specification/inference/put_deepseek/PutDeepSeekRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DeepSeekServiceSettings, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ deepseek_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts b/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts index b57b062f67..763f9f2566 100644 --- a/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts +++ b/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { ElasticsearchServiceSettings, @@ -69,6 +69,8 @@ export interface Request extends RequestBase { */ elasticsearch_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_elser/PutElserRequest.ts b/specification/inference/put_elser/PutElserRequest.ts index 179bb1e379..34be938dd9 100644 --- a/specification/inference/put_elser/PutElserRequest.ts +++ b/specification/inference/put_elser/PutElserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { ElserServiceSettings, @@ -69,6 +69,8 @@ export interface Request extends RequestBase { */ elser_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts b/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts index 6871ceb750..b92521a53f 100644 --- a/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts +++ b/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { GoogleAiServiceType, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ googleaistudio_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts b/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts index 80cf04059e..4321a2c7b2 100644 --- a/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts +++ b/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { GoogleVertexAIServiceSettings, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ googlevertexai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts b/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts index d4c16ffb84..bf61d80700 100644 --- a/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts +++ b/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { HuggingFaceServiceSettings, @@ -91,6 +91,8 @@ export interface Request extends RequestBase { */ huggingface_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_jinaai/PutJinaAiRequest.ts b/specification/inference/put_jinaai/PutJinaAiRequest.ts index 6685c2c874..d98600fc41 100644 --- a/specification/inference/put_jinaai/PutJinaAiRequest.ts +++ b/specification/inference/put_jinaai/PutJinaAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { JinaAIServiceSettings, @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ jinaai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_mistral/PutMistralRequest.ts b/specification/inference/put_mistral/PutMistralRequest.ts index 3a7b5eaace..9e9d78854e 100644 --- a/specification/inference/put_mistral/PutMistralRequest.ts +++ b/specification/inference/put_mistral/PutMistralRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { MistralServiceSettings, @@ -54,6 +54,8 @@ export interface Request extends RequestBase { */ mistral_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_openai/PutOpenAiRequest.ts b/specification/inference/put_openai/PutOpenAiRequest.ts index b6bb675f46..fd166d7e29 100644 --- a/specification/inference/put_openai/PutOpenAiRequest.ts +++ b/specification/inference/put_openai/PutOpenAiRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { OpenAIServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ openai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_voyageai/PutVoyageAIRequest.ts b/specification/inference/put_voyageai/PutVoyageAIRequest.ts index 2bb4b7ef46..189933270d 100644 --- a/specification/inference/put_voyageai/PutVoyageAIRequest.ts +++ b/specification/inference/put_voyageai/PutVoyageAIRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { VoyageAIServiceSettings, @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ voyageai_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/put_watsonx/PutWatsonxRequest.ts b/specification/inference/put_watsonx/PutWatsonxRequest.ts index 4e51746776..039d121356 100644 --- a/specification/inference/put_watsonx/PutWatsonxRequest.ts +++ b/specification/inference/put_watsonx/PutWatsonxRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { WatsonxServiceSettings, @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ watsonx_inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference endpoint to be created. diff --git a/specification/inference/rerank/RerankRequest.ts b/specification/inference/rerank/RerankRequest.ts index 04ffbed698..b4e601a851 100644 --- a/specification/inference/rerank/RerankRequest.ts +++ b/specification/inference/rerank/RerankRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts b/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts index a9cc760b5a..1de5e6c789 100644 --- a/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts +++ b/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/stream_completion/StreamInferenceRequest.ts b/specification/inference/stream_completion/StreamInferenceRequest.ts index 0e08af6a6f..cd0e7bdf08 100644 --- a/specification/inference/stream_completion/StreamInferenceRequest.ts +++ b/specification/inference/stream_completion/StreamInferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.EventStream query_parameters: { /** * The amount of time to wait for the inference request to complete. diff --git a/specification/inference/text_embedding/TextEmbeddingRequest.ts b/specification/inference/text_embedding/TextEmbeddingRequest.ts index 48a48792c8..a6526539cc 100644 --- a/specification/inference/text_embedding/TextEmbeddingRequest.ts +++ b/specification/inference/text_embedding/TextEmbeddingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { TaskSettings } from '@inference/_types/Services' @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ inference_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies the amount of time to wait for the inference request to complete. diff --git a/specification/inference/update/UpdateInferenceRequest.ts b/specification/inference/update/UpdateInferenceRequest.ts index 56070d3ece..10016aba2f 100644 --- a/specification/inference/update/UpdateInferenceRequest.ts +++ b/specification/inference/update/UpdateInferenceRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { InferenceEndpoint } from '@inference/_types/Services' import { TaskType } from '@inference/_types/TaskType' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ task_type?: TaskType } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name inference_config */ body: InferenceEndpoint } diff --git a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts index 7e50d68e88..6bff4cf28d 100644 --- a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts +++ b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ id: Ids } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts b/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts index 83381e0163..8bb9942490 100644 --- a/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts +++ b/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ id: Ids } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/delete_pipeline/DeletePipelineRequest.ts b/specification/ingest/delete_pipeline/DeletePipelineRequest.ts index d6e7478218..f244e94c9f 100644 --- a/specification/ingest/delete_pipeline/DeletePipelineRequest.ts +++ b/specification/ingest/delete_pipeline/DeletePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts b/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts index 2923eb6cb4..a04dee65b9 100644 --- a/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts +++ b/specification/ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get GeoIP statistics. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts index f094254512..68730ebd7c 100644 --- a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts +++ b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get GeoIP database configurations. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts b/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts index b38a64f029..2f9b86904f 100644 --- a/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts +++ b/specification/ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get IP geolocation database configurations. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ingest/get_pipeline/GetPipelineRequest.ts b/specification/ingest/get_pipeline/GetPipelineRequest.ts index 51c69151a6..584c681ff2 100644 --- a/specification/ingest/get_pipeline/GetPipelineRequest.ts +++ b/specification/ingest/get_pipeline/GetPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts b/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts index 1fac5be4ec..84ae3b4b0c 100644 --- a/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts +++ b/specification/ingest/processor_grok/GrokProcessorPatternsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Run a grok processor. @@ -37,4 +38,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts index 3bef6ac897..a3e51fb53b 100644 --- a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts +++ b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Maxmind } from '@ingest/_types/Database' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts b/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts index 0ebc199297..48e3adcd9d 100644 --- a/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts +++ b/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { DatabaseConfiguration } from '@ingest/_types/Database' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/ingest/put_pipeline/PutPipelineRequest.ts b/specification/ingest/put_pipeline/PutPipelineRequest.ts index d55448b6e5..584cb6821d 100644 --- a/specification/ingest/put_pipeline/PutPipelineRequest.ts +++ b/specification/ingest/put_pipeline/PutPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata, VersionNumber } from '@_types/common' +import { Id, MediaType, Metadata, VersionNumber } from '@_types/common' import { Duration } from '@_types/Time' import { ProcessorContainer } from '@ingest/_types/Processors' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ingest/simulate/SimulatePipelineRequest.ts b/specification/ingest/simulate/SimulatePipelineRequest.ts index cf32f592ce..572e35a793 100644 --- a/specification/ingest/simulate/SimulatePipelineRequest.ts +++ b/specification/ingest/simulate/SimulatePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Pipeline } from '@ingest/_types/Pipeline' import { Document } from '../_types/Simulation' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the response includes output data for each processor in the executed pipeline. diff --git a/specification/license/delete/DeleteLicenseRequest.ts b/specification/license/delete/DeleteLicenseRequest.ts index d9397061bc..3f3d880c6c 100644 --- a/specification/license/delete/DeleteLicenseRequest.ts +++ b/specification/license/delete/DeleteLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Delete the license. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/license/get/GetLicenseRequest.ts b/specification/license/get/GetLicenseRequest.ts index f332aa685b..44af7ce2ce 100644 --- a/specification/license/get/GetLicenseRequest.ts +++ b/specification/license/get/GetLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get license information. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. diff --git a/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts b/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts index 7287abce0c..dc8da5e117 100644 --- a/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts +++ b/specification/license/get_basic_status/GetBasicLicenseStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the basic license status. @@ -33,4 +34,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts b/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts index a9f0d6b8d9..e9db57c6d8 100644 --- a/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts +++ b/specification/license/get_trial_status/GetTrialLicenseStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get the trial status. @@ -33,4 +34,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index c5fb72ecff..f6f04ce85b 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { License } from '@license/_types/License' @@ -43,6 +44,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether you acknowledge the license changes. diff --git a/specification/license/post_start_basic/StartBasicLicenseRequest.ts b/specification/license/post_start_basic/StartBasicLicenseRequest.ts index 429792316a..a4007364ea 100644 --- a/specification/license/post_start_basic/StartBasicLicenseRequest.ts +++ b/specification/license/post_start_basic/StartBasicLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start a basic license. @@ -43,6 +44,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Whether the user has acknowledged acknowledge messages diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index 9b2a25ea6e..a3c144c873 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start a trial. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Whether the user has acknowledged acknowledge messages diff --git a/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts b/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts index 53a43cb6b9..2a06ac1133 100644 --- a/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts +++ b/specification/logstash/delete_pipeline/LogstashDeletePipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a Logstash pipeline. @@ -44,4 +44,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts b/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts index 61025edada..1cc29852a0 100644 --- a/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts +++ b/specification/logstash/get_pipeline/LogstashGetPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get Logstash pipelines. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ id?: Ids } + response_media_type: MediaType.Json } diff --git a/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts b/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts index 1aecb324c1..1c24a2b528 100644 --- a/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts +++ b/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Pipeline } from '@logstash/_types/Pipeline' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name pipeline */ body: Pipeline } diff --git a/specification/migration/deprecations/DeprecationInfoRequest.ts b/specification/migration/deprecations/DeprecationInfoRequest.ts index 6c8e83efa6..26872630b8 100644 --- a/specification/migration/deprecations/DeprecationInfoRequest.ts +++ b/specification/migration/deprecations/DeprecationInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' /** * Get deprecation information. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { /** Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. */ index?: IndexName } + response_media_type: MediaType.Json } diff --git a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts index 7544b39cdf..d9123f88eb 100644 --- a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts +++ b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get feature migration information. @@ -39,4 +40,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts b/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts index ad3e9530bb..68549ae268 100644 --- a/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts +++ b/specification/migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Start the feature migration. @@ -40,4 +41,5 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts b/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts index 5b92ea99b2..e5fbfd7c08 100644 --- a/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts +++ b/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Clear trained model deployment cache. @@ -47,4 +47,6 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/ml/close_job/MlCloseJobRequest.ts b/specification/ml/close_job/MlCloseJobRequest.ts index 8b3b14006c..74214b2d04 100644 --- a/specification/ml/close_job/MlCloseJobRequest.ts +++ b/specification/ml/close_job/MlCloseJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. diff --git a/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts b/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts index e10d72d371..cbdba4623b 100644 --- a/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts +++ b/specification/ml/delete_calendar/MlDeleteCalendarRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a calendar. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts b/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts index 0355641189..7738f0f60b 100644 --- a/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts +++ b/specification/ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete events from a calendar. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ event_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts b/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts index c2909aa3ac..305fb24661 100644 --- a/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts +++ b/specification/ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Ids } from '@_types/common' +import { Id, Ids, MediaType } from '@_types/common' /** * Delete anomaly jobs from a calendar. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ job_id: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts b/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts index 7b15ca57de..6a68538898 100644 --- a/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts +++ b/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. diff --git a/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts b/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts index 2f35026c4c..09f75c4a50 100644 --- a/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts +++ b/specification/ml/delete_datafeed/MlDeleteDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a datafeed. @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Use to forcefully delete a started datafeed; this method is quicker than diff --git a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts index 27c1ec28da..aabecc4f87 100644 --- a/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts +++ b/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { float } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -58,6 +58,8 @@ export interface Request extends RequestBase { */ job_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The desired requests per second for the deletion processes. The default diff --git a/specification/ml/delete_filter/MlDeleteFilterRequest.ts b/specification/ml/delete_filter/MlDeleteFilterRequest.ts index 1c096d9938..29b56bdccc 100644 --- a/specification/ml/delete_filter/MlDeleteFilterRequest.ts +++ b/specification/ml/delete_filter/MlDeleteFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a filter. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ filter_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_forecast/MlDeleteForecastRequest.ts b/specification/ml/delete_forecast/MlDeleteForecastRequest.ts index ecc291643b..3983c7ae06 100644 --- a/specification/ml/delete_forecast/MlDeleteForecastRequest.ts +++ b/specification/ml/delete_forecast/MlDeleteForecastRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ forecast_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether an error occurs when there are no forecasts. In diff --git a/specification/ml/delete_job/MlDeleteJobRequest.ts b/specification/ml/delete_job/MlDeleteJobRequest.ts index 05e34611f4..380f43ba27 100644 --- a/specification/ml/delete_job/MlDeleteJobRequest.ts +++ b/specification/ml/delete_job/MlDeleteJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an anomaly detection job. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ job_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Use to forcefully delete an opened job; this method is quicker than diff --git a/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts b/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts index 78c062e3d0..1390124372 100644 --- a/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts +++ b/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a model snapshot. @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts index 0822ff2f94..5696c4f4b4 100644 --- a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts +++ b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { */ model_id: Id } + response_media_type: MediaType.Json query_parameters: { /** Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. **/ force?: boolean diff --git a/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts b/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts index 4da5715934..c044e54047 100644 --- a/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts +++ b/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' /** * Delete a trained model alias. @@ -50,4 +50,6 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts b/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts index d1b6462413..efd250b37a 100644 --- a/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts +++ b/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field } from '@_types/common' +import { Field, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { AnalysisConfig } from '@ml/_types/Analysis' import { Dictionary } from '@spec_utils/Dictionary' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * For a list of the properties that you can specify in the diff --git a/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts b/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts index ab58bb4b15..8722de298b 100644 --- a/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts +++ b/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName } from '@_types/common' +import { IndexName, MediaType } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' import { DataframeEvaluationContainer } from '@ml/_types/DataframeEvaluation' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Defines the type of evaluation you want to perform. diff --git a/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts b/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts index 96e764ce97..10306d97ec 100644 --- a/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts +++ b/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DataframeAnalysisAnalyzedFields, @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The configuration of how to source the analysis data. It requires an diff --git a/specification/ml/flush_job/MlFlushJobRequest.ts b/specification/ml/flush_job/MlFlushJobRequest.ts index 3814d33c70..f0411b4a02 100644 --- a/specification/ml/flush_job/MlFlushJobRequest.ts +++ b/specification/ml/flush_job/MlFlushJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies to advance to a particular time value. Results are generated diff --git a/specification/ml/forecast/MlForecastJobRequest.ts b/specification/ml/forecast/MlForecastJobRequest.ts index 9133f93330..3d354f2827 100644 --- a/specification/ml/forecast/MlForecastJobRequest.ts +++ b/specification/ml/forecast/MlForecastJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A period of time that indicates how far into the future to forecast. For diff --git a/specification/ml/get_buckets/MlGetBucketsRequest.ts b/specification/ml/get_buckets/MlGetBucketsRequest.ts index 9f0168958a..27f4079e5f 100644 --- a/specification/ml/get_buckets/MlGetBucketsRequest.ts +++ b/specification/ml/get_buckets/MlGetBucketsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ timestamp?: DateTime } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Returns buckets with anomaly scores greater or equal than this value. diff --git a/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts b/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts index ec0071c32f..f50c08b926 100644 --- a/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts +++ b/specification/ml/get_calendar_events/MlGetCalendarEventsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.*/ calendar_id: Id } + response_media_type: MediaType.Json query_parameters: { /** Specifies to get events with timestamps earlier than this time. */ end?: DateTime diff --git a/specification/ml/get_calendars/MlGetCalendarsRequest.ts b/specification/ml/get_calendars/MlGetCalendarsRequest.ts index 2dd33a526d..7c1b32a249 100644 --- a/specification/ml/get_calendars/MlGetCalendarsRequest.ts +++ b/specification/ml/get_calendars/MlGetCalendarsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Page } from '@ml/_types/Page' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.*/ calendar_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. * @server_default 0 diff --git a/specification/ml/get_categories/MlGetCategoriesRequest.ts b/specification/ml/get_categories/MlGetCategoriesRequest.ts index a558d95927..11448288ba 100644 --- a/specification/ml/get_categories/MlGetCategoriesRequest.ts +++ b/specification/ml/get_categories/MlGetCategoriesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { CategoryId, Id } from '@_types/common' +import { CategoryId, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Page } from '@ml/_types/Page' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ category_id?: CategoryId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Skips the specified number of categories. diff --git a/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts b/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts index ad7abdc1c7..e529b4f5fc 100644 --- a/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts +++ b/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts b/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts index 0389c50eaa..4de9a9ff10 100644 --- a/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts +++ b/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts b/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts index b2235aea0f..67a7e5aa71 100644 --- a/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts +++ b/specification/ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get datafeed stats. @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ datafeed_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts b/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts index 73fa0b7f3a..f059ddbf7e 100644 --- a/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts +++ b/specification/ml/get_datafeeds/MlGetDatafeedsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get datafeeds configuration info. @@ -53,6 +53,7 @@ export interface Request extends RequestBase { */ datafeed_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_filters/MlGetFiltersRequest.ts b/specification/ml/get_filters/MlGetFiltersRequest.ts index 35f8fcdd41..a40c411a18 100644 --- a/specification/ml/get_filters/MlGetFiltersRequest.ts +++ b/specification/ml/get_filters/MlGetFiltersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ filter_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Skips the specified number of filters. diff --git a/specification/ml/get_influencers/MlGetInfluencersRequest.ts b/specification/ml/get_influencers/MlGetInfluencersRequest.ts index 43c0476c82..d363d4c8b4 100644 --- a/specification/ml/get_influencers/MlGetInfluencersRequest.ts +++ b/specification/ml/get_influencers/MlGetInfluencersRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_job_stats/MlGetJobStatsRequest.ts b/specification/ml/get_job_stats/MlGetJobStatsRequest.ts index 712c52fbc7..88076115b2 100644 --- a/specification/ml/get_job_stats/MlGetJobStatsRequest.ts +++ b/specification/ml/get_job_stats/MlGetJobStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get anomaly detection job stats. @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ job_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_jobs/MlGetJobsRequest.ts b/specification/ml/get_jobs/MlGetJobsRequest.ts index b9903ea9ab..cd3a1cb768 100644 --- a/specification/ml/get_jobs/MlGetJobsRequest.ts +++ b/specification/ml/get_jobs/MlGetJobsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get anomaly detection jobs configuration info. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ job_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts index 070b821be5..da2e5331a7 100644 --- a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts +++ b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ node_id?: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout diff --git a/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts b/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts index b77dfeb678..89680cf5c9 100644 --- a/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts +++ b/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get anomaly detection job model snapshot upgrade usage info. @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts index b7e028c000..7126d391ab 100644 --- a/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts +++ b/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ snapshot_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts index 85ca6d7976..b36d18b604 100644 --- a/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts +++ b/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime, Duration } from '@_types/Time' @@ -67,6 +67,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts index dea86932d0..91bd52ebe3 100644 --- a/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts +++ b/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, Id } from '@_types/common' +import { Field, Id, MediaType } from '@_types/common' import { double, integer } from '@_types/Numeric' import { DateTime } from '@_types/Time' import { Page } from '@ml/_types/Page' @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, the results are sorted in descending order. diff --git a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts index 48f7ccbd58..06c33f5bc4 100644 --- a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts +++ b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Include } from '@ml/_types/Include' @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ model_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts b/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts index cb69027d12..c800c78d35 100644 --- a/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts +++ b/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ model_id?: Ids } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts index 75f0975860..0fec763e39 100644 --- a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts +++ b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { InferenceConfigUpdateContainer } from '@ml/_types/inference' import { Dictionary } from '@spec_utils/Dictionary' @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the amount of time to wait for inference results. diff --git a/specification/ml/info/MlInfoRequest.ts b/specification/ml/info/MlInfoRequest.ts index 4b50f9e469..5566684a0c 100644 --- a/specification/ml/info/MlInfoRequest.ts +++ b/specification/ml/info/MlInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get machine learning information. @@ -41,4 +42,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/ml/open_job/MlOpenJobRequest.ts b/specification/ml/open_job/MlOpenJobRequest.ts index c0eb92b59c..a9d75e5f45 100644 --- a/specification/ml/open_job/MlOpenJobRequest.ts +++ b/specification/ml/open_job/MlOpenJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the time to wait until a job has opened. diff --git a/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts b/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts index f8eea3311e..2baf70d482 100644 --- a/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts +++ b/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { CalendarEvent } from '../_types/CalendarEvent' /** @@ -41,6 +41,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. */ events: CalendarEvent[] diff --git a/specification/ml/post_data/MlPostJobDataRequest.ts b/specification/ml/post_data/MlPostJobDataRequest.ts index 28333faed3..19de38df7b 100644 --- a/specification/ml/post_data/MlPostJobDataRequest.ts +++ b/specification/ml/post_data/MlPostJobDataRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json | MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * Specifies the end of the bucket resetting range. diff --git a/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts b/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts index bc1c0a2ea2..1eb823bc01 100644 --- a/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts +++ b/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DataframePreviewConfig } from './types' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * A data frame analytics config as described in create data frame analytics diff --git a/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts b/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts index d3fb582d68..7d3c80ff10 100644 --- a/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts +++ b/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime } from '@_types/Time' import { DatafeedConfig } from '@ml/_types/Datafeed' import { JobConfig } from '@ml/_types/Job' @@ -61,6 +61,8 @@ export interface Request extends RequestBase { */ datafeed_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** The start time from where the datafeed preview should begin */ start?: DateTime diff --git a/specification/ml/put_calendar/MlPutCalendarRequest.ts b/specification/ml/put_calendar/MlPutCalendarRequest.ts index 4c01210a91..697a09bc28 100644 --- a/specification/ml/put_calendar/MlPutCalendarRequest.ts +++ b/specification/ml/put_calendar/MlPutCalendarRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Create a calendar. @@ -40,6 +40,8 @@ export interface Request extends RequestBase { /** A string that uniquely identifies a calendar. */ calendar_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * An array of anomaly detection job identifiers. diff --git a/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts b/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts index ca9a1acc9b..bebb517ea8 100644 --- a/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts +++ b/specification/ml/put_calendar_job/MlPutCalendarJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Ids } from '@_types/common' +import { Id, Ids, MediaType } from '@_types/common' /** * Add anomaly detection job to calendar. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { /** An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. */ job_id: Ids } + response_media_type: MediaType.Json } diff --git a/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts b/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts index c2dca85ebc..6659183dfe 100644 --- a/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts +++ b/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { HttpHeaders, Id, Metadata, VersionString } from '@_types/common' +import { + HttpHeaders, + Id, + MediaType, + Metadata, + VersionString +} from '@_types/common' import { integer } from '@_types/Numeric' import { DataframeAnalysisAnalyzedFields, @@ -59,6 +65,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Specifies whether this job can start when there is insufficient machine diff --git a/specification/ml/put_datafeed/MlPutDatafeedRequest.ts b/specification/ml/put_datafeed/MlPutDatafeedRequest.ts index a0b646db70..13ca154b07 100644 --- a/specification/ml/put_datafeed/MlPutDatafeedRequest.ts +++ b/specification/ml/put_datafeed/MlPutDatafeedRequest.ts @@ -24,7 +24,8 @@ import { HttpHeaders, Id, Indices, - IndicesOptions + IndicesOptions, + MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' @@ -70,6 +71,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the `_all` diff --git a/specification/ml/put_filter/MlPutFilterRequest.ts b/specification/ml/put_filter/MlPutFilterRequest.ts index eeb3ae8b30..dd94f38a2a 100644 --- a/specification/ml/put_filter/MlPutFilterRequest.ts +++ b/specification/ml/put_filter/MlPutFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Create a filter. @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ filter_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the filter. diff --git a/specification/ml/put_job/MlPutJobRequest.ts b/specification/ml/put_job/MlPutJobRequest.ts index de0d231dcf..c68c9501bb 100644 --- a/specification/ml/put_job/MlPutJobRequest.ts +++ b/specification/ml/put_job/MlPutJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Id, IndexName } from '@_types/common' +import { ExpandWildcards, Id, IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { AnalysisConfig, AnalysisLimits } from '@ml/_types/Analysis' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the diff --git a/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts b/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts index 7d9ce13d0c..ef47cfd981 100644 --- a/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts +++ b/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { InferenceConfigCreateContainer } from '@ml/_types/inference' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If set to `true` and a `compressed_definition` is provided, diff --git a/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts b/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts index 26529dcc44..777a226a9e 100644 --- a/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts +++ b/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name } from '@_types/common' +import { Id, MediaType, Name } from '@_types/common' /** * Create or update a trained model alias. @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies whether the alias gets reassigned to the specified trained diff --git a/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts b/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts index d3c3709912..51ca732727 100644 --- a/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts +++ b/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer, long } from '@_types/Numeric' /** @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ part: integer } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The definition part for the model. Must be a base64 encoded string. diff --git a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts index 82d0f705b2..cd82adf7f1 100644 --- a/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts +++ b/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { double } from '@_types/Numeric' /** @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The model vocabulary, which must not be empty. diff --git a/specification/ml/reset_job/MlResetJobRequest.ts b/specification/ml/reset_job/MlResetJobRequest.ts index 8d557e57ae..c340212a21 100644 --- a/specification/ml/reset_job/MlResetJobRequest.ts +++ b/specification/ml/reset_job/MlResetJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Reset an anomaly detection job. @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ job_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Should this request wait until the operation has completed before diff --git a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts index 2402d673a2..fadf87258e 100644 --- a/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts +++ b/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Revert to a snapshot. @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If true, deletes the results in the time period between the latest diff --git a/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts b/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts index 3911d13932..ecc329c5b4 100644 --- a/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts +++ b/specification/ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Set upgrade_mode for ML indices. @@ -47,6 +48,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * When `true`, it enables `upgrade_mode` which temporarily halts all job diff --git a/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts b/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts index d3ea79a203..cff9281040 100644 --- a/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts +++ b/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the amount of time to wait until the data frame analytics job diff --git a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts index 1db92aae09..af0aeae9e3 100644 --- a/specification/ml/start_datafeed/MlStartDatafeedRequest.ts +++ b/specification/ml/start_datafeed/MlStartDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { DateTime, Duration } from '@_types/Time' /** @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The time that the datafeed should end, which can be specified by using one of the following formats: diff --git a/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts b/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts index a447d00923..f6d6ee6903 100644 --- a/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts +++ b/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, Id } from '@_types/common' +import { ByteSize, Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The inference cache size (in memory outside the JVM heap) per node for the model. diff --git a/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts b/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts index d632db1587..8e78ab8bd9 100644 --- a/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts +++ b/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts b/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts index e474f3bd94..3dc6f0c6a1 100644 --- a/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts +++ b/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts b/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts index 4f20634400..894cfdee26 100644 --- a/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts +++ b/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Stop a trained model deployment. @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; diff --git a/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts b/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts index e17e37c44b..9674a43c55 100644 --- a/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts +++ b/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the job. diff --git a/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts b/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts index 1c711475a6..ca5edbee41 100644 --- a/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts +++ b/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts @@ -19,7 +19,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Id, IndicesOptions } from '@_types/common' +import { ExpandWildcards, Id, IndicesOptions, MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { */ datafeed_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the diff --git a/specification/ml/update_filter/MlUpdateFilterRequest.ts b/specification/ml/update_filter/MlUpdateFilterRequest.ts index 3fdbece406..115eff6da4 100644 --- a/specification/ml/update_filter/MlUpdateFilterRequest.ts +++ b/specification/ml/update_filter/MlUpdateFilterRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update a filter. @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ filter_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The items to add to the filter. diff --git a/specification/ml/update_job/MlUpdateJobRequest.ts b/specification/ml/update_job/MlUpdateJobRequest.ts index 9405479234..49906f394c 100644 --- a/specification/ml/update_job/MlUpdateJobRequest.ts +++ b/specification/ml/update_job/MlUpdateJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' import { @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ job_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Advanced configuration option. Specifies whether this job can open when diff --git a/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts b/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts index 77cc691324..5bd9b210f4 100644 --- a/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts +++ b/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Update a snapshot. @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A description of the model snapshot. diff --git a/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts b/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts index f6d4291811..67404bd834 100644 --- a/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts +++ b/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { AdaptiveAllocationsSettings } from '@ml/_types/TrainedModel' @@ -44,6 +44,8 @@ export interface Request extends RequestBase { */ model_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The number of model allocations on each node where the model is deployed. diff --git a/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts b/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts index 2729224c8f..62fb517e2e 100644 --- a/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts +++ b/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -56,6 +56,7 @@ export interface Request extends RequestBase { */ snapshot_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * When true, the API won’t respond until the upgrade is complete. diff --git a/specification/ml/validate/MlValidateJobRequest.ts b/specification/ml/validate/MlValidateJobRequest.ts index baabc67f60..059cbb0a9e 100644 --- a/specification/ml/validate/MlValidateJobRequest.ts +++ b/specification/ml/validate/MlValidateJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, IndexName } from '@_types/common' +import { Id, IndexName, MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { AnalysisConfig, AnalysisLimits } from '@ml/_types/Analysis' import { DataDescription } from '@ml/_types/Job' @@ -38,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { job_id?: Id analysis_config?: AnalysisConfig diff --git a/specification/ml/validate_detector/MlValidateDetectorRequest.ts b/specification/ml/validate_detector/MlValidateDetectorRequest.ts index 6a674d1232..356d5c63d8 100644 --- a/specification/ml/validate_detector/MlValidateDetectorRequest.ts +++ b/specification/ml/validate_detector/MlValidateDetectorRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Detector } from '@ml/_types/Detector' /** @@ -35,6 +36,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name detector */ body: Detector } diff --git a/specification/monitoring/bulk/BulkMonitoringRequest.ts b/specification/monitoring/bulk/BulkMonitoringRequest.ts index 31aeb390e4..b066f2b9cf 100644 --- a/specification/monitoring/bulk/BulkMonitoringRequest.ts +++ b/specification/monitoring/bulk/BulkMonitoringRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { OperationContainer, UpdateAction } from '@global/bulk/types' @@ -35,6 +36,8 @@ export interface Request extends RequestBase { methods: ['POST', 'PUT'] } ] + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * Identifier of the monitored system diff --git a/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts b/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts index df50881678..c6ac81f7f7 100644 --- a/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts +++ b/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { long } from '@_types/Numeric' /** @@ -49,4 +49,5 @@ export interface Request extends RequestBase { */ max_archive_version: long } + response_media_type: MediaType.Json } diff --git a/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts b/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts index 7efa1d3363..a30ee8c633 100644 --- a/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts +++ b/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' /** * Get cluster repositories metering. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ node_id: NodeIds } + response_media_type: MediaType.Json } diff --git a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts index d8c41d48bd..294707d0a2 100644 --- a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts +++ b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds, ThreadType } from '@_types/common' +import { MediaType, NodeIds, ThreadType } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + response_media_type: MediaType.Text query_parameters: { /** * If true, known idle threads (e.g. waiting in a socket select, or to get diff --git a/specification/nodes/info/NodesInfoRequest.ts b/specification/nodes/info/NodesInfoRequest.ts index 2c55dd1a03..2994984ed9 100644 --- a/specification/nodes/info/NodesInfoRequest.ts +++ b/specification/nodes/info/NodesInfoRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metrics, NodeIds } from '@_types/common' +import { MediaType, Metrics, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -56,6 +56,7 @@ export interface Request extends RequestBase { /** Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. */ metric?: Metrics } + response_media_type: MediaType.Json query_parameters: { /** * If true, returns settings in flat format. diff --git a/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts b/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts index abcd7e3856..9be1ca9acb 100644 --- a/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts +++ b/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds, Password } from '@_types/common' +import { MediaType, NodeIds, Password } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -53,6 +53,8 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. diff --git a/specification/nodes/stats/NodesStatsRequest.ts b/specification/nodes/stats/NodesStatsRequest.ts index 1c2e57fff2..96d4ded107 100644 --- a/specification/nodes/stats/NodesStatsRequest.ts +++ b/specification/nodes/stats/NodesStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Fields, Level, Metrics, NodeIds } from '@_types/common' +import { Fields, Level, MediaType, Metrics, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -67,6 +67,7 @@ export interface Request extends RequestBase { /** Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. */ index_metric?: Metrics } + response_media_type: MediaType.Json query_parameters: { /** Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. */ completion_fields?: Fields diff --git a/specification/nodes/usage/NodesUsageRequest.ts b/specification/nodes/usage/NodesUsageRequest.ts index 064fd9fe82..b74b8f9b40 100644 --- a/specification/nodes/usage/NodesUsageRequest.ts +++ b/specification/nodes/usage/NodesUsageRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metrics, NodeIds } from '@_types/common' +import { MediaType, Metrics, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -61,6 +61,7 @@ export interface Request extends RequestBase { */ metric?: Metrics } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. diff --git a/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts b/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts index da2dcc4cef..2102b7a84a 100644 --- a/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts +++ b/specification/profiling/flamegraph/ProfilingFlamegraphRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,6 +35,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name conditions */ body: UserDefinedValue } diff --git a/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts b/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts index 6a44713c85..8b54655d9b 100644 --- a/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts +++ b/specification/profiling/stacktraces/ProfilingStacktracesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,6 +35,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** @codegen_name conditions */ body: UserDefinedValue } diff --git a/specification/profiling/status/ProfilingStatusRequest.ts b/specification/profiling/status/ProfilingStatusRequest.ts index e214193301..e03f4954fd 100644 --- a/specification/profiling/status/ProfilingStatusRequest.ts +++ b/specification/profiling/status/ProfilingStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Returns basic information about the status of Universal Profiling. @@ -34,6 +35,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts b/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts index ee08212a06..a95498636c 100644 --- a/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts +++ b/specification/profiling/topn_functions/ProfilingTopnFunctionsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' /** @@ -34,9 +35,12 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The filter conditions for stacktraces * @codegen_name conditions * */ + body: UserDefinedValue } diff --git a/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts b/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts index 08b07c6f55..3d411f7aeb 100644 --- a/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts +++ b/specification/query_rules/delete_rule/QueryRuleDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a query rule. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ rule_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts b/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts index f779eee8cb..6cce29fd1b 100644 --- a/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts +++ b/specification/query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a query ruleset. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/get_rule/QueryRuleGetRequest.ts b/specification/query_rules/get_rule/QueryRuleGetRequest.ts index b1a8699e3b..beba9c0900 100644 --- a/specification/query_rules/get_rule/QueryRuleGetRequest.ts +++ b/specification/query_rules/get_rule/QueryRuleGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a query rule. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ rule_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts b/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts index 60a639002a..3236f993df 100644 --- a/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts +++ b/specification/query_rules/get_ruleset/QueryRulesetGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a query ruleset. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + response_media_type: MediaType.Json } diff --git a/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts b/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts index edeb2fd9d2..f536b531be 100644 --- a/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts +++ b/specification/query_rules/list_rulesets/QueryRulesetListRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get all query rulesets. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The offset from the first result to fetch. diff --git a/specification/query_rules/put_rule/QueryRulePutRequest.ts b/specification/query_rules/put_rule/QueryRulePutRequest.ts index 8b20e7c497..23136b12d3 100644 --- a/specification/query_rules/put_rule/QueryRulePutRequest.ts +++ b/specification/query_rules/put_rule/QueryRulePutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryRuleActions, @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The query rule information. */ diff --git a/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts b/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts index 410083430d..f572dc39c0 100644 --- a/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts +++ b/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { QueryRule } from '../_types/QueryRuleset' /** @@ -49,6 +49,8 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The query rules in this ruleset */ diff --git a/specification/query_rules/test/QueryRulesetTestRequest.ts b/specification/query_rules/test/QueryRulesetTestRequest.ts index eca0c862e1..d2319c1dc2 100644 --- a/specification/query_rules/test/QueryRulesetTestRequest.ts +++ b/specification/query_rules/test/QueryRulesetTestRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ ruleset_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * The criteria we're testing for */ diff --git a/specification/rollup/delete_job/DeleteRollupJobRequest.ts b/specification/rollup/delete_job/DeleteRollupJobRequest.ts index 014441f7bd..3aab01e616 100644 --- a/specification/rollup/delete_job/DeleteRollupJobRequest.ts +++ b/specification/rollup/delete_job/DeleteRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a rollup job. @@ -64,4 +64,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_jobs/GetRollupJobRequest.ts b/specification/rollup/get_jobs/GetRollupJobRequest.ts index 04efd8ebf4..22fc591068 100644 --- a/specification/rollup/get_jobs/GetRollupJobRequest.ts +++ b/specification/rollup/get_jobs/GetRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get rollup job information. @@ -51,4 +51,5 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts b/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts index d8a78ef658..147a7d8ba1 100644 --- a/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts +++ b/specification/rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the rollup job capabilities. @@ -54,4 +54,5 @@ export interface Request extends RequestBase { */ id?: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts b/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts index 6eb1acfbca..e9def69945 100644 --- a/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts +++ b/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Get the rollup index capabilities. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ index: Ids } + response_media_type: MediaType.Json } diff --git a/specification/rollup/put_job/CreateRollupJobRequest.ts b/specification/rollup/put_job/CreateRollupJobRequest.ts index 969609ca60..5340c85fed 100644 --- a/specification/rollup/put_job/CreateRollupJobRequest.ts +++ b/specification/rollup/put_job/CreateRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { HttpHeaders, Id, IndexName } from '@_types/common' +import { HttpHeaders, Id, IndexName, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' import { Groupings } from '@rollup/_types/Groupings' @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A cron string which defines the intervals when the rollup job should be executed. When the interval diff --git a/specification/rollup/rollup_search/RollupSearchRequest.ts b/specification/rollup/rollup_search/RollupSearchRequest.ts index 1b8ec59d60..a21246ad23 100644 --- a/specification/rollup/rollup_search/RollupSearchRequest.ts +++ b/specification/rollup/rollup_search/RollupSearchRequest.ts @@ -19,7 +19,7 @@ import { AggregationContainer } from '@_types/aggregations/AggregationContainer' import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Dictionary } from '@spec_utils/Dictionary' @@ -85,6 +85,8 @@ export interface Request extends RequestBase { */ index: Indices } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Indicates whether hits.total should be rendered as an integer or an object in the rest search response diff --git a/specification/rollup/start_job/StartRollupJobRequest.ts b/specification/rollup/start_job/StartRollupJobRequest.ts index e11a1e6513..18edffd777 100644 --- a/specification/rollup/start_job/StartRollupJobRequest.ts +++ b/specification/rollup/start_job/StartRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Start rollup jobs. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/rollup/stop_job/StopRollupJobRequest.ts b/specification/rollup/stop_job/StopRollupJobRequest.ts index b2874514af..afefc9d573 100644 --- a/specification/rollup/stop_job/StopRollupJobRequest.ts +++ b/specification/rollup/stop_job/StopRollupJobRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -54,6 +54,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If `wait_for_completion` is `true`, the API blocks for (at maximum) the specified duration while waiting for the job to stop. diff --git a/specification/search_application/delete/SearchApplicationsDeleteRequest.ts b/specification/search_application/delete/SearchApplicationsDeleteRequest.ts index f9a73147a2..84e844a25c 100644 --- a/specification/search_application/delete/SearchApplicationsDeleteRequest.ts +++ b/specification/search_application/delete/SearchApplicationsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a search application. @@ -43,4 +43,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts b/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts index 87767386fb..deb77a6c0a 100644 --- a/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts +++ b/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a behavioral analytics collection. @@ -41,4 +41,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/get/SearchApplicationsGetRequest.ts b/specification/search_application/get/SearchApplicationsGetRequest.ts index d321d38675..465515210d 100644 --- a/specification/search_application/get/SearchApplicationsGetRequest.ts +++ b/specification/search_application/get/SearchApplicationsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get search application details. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts b/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts index ca611b64d1..0242c5532e 100644 --- a/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts +++ b/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get behavioral analytics collections. @@ -44,4 +44,5 @@ export interface Request extends RequestBase { */ name?: Name[] } + response_media_type: MediaType.Json } diff --git a/specification/search_application/list/SearchApplicationsListRequest.ts b/specification/search_application/list/SearchApplicationsListRequest.ts index 5297ffbf3e..ded2c87316 100644 --- a/specification/search_application/list/SearchApplicationsListRequest.ts +++ b/specification/search_application/list/SearchApplicationsListRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get search applications. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Query in the Lucene query string syntax. diff --git a/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts b/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts index 0050bb3a97..4828c9f5c3 100644 --- a/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts +++ b/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { EventType } from '../_types/AnalyticsEvent' @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ event_type: EventType } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Whether the response type has to include more details diff --git a/specification/search_application/put/SearchApplicationsPutRequest.ts b/specification/search_application/put/SearchApplicationsPutRequest.ts index f681970c34..1ce1098bcb 100644 --- a/specification/search_application/put/SearchApplicationsPutRequest.ts +++ b/specification/search_application/put/SearchApplicationsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { SearchApplicationParameters } from '../_types/SearchApplicationParameters' /** @@ -42,6 +42,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true`, this request cannot replace or update existing Search Applications. diff --git a/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts b/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts index 075e627302..2976d6173d 100644 --- a/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts +++ b/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Create a behavioral analytics collection. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json } diff --git a/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts b/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts index 764ed292c0..48f30642f2 100644 --- a/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts +++ b/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -45,6 +45,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json /** * Contains parameters for a search application. */ diff --git a/specification/search_application/search/SearchApplicationsSearchRequest.ts b/specification/search_application/search/SearchApplicationsSearchRequest.ts index 55e8d0e21c..dfa4bd7e43 100644 --- a/specification/search_application/search/SearchApplicationsSearchRequest.ts +++ b/specification/search_application/search/SearchApplicationsSearchRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -43,6 +43,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Determines whether aggregation names are prefixed by their respective types in the response. diff --git a/specification/searchable_snapshots/cache_stats/Request.ts b/specification/searchable_snapshots/cache_stats/Request.ts index 7d392e36ef..11c7db067e 100644 --- a/specification/searchable_snapshots/cache_stats/Request.ts +++ b/specification/searchable_snapshots/cache_stats/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ node_id?: NodeIds } + response_media_type: MediaType.Json query_parameters: { master_timeout?: Duration } diff --git a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts index f6c25a5ed6..12c2d82d73 100644 --- a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts +++ b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices } from '@_types/common' +import { ExpandWildcards, Indices, MediaType } from '@_types/common' /** * Clear the cache. @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Whether to expand wildcard expression to concrete indices that are open, closed or both diff --git a/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts b/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts index 97ee5c0318..f7aab57619 100644 --- a/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts +++ b/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, Name } from '@_types/common' +import { IndexName, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts b/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts index f0caed63cf..55dc957e22 100644 --- a/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts +++ b/specification/searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { Indices, MediaType } from '@_types/common' import { StatsLevel } from '../_types/stats' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ index?: Indices } + response_media_type: MediaType.Json query_parameters: { /** * Return stats aggregated at cluster, index or shard level diff --git a/specification/security/activate_user_profile/Request.ts b/specification/security/activate_user_profile/Request.ts index cbe9c3e93c..4d33852103 100644 --- a/specification/security/activate_user_profile/Request.ts +++ b/specification/security/activate_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { GrantType } from '@security/_types/GrantType' /** @@ -48,6 +49,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The user's Elasticsearch access token or JWT. diff --git a/specification/security/authenticate/SecurityAuthenticateRequest.ts b/specification/security/authenticate/SecurityAuthenticateRequest.ts index 22f18dfaad..0f9ec67623 100644 --- a/specification/security/authenticate/SecurityAuthenticateRequest.ts +++ b/specification/security/authenticate/SecurityAuthenticateRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Authenticate a user. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts b/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts index 81c8eba87e..d2187053ba 100644 --- a/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts +++ b/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' /** * Bulk delete roles. @@ -38,6 +38,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts b/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts index 3ff7981b55..62001d4cc8 100644 --- a/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts +++ b/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -40,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts b/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts index 56247e2ec0..ad17fd6f36 100644 --- a/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts +++ b/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata } from '@_types/common' +import { MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Expiration time for the API keys. diff --git a/specification/security/change_password/SecurityChangePasswordRequest.ts b/specification/security/change_password/SecurityChangePasswordRequest.ts index faf27fbde7..af1b4fc473 100644 --- a/specification/security/change_password/SecurityChangePasswordRequest.ts +++ b/specification/security/change_password/SecurityChangePasswordRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Password, Refresh, Username } from '@_types/common' +import { MediaType, Password, Refresh, Username } from '@_types/common' /** * Change passwords. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ username?: Username } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts b/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts index 039a7e57ee..b5fea58409 100644 --- a/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts +++ b/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Clear the API key cache. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ ids: Ids } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts b/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts index 8af7ee807d..d9ef6449e1 100644 --- a/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts +++ b/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Clear the privileges cache. @@ -46,4 +46,5 @@ export interface Request extends RequestBase { */ application: Name } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts b/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts index 6d812eba24..fa56cb479d 100644 --- a/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts +++ b/specification/security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Clear the user cache. @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ realms: Names } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the users to clear from the cache. diff --git a/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts b/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts index da2e1a37c0..f2abd1c8b9 100644 --- a/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts +++ b/specification/security/clear_cached_roles/ClearCachedRolesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Clear the roles cache. @@ -45,4 +45,5 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts b/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts index 2bc0e2a8e3..1658d41045 100644 --- a/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts +++ b/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names, Namespace, Service } from '@_types/common' +import { MediaType, Names, Namespace, Service } from '@_types/common' /** * Clear service account token caches. @@ -55,4 +55,5 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts b/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts index 55476916e5..da218dfad9 100644 --- a/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts +++ b/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -52,6 +52,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts b/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts index 31b711b6cb..9f4db3e86d 100644 --- a/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts +++ b/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name } from '@_types/common' +import { MediaType, Metadata, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Access } from '@security/_types/Access' @@ -53,6 +53,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access to be granted to this API key. diff --git a/specification/security/create_service_token/CreateServiceTokenRequest.ts b/specification/security/create_service_token/CreateServiceTokenRequest.ts index 9215033b27..28695cf422 100644 --- a/specification/security/create_service_token/CreateServiceTokenRequest.ts +++ b/specification/security/create_service_token/CreateServiceTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace, Refresh, Service } from '@_types/common' +import { MediaType, Name, Namespace, Refresh, Service } from '@_types/common' /** * Create a service account token. @@ -66,6 +66,7 @@ export interface Request extends RequestBase { */ name?: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts b/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts index bdfe098d95..255055c374 100644 --- a/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts +++ b/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Delegate PKI authentication. @@ -44,6 +45,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json body: { /** * The X509Certificate chain, which is represented as an ordered string array. diff --git a/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts b/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts index 3514ca1f4e..553b65692d 100644 --- a/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts +++ b/specification/security/delete_privileges/SecurityDeletePrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names, Refresh } from '@_types/common' +import { MediaType, Name, Names, Refresh } from '@_types/common' /** * Delete application privileges. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ name: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/delete_role/SecurityDeleteRoleRequest.ts b/specification/security/delete_role/SecurityDeleteRoleRequest.ts index 5d5d03ab73..de94c52652 100644 --- a/specification/security/delete_role/SecurityDeleteRoleRequest.ts +++ b/specification/security/delete_role/SecurityDeleteRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Refresh } from '@_types/common' +import { MediaType, Name, Refresh } from '@_types/common' /** * Delete roles. @@ -43,6 +43,7 @@ export interface Request extends RequestBase { /** The name of the role. */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts b/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts index e516afb02d..e06b06c030 100644 --- a/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts +++ b/specification/security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Refresh } from '@_types/common' +import { MediaType, Name, Refresh } from '@_types/common' /** * Delete role mappings. @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/delete_service_token/DeleteServiceTokenRequest.ts b/specification/security/delete_service_token/DeleteServiceTokenRequest.ts index 77629dd408..b17a325758 100644 --- a/specification/security/delete_service_token/DeleteServiceTokenRequest.ts +++ b/specification/security/delete_service_token/DeleteServiceTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace, Refresh, Service } from '@_types/common' +import { MediaType, Name, Namespace, Refresh, Service } from '@_types/common' /** * Delete service account tokens. @@ -52,6 +52,7 @@ export interface Request extends RequestBase { */ name: Name } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/delete_user/SecurityDeleteUserRequest.ts b/specification/security/delete_user/SecurityDeleteUserRequest.ts index 871d781a2f..8c23f7fcd1 100644 --- a/specification/security/delete_user/SecurityDeleteUserRequest.ts +++ b/specification/security/delete_user/SecurityDeleteUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Delete users. @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/disable_user/SecurityDisableUserRequest.ts b/specification/security/disable_user/SecurityDisableUserRequest.ts index a5e4ce404c..1b1673115f 100644 --- a/specification/security/disable_user/SecurityDisableUserRequest.ts +++ b/specification/security/disable_user/SecurityDisableUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Disable users. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/disable_user_profile/Request.ts b/specification/security/disable_user_profile/Request.ts index b2b4931764..046e19499e 100644 --- a/specification/security/disable_user_profile/Request.ts +++ b/specification/security/disable_user_profile/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. diff --git a/specification/security/enable_user/SecurityEnableUserRequest.ts b/specification/security/enable_user/SecurityEnableUserRequest.ts index 5e7558a4a1..3d7cee4f3a 100644 --- a/specification/security/enable_user/SecurityEnableUserRequest.ts +++ b/specification/security/enable_user/SecurityEnableUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, Username } from '@_types/common' +import { MediaType, Refresh, Username } from '@_types/common' /** * Enable users. @@ -43,6 +43,7 @@ export interface Request extends RequestBase { */ username: Username } + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/enable_user_profile/Request.ts b/specification/security/enable_user_profile/Request.ts index 49084b3c5e..e46bd27ce1 100644 --- a/specification/security/enable_user_profile/Request.ts +++ b/specification/security/enable_user_profile/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -51,6 +51,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation diff --git a/specification/security/enroll_kibana/Request.ts b/specification/security/enroll_kibana/Request.ts index f7d8baad81..355f1f6044 100644 --- a/specification/security/enroll_kibana/Request.ts +++ b/specification/security/enroll_kibana/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Enroll Kibana. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/enroll_node/Request.ts b/specification/security/enroll_node/Request.ts index 4356b3495c..a5f476acdc 100644 --- a/specification/security/enroll_node/Request.ts +++ b/specification/security/enroll_node/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Enroll a node. @@ -37,4 +38,6 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/get_api_key/SecurityGetApiKeyRequest.ts b/specification/security/get_api_key/SecurityGetApiKeyRequest.ts index f0319b2566..d39e151fed 100644 --- a/specification/security/get_api_key/SecurityGetApiKeyRequest.ts +++ b/specification/security/get_api_key/SecurityGetApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name, Username } from '@_types/common' +import { Id, MediaType, Name, Username } from '@_types/common' /** * Get API key information. @@ -39,6 +39,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * An API key id. diff --git a/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts b/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts index 92aff56489..9c4e3b776e 100644 --- a/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts +++ b/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get builtin privileges. @@ -37,4 +38,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts b/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts index 3b5d44ec27..23a3a381af 100644 --- a/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts +++ b/specification/security/get_privileges/SecurityGetPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' /** * Get application privileges. @@ -62,4 +62,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_role/SecurityGetRoleRequest.ts b/specification/security/get_role/SecurityGetRoleRequest.ts index 88a2b79096..f944cdf68c 100644 --- a/specification/security/get_role/SecurityGetRoleRequest.ts +++ b/specification/security/get_role/SecurityGetRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Get roles. @@ -51,4 +51,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts b/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts index ac34a59b85..1ee511dee9 100644 --- a/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts +++ b/specification/security/get_role_mapping/SecurityGetRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' /** * Get role mappings. @@ -50,4 +50,5 @@ export interface Request extends RequestBase { */ name?: Names } + response_media_type: MediaType.Json } diff --git a/specification/security/get_service_accounts/GetServiceAccountsRequest.ts b/specification/security/get_service_accounts/GetServiceAccountsRequest.ts index 616037c4d4..423e78ac38 100644 --- a/specification/security/get_service_accounts/GetServiceAccountsRequest.ts +++ b/specification/security/get_service_accounts/GetServiceAccountsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Namespace, Service } from '@_types/common' +import { MediaType, Namespace, Service } from '@_types/common' /** * Get service accounts. @@ -61,4 +61,5 @@ export interface Request extends RequestBase { */ service?: Service } + response_media_type: MediaType.Json } diff --git a/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts b/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts index 26fc44cef6..3183f01a27 100644 --- a/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts +++ b/specification/security/get_service_credentials/GetServiceCredentialsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Namespace } from '@_types/common' +import { MediaType, Name, Namespace } from '@_types/common' /** * Get service account credentials. @@ -53,4 +53,5 @@ export interface Request extends RequestBase { */ service: Name } + response_media_type: MediaType.Json } diff --git a/specification/security/get_settings/SecurityGetSettingsRequest.ts b/specification/security/get_settings/SecurityGetSettingsRequest.ts index f11604eb34..664eb0ef73 100644 --- a/specification/security/get_settings/SecurityGetSettingsRequest.ts +++ b/specification/security/get_settings/SecurityGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get security index settings. @@ -41,6 +42,8 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/security/get_token/GetUserAccessTokenRequest.ts b/specification/security/get_token/GetUserAccessTokenRequest.ts index eca8ec8249..aab8542daa 100644 --- a/specification/security/get_token/GetUserAccessTokenRequest.ts +++ b/specification/security/get_token/GetUserAccessTokenRequest.ts @@ -19,7 +19,7 @@ // TODO: once the compiler can handle it, the body should use the commented classes in this file import { RequestBase } from '@_types/Base' -import { Password, Username } from '@_types/common' +import { MediaType, Password, Username } from '@_types/common' import { AccessTokenGrantType } from './types' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The type of grant. diff --git a/specification/security/get_user/SecurityGetUserRequest.ts b/specification/security/get_user/SecurityGetUserRequest.ts index 9bdcdfa190..2760294830 100644 --- a/specification/security/get_user/SecurityGetUserRequest.ts +++ b/specification/security/get_user/SecurityGetUserRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Username } from '@_types/common' +import { MediaType, Username } from '@_types/common' /** * Get users. @@ -44,6 +44,7 @@ export interface Request extends RequestBase { /** An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. */ username?: Username | Username[] } + response_media_type: MediaType.Json query_parameters: { /** * Determines whether to retrieve the user profile UID, if it exists, for the users. diff --git a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts index 6d92d4ce9a..5e88389fab 100644 --- a/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts +++ b/specification/security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get user privileges. @@ -38,4 +39,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/security/get_user_profile/Request.ts b/specification/security/get_user_profile/Request.ts index 16d350c0b6..5e5142f55c 100644 --- a/specification/security/get_user_profile/Request.ts +++ b/specification/security/get_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' /** @@ -47,6 +48,7 @@ export interface Request extends RequestBase { */ uid: UserProfileId | UserProfileId[] } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of filters for the `data` field of the profile document. diff --git a/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts b/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts index 259a522781..31a3a84faa 100644 --- a/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts +++ b/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Password, Refresh, Username } from '@_types/common' +import { MediaType, Password, Refresh, Username } from '@_types/common' import { ApiKeyGrantType, GrantApiKey } from './types' /** @@ -57,6 +57,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If 'true', Elasticsearch refreshes the affected shards to make this operation diff --git a/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts b/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts index 8fc7670211..415717a7de 100644 --- a/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts +++ b/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { ClusterPrivilege } from '@security/_types/Privileges' import { ApplicationPrivilegesCheck, IndexPrivilegesCheck } from './types' @@ -49,6 +49,8 @@ export interface Request extends RequestBase { /** Username */ user?: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { application?: ApplicationPrivilegesCheck[] /** diff --git a/specification/security/has_privileges_user_profile/Request.ts b/specification/security/has_privileges_user_profile/Request.ts index 20ad659027..defe323cff 100644 --- a/specification/security/has_privileges_user_profile/Request.ts +++ b/specification/security/has_privileges_user_profile/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { UserProfileId } from '@security/_types/UserProfile' import { PrivilegesCheck } from './types' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * A list of profile IDs. The privileges are checked for associated users of the profiles. diff --git a/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts b/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts index d0a58f5fe9..5f7db33efe 100644 --- a/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts +++ b/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Name, Username } from '@_types/common' +import { Id, MediaType, Name, Username } from '@_types/common' /** * Invalidate API keys. @@ -48,6 +48,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { id?: Id /** diff --git a/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts b/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts index 30aa8fa0c1..4c03430624 100644 --- a/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts +++ b/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Username } from '@_types/common' +import { MediaType, Name, Username } from '@_types/common' /** * Invalidate a token. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { methods: ['DELETE'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * An access token. diff --git a/specification/security/oidc_authenticate/Request.ts b/specification/security/oidc_authenticate/Request.ts index 4e4bb7c32c..e815792936 100644 --- a/specification/security/oidc_authenticate/Request.ts +++ b/specification/security/oidc_authenticate/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Authenticate OpenID Connect. @@ -37,6 +38,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Associate a client session with an ID token and mitigate replay attacks. diff --git a/specification/security/oidc_logout/Request.ts b/specification/security/oidc_logout/Request.ts index cc91378583..a7759ee005 100644 --- a/specification/security/oidc_logout/Request.ts +++ b/specification/security/oidc_logout/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Logout of OpenID Connect. @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access token to be invalidated. diff --git a/specification/security/oidc_prepare_authentication/Request.ts b/specification/security/oidc_prepare_authentication/Request.ts index 540b3c2b66..2ad60147ac 100644 --- a/specification/security/oidc_prepare_authentication/Request.ts +++ b/specification/security/oidc_prepare_authentication/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Prepare OpenID connect authentication. @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to. diff --git a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts index b047583d6f..726f4b0e73 100644 --- a/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts +++ b/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh } from '@_types/common' +import { MediaType, Refresh } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { Actions } from './types' @@ -56,6 +56,8 @@ export interface Request extends RequestBase { methods: ['PUT', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/put_role/SecurityPutRoleRequest.ts b/specification/security/put_role/SecurityPutRoleRequest.ts index a7e99570c6..48eedf4e51 100644 --- a/specification/security/put_role/SecurityPutRoleRequest.ts +++ b/specification/security/put_role/SecurityPutRoleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { ApplicationPrivileges, ClusterPrivilege, @@ -55,6 +55,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts b/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts index 9c72b7b79f..af7b45e7d6 100644 --- a/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts +++ b/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Name, Refresh } from '@_types/common' +import { MediaType, Metadata, Name, Refresh } from '@_types/common' import { RoleMappingRule } from '@security/_types/RoleMappingRule' import { RoleTemplate } from '@security/_types/RoleTemplate' @@ -70,6 +70,8 @@ export interface Request extends RequestBase { */ name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. diff --git a/specification/security/put_user/SecurityPutUserRequest.ts b/specification/security/put_user/SecurityPutUserRequest.ts index d91ef6352e..deef9fac6b 100644 --- a/specification/security/put_user/SecurityPutUserRequest.ts +++ b/specification/security/put_user/SecurityPutUserRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Metadata, Password, Refresh, Username } from '@_types/common' +import { + MediaType, + Metadata, + Password, + Refresh, + Username +} from '@_types/common' /** * Create or update users. @@ -48,6 +54,8 @@ export interface Request extends RequestBase { */ username: Username } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Valid values are `true`, `false`, and `wait_for`. diff --git a/specification/security/query_api_keys/QueryApiKeysRequest.ts b/specification/security/query_api_keys/QueryApiKeysRequest.ts index f411be6d02..70b734230c 100644 --- a/specification/security/query_api_keys/QueryApiKeysRequest.ts +++ b/specification/security/query_api_keys/QueryApiKeysRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { Dictionary } from '@spec_utils/Dictionary' @@ -45,6 +46,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Return the snapshot of the owner user's role descriptors associated with the API key. diff --git a/specification/security/query_role/QueryRolesRequest.ts b/specification/security/query_role/QueryRolesRequest.ts index 465dbf655e..13f0f8f75f 100644 --- a/specification/security/query_role/QueryRolesRequest.ts +++ b/specification/security/query_role/QueryRolesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { RoleQueryContainer } from './types' @@ -43,6 +44,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * A query to filter which roles to return. diff --git a/specification/security/query_user/SecurityQueryUserRequest.ts b/specification/security/query_user/SecurityQueryUserRequest.ts index 06e4bd591b..9c4fcf1fa2 100644 --- a/specification/security/query_user/SecurityQueryUserRequest.ts +++ b/specification/security/query_user/SecurityQueryUserRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { Sort, SortResults } from '@_types/sort' import { UserQueryContainer } from './types' @@ -81,6 +82,8 @@ export interface Request extends RequestBase { */ search_after?: SortResults } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Determines whether to retrieve the user profile UID, if it exists, for the users. diff --git a/specification/security/saml_authenticate/Request.ts b/specification/security/saml_authenticate/Request.ts index 203fd5bf30..7643315a0c 100644 --- a/specification/security/saml_authenticate/Request.ts +++ b/specification/security/saml_authenticate/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Authenticate SAML. @@ -50,6 +50,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document. */ content: string diff --git a/specification/security/saml_complete_logout/Request.ts b/specification/security/saml_complete_logout/Request.ts index 123972015c..6a99d25ba7 100644 --- a/specification/security/saml_complete_logout/Request.ts +++ b/specification/security/saml_complete_logout/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Ids } from '@_types/common' +import { Ids, MediaType } from '@_types/common' /** * Logout of SAML completely. @@ -46,6 +46,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. */ realm: string diff --git a/specification/security/saml_invalidate/Request.ts b/specification/security/saml_invalidate/Request.ts index 7671a0877b..468d400386 100644 --- a/specification/security/saml_invalidate/Request.ts +++ b/specification/security/saml_invalidate/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Invalidate SAML. @@ -44,6 +45,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the `realm` parameter. */ acs?: string diff --git a/specification/security/saml_logout/Request.ts b/specification/security/saml_logout/Request.ts index cd687e85e3..45fd1d044d 100644 --- a/specification/security/saml_logout/Request.ts +++ b/specification/security/saml_logout/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Logout of SAML. @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access token that was returned as a response to calling the SAML authenticate API. diff --git a/specification/security/saml_prepare_authentication/Request.ts b/specification/security/saml_prepare_authentication/Request.ts index 410cc0d849..fb1098869e 100644 --- a/specification/security/saml_prepare_authentication/Request.ts +++ b/specification/security/saml_prepare_authentication/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Prepare SAML authentication. @@ -47,6 +48,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. diff --git a/specification/security/saml_service_provider_metadata/Request.ts b/specification/security/saml_service_provider_metadata/Request.ts index 2c48e2af00..ceb753fac4 100644 --- a/specification/security/saml_service_provider_metadata/Request.ts +++ b/specification/security/saml_service_provider_metadata/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Create SAML service provider metadata. @@ -43,4 +43,6 @@ export interface Request extends RequestBase { /** The name of the SAML realm in Elasticsearch. */ realm_name: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/security/suggest_user_profiles/Request.ts b/specification/security/suggest_user_profiles/Request.ts index c09034fea5..9011608b77 100644 --- a/specification/security/suggest_user_profiles/Request.ts +++ b/specification/security/suggest_user_profiles/Request.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { long } from '@_types/Numeric' import { Hint } from './types' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of filters for the `data` field of the profile document. diff --git a/specification/security/update_api_key/Request.ts b/specification/security/update_api_key/Request.ts index 9aa163dbd0..c8a1d1cdd6 100644 --- a/specification/security/update_api_key/Request.ts +++ b/specification/security/update_api_key/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { RoleDescriptor } from '@security/_types/RoleDescriptor' import { Dictionary } from '@spec_utils/Dictionary' @@ -63,6 +63,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The role descriptors to assign to this API key. diff --git a/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts b/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts index 18512fcecc..db33b80218 100644 --- a/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts +++ b/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Access } from '@security/_types/Access' @@ -59,6 +59,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The access to be granted to this API key. diff --git a/specification/security/update_settings/SecurityUpdateSettingsRequest.ts b/specification/security/update_settings/SecurityUpdateSettingsRequest.ts index 2da4b02416..348ddba812 100644 --- a/specification/security/update_settings/SecurityUpdateSettingsRequest.ts +++ b/specification/security/update_settings/SecurityUpdateSettingsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { SecuritySettings } from '@security/_types/SecuritySettings' @@ -42,6 +43,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/security/update_user_profile_data/Request.ts b/specification/security/update_user_profile_data/Request.ts index 870eb46c09..379fc389ac 100644 --- a/specification/security/update_user_profile_data/Request.ts +++ b/specification/security/update_user_profile_data/Request.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Refresh, SequenceNumber } from '@_types/common' +import { MediaType, Refresh, SequenceNumber } from '@_types/common' import { long } from '@_types/Numeric' import { UserProfileId } from '@security/_types/UserProfile' import { Dictionary } from '@spec_utils/Dictionary' @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ uid: UserProfileId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Only perform the operation if the document has this sequence number. diff --git a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts index c9238fc1bb..f54c741b20 100644 --- a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts +++ b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeId } from '@_types/common' +import { MediaType, NodeId } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { /** The node id of node to be removed from the shutdown state */ node_id: NodeId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts index 0763eb731a..2e287faac2 100644 --- a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts +++ b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeIds } from '@_types/common' +import { MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { /** Comma-separated list of nodes for which to retrieve the shutdown status */ node_id?: NodeIds } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts index 501755ccfb..e251b31a4f 100644 --- a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts +++ b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { NodeId } from '@_types/common' +import { MediaType, NodeId } from '@_types/common' import { Duration } from '@_types/Time' import { Type } from '../_types/types' @@ -60,6 +60,8 @@ export interface Request extends RequestBase { */ node_id: NodeId } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/simulate/ingest/SimulateIngestRequest.ts b/specification/simulate/ingest/SimulateIngestRequest.ts index 7eb5bf7f6a..60cf0b31fa 100644 --- a/specification/simulate/ingest/SimulateIngestRequest.ts +++ b/specification/simulate/ingest/SimulateIngestRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { IndexName, PipelineName } from '@_types/common' +import { IndexName, MediaType, PipelineName } from '@_types/common' import { TypeMapping } from '@_types/mapping/TypeMapping' import { ComponentTemplateNode } from '@cluster/_types/ComponentTemplate' import { IndexTemplate } from '@indices/_types/IndexTemplate' @@ -69,6 +69,8 @@ export interface Request extends RequestBase { */ index?: IndexName } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The pipeline to use as the default pipeline. diff --git a/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts b/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts index 117eff1ff8..9a1ddae9d3 100644 --- a/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts +++ b/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** The id of the snapshot lifecycle policy to remove */ policy_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts b/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts index 65b5a6dfc9..0a75c7ef8a 100644 --- a/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts +++ b/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { /** The id of the snapshot lifecycle policy to be executed */ policy_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/execute_retention/ExecuteRetentionRequest.ts b/specification/slm/execute_retention/ExecuteRetentionRequest.ts index cf11e7e1b6..b4c484bf50 100644 --- a/specification/slm/execute_retention/ExecuteRetentionRequest.ts +++ b/specification/slm/execute_retention/ExecuteRetentionRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Run a retention policy. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts b/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts index f91ef5a828..eaf049ca6b 100644 --- a/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts +++ b/specification/slm/get_lifecycle/GetSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { /** A comma-separated list of snapshot lifecycle policy identifiers. */ policy_id?: Names } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts b/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts index 0fb38d11f0..73cd2ddeb8 100644 --- a/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts +++ b/specification/slm/get_stats/GetSnapshotLifecycleStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get snapshot lifecycle management statistics. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts b/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts index caed92f439..e307179515 100644 --- a/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts +++ b/specification/slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the snapshot lifecycle management status. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index c107360fa2..3d452c7524 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Configuration, Retention } from '@slm/_types/SnapshotLifecycle' import { CronExpression } from '@watcher/_types/Schedule' @@ -48,6 +48,8 @@ export interface Request extends RequestBase { */ policy_id: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts index 87ac896a65..4861af84ac 100644 --- a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start snapshot lifecycle management. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts index 39c26941d9..02f3ba7258 100644 --- a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop snapshot lifecycle management. @@ -41,6 +42,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts b/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts index 3288d28883..3e97ded56f 100644 --- a/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts +++ b/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/clone/SnapshotCloneRequest.ts b/specification/snapshot/clone/SnapshotCloneRequest.ts index c39473aec1..3ead5428c8 100644 --- a/specification/snapshot/clone/SnapshotCloneRequest.ts +++ b/specification/snapshot/clone/SnapshotCloneRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ target_snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/create/SnapshotCreateRequest.ts b/specification/snapshot/create/SnapshotCreateRequest.ts index 9fc31839d8..4a208eac65 100644 --- a/specification/snapshot/create/SnapshotCreateRequest.ts +++ b/specification/snapshot/create/SnapshotCreateRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { ExpandWildcards, Indices, Metadata, Name } from '@_types/common' +import { + ExpandWildcards, + Indices, + MediaType, + Metadata, + Name +} from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +56,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts b/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts index f1fd161b23..0379a02e08 100644 --- a/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts +++ b/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { Repository } from '@snapshot/_types/SnapshotRepository' @@ -51,6 +51,8 @@ export interface Request extends RequestBase { */ repository: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/delete/SnapshotDeleteRequest.ts b/specification/snapshot/delete/SnapshotDeleteRequest.ts index 299dbf6fae..0b447da8c1 100644 --- a/specification/snapshot/delete/SnapshotDeleteRequest.ts +++ b/specification/snapshot/delete/SnapshotDeleteRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,7 @@ export interface Request extends RequestBase { */ snapshot: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts b/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts index 022e7c6751..c18a617beb 100644 --- a/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts +++ b/specification/snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -45,6 +45,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Names } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/get/SnapshotGetRequest.ts b/specification/snapshot/get/SnapshotGetRequest.ts index 69875f92b6..626b85252b 100644 --- a/specification/snapshot/get/SnapshotGetRequest.ts +++ b/specification/snapshot/get/SnapshotGetRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { integer } from '@_types/Numeric' import { SortOrder } from '@_types/sort' import { Duration } from '@_types/Time' @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ snapshot: Names } + response_media_type: MediaType.Json query_parameters: { /** * An offset identifier to start pagination from as returned by the next field in the response body. diff --git a/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts b/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts index a845429943..23ca19ef25 100644 --- a/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts +++ b/specification/snapshot/get_repository/SnapshotGetRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ repository?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `true`, the request gets information from the local node only. diff --git a/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts b/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts index 993be44e35..8de292f130 100644 --- a/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts +++ b/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { ByteSize, Name } from '@_types/common' +import { ByteSize, MediaType, Name } from '@_types/common' import { double, integer } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -129,6 +129,7 @@ export interface Request extends RequestBase { */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The total number of blobs to write to the repository during the test. diff --git a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts index 88d648e7cc..88a7863638 100644 --- a/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts +++ b/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -76,6 +76,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once. diff --git a/specification/snapshot/restore/SnapshotRestoreRequest.ts b/specification/snapshot/restore/SnapshotRestoreRequest.ts index 1a7a1d324f..c5f9d61bda 100644 --- a/specification/snapshot/restore/SnapshotRestoreRequest.ts +++ b/specification/snapshot/restore/SnapshotRestoreRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices, Name } from '@_types/common' +import { Indices, MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' import { IndexSettings } from '@indices/_types/IndexSettings' @@ -65,6 +65,8 @@ export interface Request extends RequestBase { */ snapshot: Name } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/snapshot/status/SnapshotStatusRequest.ts b/specification/snapshot/status/SnapshotStatusRequest.ts index 9c27ab99ec..2b29902dab 100644 --- a/specification/snapshot/status/SnapshotStatusRequest.ts +++ b/specification/snapshot/status/SnapshotStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -72,6 +72,7 @@ export interface Request extends RequestBase { */ snapshot?: Names } + response_media_type: MediaType.Json query_parameters: { /** * If `false`, the request returns an error for any snapshots that are unavailable. diff --git a/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts b/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts index bd15e40869..6a9a130acc 100644 --- a/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts +++ b/specification/snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { * @codegen_name name */ repository: Name } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/sql/clear_cursor/ClearSqlCursorRequest.ts b/specification/sql/clear_cursor/ClearSqlCursorRequest.ts index cf5bbf08ee..c830b46bb5 100644 --- a/specification/sql/clear_cursor/ClearSqlCursorRequest.ts +++ b/specification/sql/clear_cursor/ClearSqlCursorRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Clear an SQL search cursor. @@ -33,6 +34,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * Cursor to clear. diff --git a/specification/sql/delete_async/SqlDeleteAsyncRequest.ts b/specification/sql/delete_async/SqlDeleteAsyncRequest.ts index d51efd6149..13ea2eac83 100644 --- a/specification/sql/delete_async/SqlDeleteAsyncRequest.ts +++ b/specification/sql/delete_async/SqlDeleteAsyncRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete an async SQL search. @@ -48,4 +48,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/sql/get_async/SqlGetAsyncRequest.ts b/specification/sql/get_async/SqlGetAsyncRequest.ts index 3d51d11263..db2c0ca732 100644 --- a/specification/sql/get_async/SqlGetAsyncRequest.ts +++ b/specification/sql/get_async/SqlGetAsyncRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The separator for CSV results. diff --git a/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts b/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts index b9349c880e..5a94dc0444 100644 --- a/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts +++ b/specification/sql/get_async_status/SqlGetAsyncStatusRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get the async SQL search status. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/sql/query/QuerySqlRequest.ts b/specification/sql/query/QuerySqlRequest.ts index a32c279833..99b784c3ed 100644 --- a/specification/sql/query/QuerySqlRequest.ts +++ b/specification/sql/query/QuerySqlRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' @@ -40,6 +41,8 @@ export interface Request extends RequestBase { methods: ['POST', 'GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The format for the response. diff --git a/specification/sql/translate/TranslateSqlRequest.ts b/specification/sql/translate/TranslateSqlRequest.ts index ed821ff017..62a95b8086 100644 --- a/specification/sql/translate/TranslateSqlRequest.ts +++ b/specification/sql/translate/TranslateSqlRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { TimeZone } from '@_types/Time' @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['POST', 'GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The maximum number of rows (or entries) to return in one response. diff --git a/specification/ssl/certificates/GetCertificatesRequest.ts b/specification/ssl/certificates/GetCertificatesRequest.ts index b14ffbf0cf..7c38ee6a7d 100644 --- a/specification/ssl/certificates/GetCertificatesRequest.ts +++ b/specification/ssl/certificates/GetCertificatesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get SSL certificates. @@ -52,4 +53,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/streams/logs_disable/StreamsLogsDisableRequest.ts b/specification/streams/logs_disable/StreamsLogsDisableRequest.ts index c44e6060cb..c79b25e753 100644 --- a/specification/streams/logs_disable/StreamsLogsDisableRequest.ts +++ b/specification/streams/logs_disable/StreamsLogsDisableRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Disable logs stream. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/streams/logs_enable/StreamsLogsEnableRequest.ts b/specification/streams/logs_enable/StreamsLogsEnableRequest.ts index 71915b4446..57a04d723e 100644 --- a/specification/streams/logs_enable/StreamsLogsEnableRequest.ts +++ b/specification/streams/logs_enable/StreamsLogsEnableRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Enable logs stream. @@ -40,6 +41,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Text | MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/streams/status/StreamsStatusRequest.ts b/specification/streams/status/StreamsStatusRequest.ts index 76c748fa39..3af9d29160 100644 --- a/specification/streams/status/StreamsStatusRequest.ts +++ b/specification/streams/status/StreamsStatusRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get the status of streams. @@ -36,6 +37,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts b/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts index dd8455aa6a..00ed079f5c 100644 --- a/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts +++ b/specification/synonyms/delete_synonym/SynonymsDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a synonym set. @@ -57,4 +57,5 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json } diff --git a/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts b/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts index 03e686382d..3c0037f628 100644 --- a/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts +++ b/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Delete a synonym rule. @@ -45,4 +45,6 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/synonyms/get_synonym/SynonymsGetRequest.ts b/specification/synonyms/get_synonym/SynonymsGetRequest.ts index 336ffc8ec0..5dd3e197f4 100644 --- a/specification/synonyms/get_synonym/SynonymsGetRequest.ts +++ b/specification/synonyms/get_synonym/SynonymsGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -41,6 +41,7 @@ export interface Request extends RequestBase { */ id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The starting offset for query rules to retrieve. diff --git a/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts b/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts index a2ea13c5a0..6a7539a68a 100644 --- a/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts +++ b/specification/synonyms/get_synonym_rule/SynonymRuleGetRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' /** * Get a synonym rule. @@ -45,4 +45,6 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json } diff --git a/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts b/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts index d9387522ad..6c659b1e17 100644 --- a/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts +++ b/specification/synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' +import { MediaType } from '@_types/common' /** * Get all synonym sets. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The starting offset for synonyms sets to retrieve. diff --git a/specification/synonyms/put_synonym/SynonymsPutRequest.ts b/specification/synonyms/put_synonym/SynonymsPutRequest.ts index b6ed5ca6da..56f08bfb9d 100644 --- a/specification/synonyms/put_synonym/SynonymsPutRequest.ts +++ b/specification/synonyms/put_synonym/SynonymsPutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SynonymRule } from '../_types/SynonymRule' /** @@ -46,6 +46,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The synonym rules definitions for the synonyms set. diff --git a/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts b/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts index 35a640d421..3a4bf1ee2c 100644 --- a/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts +++ b/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { SynonymString } from '../_types/SynonymRule' /** @@ -50,6 +50,8 @@ export interface Request extends RequestBase { */ rule_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json body: { /** * The synonym rule information definition, which must be in Solr format. diff --git a/specification/tasks/cancel/CancelTasksRequest.ts b/specification/tasks/cancel/CancelTasksRequest.ts index a400c36f95..d84ea136bc 100644 --- a/specification/tasks/cancel/CancelTasksRequest.ts +++ b/specification/tasks/cancel/CancelTasksRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TaskId } from '@_types/common' +import { MediaType, TaskId } from '@_types/common' /** * Cancel a task. @@ -56,6 +56,7 @@ export interface Request extends RequestBase { */ task_id?: TaskId } + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expression of actions that is used to limit the request. diff --git a/specification/tasks/get/GetTaskRequest.ts b/specification/tasks/get/GetTaskRequest.ts index 9f626071ad..2246493033 100644 --- a/specification/tasks/get/GetTaskRequest.ts +++ b/specification/tasks/get/GetTaskRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -48,6 +48,7 @@ export interface Request extends RequestBase { */ task_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a response. diff --git a/specification/tasks/list/ListTasksRequest.ts b/specification/tasks/list/ListTasksRequest.ts index 1e29df5594..4cddcd6b62 100644 --- a/specification/tasks/list/ListTasksRequest.ts +++ b/specification/tasks/list/ListTasksRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, NodeIds } from '@_types/common' +import { Id, MediaType, NodeIds } from '@_types/common' import { Duration } from '@_types/Time' import { GroupBy } from '@tasks/_types/GroupBy' @@ -95,6 +95,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list or wildcard expression of actions used to limit the request. diff --git a/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts b/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts index 7a8e56beaf..311f777baf 100644 --- a/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts +++ b/specification/text_structure/find_field_structure/FindFieldStructureRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, GrokPattern, IndexName } from '@_types/common' +import { Field, GrokPattern, IndexName, MediaType } from '@_types/common' import { uint } from '@_types/Numeric' import { Duration } from '@_types/Time' import { EcsCompatibilityType, FormatType } from '../_types/Structure' @@ -54,6 +54,7 @@ interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * If `format` is set to `delimited`, you can specify the column names in a comma-separated list. diff --git a/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts b/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts index 8310002878..a366130ee4 100644 --- a/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts +++ b/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Field, GrokPattern } from '@_types/common' +import { Field, GrokPattern, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { EcsCompatibilityType, FormatType } from '../_types/Structure' @@ -54,6 +54,8 @@ interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** If the format is `delimited`, you can specify the column names in a comma-separated list. * If this parameter is not specified, the structure finder uses the column names from the header row of the text. diff --git a/specification/text_structure/find_structure/FindStructureRequest.ts b/specification/text_structure/find_structure/FindStructureRequest.ts index 1ef8f063fb..ebc60532ec 100644 --- a/specification/text_structure/find_structure/FindStructureRequest.ts +++ b/specification/text_structure/find_structure/FindStructureRequest.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Field, GrokPattern } from '@_types/common' +import { Field, GrokPattern, MediaType } from '@_types/common' import { uint } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -52,6 +52,8 @@ export interface Request { methods: ['POST'] } ] + request_media_type: MediaType.Ndjson + response_media_type: MediaType.Json query_parameters: { /** * The text's character set. diff --git a/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts b/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts index 1fd6062aba..384c49670c 100644 --- a/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts +++ b/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { GrokPattern } from '@_types/common' +import { GrokPattern, MediaType } from '@_types/common' /** * Test a Grok pattern. @@ -37,6 +37,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The mode of compatibility with ECS compliant Grok patterns. diff --git a/specification/transform/delete_transform/DeleteTransformRequest.ts b/specification/transform/delete_transform/DeleteTransformRequest.ts index e509f22b94..c4e1451bf6 100644 --- a/specification/transform/delete_transform/DeleteTransformRequest.ts +++ b/specification/transform/delete_transform/DeleteTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -42,6 +42,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If this value is false, the transform must be stopped before it can be deleted. If true, the transform is diff --git a/specification/transform/get_node_stats/GetNodeStatsRequest.ts b/specification/transform/get_node_stats/GetNodeStatsRequest.ts index a9d95ad8e3..2ca310aa13 100644 --- a/specification/transform/get_node_stats/GetNodeStatsRequest.ts +++ b/specification/transform/get_node_stats/GetNodeStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get node stats. @@ -35,4 +36,5 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json } diff --git a/specification/transform/get_transform/GetTransformRequest.ts b/specification/transform/get_transform/GetTransformRequest.ts index 1b33f6bb4c..a1b2e5dec8 100644 --- a/specification/transform/get_transform/GetTransformRequest.ts +++ b/specification/transform/get_transform/GetTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { integer } from '@_types/Numeric' /** @@ -50,6 +50,7 @@ export interface Request extends RequestBase { */ transform_id?: Names } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/transform/get_transform_stats/GetTransformStatsRequest.ts b/specification/transform/get_transform_stats/GetTransformStatsRequest.ts index 6bac02dbf3..4f6fd3fbcb 100644 --- a/specification/transform/get_transform_stats/GetTransformStatsRequest.ts +++ b/specification/transform/get_transform_stats/GetTransformStatsRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Names } from '@_types/common' +import { MediaType, Names } from '@_types/common' import { long } from '@_types/Numeric' import { Duration } from '@_types/Time' @@ -49,6 +49,7 @@ export interface Request extends RequestBase { */ transform_id: Names } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: diff --git a/specification/transform/preview_transform/PreviewTransformRequest.ts b/specification/transform/preview_transform/PreviewTransformRequest.ts index 0de93ec7f8..aab8e4fe37 100644 --- a/specification/transform/preview_transform/PreviewTransformRequest.ts +++ b/specification/transform/preview_transform/PreviewTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ transform_id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the diff --git a/specification/transform/put_transform/PutTransformRequest.ts b/specification/transform/put_transform/PutTransformRequest.ts index 2387f13e75..624b9c7620 100644 --- a/specification/transform/put_transform/PutTransformRequest.ts +++ b/specification/transform/put_transform/PutTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -74,6 +74,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When the transform is created, a series of validations occur to ensure its success. For example, there is a diff --git a/specification/transform/reset_transform/ResetTransformRequest.ts b/specification/transform/reset_transform/ResetTransformRequest.ts index 5682d83237..53dc2f65e4 100644 --- a/specification/transform/reset_transform/ResetTransformRequest.ts +++ b/specification/transform/reset_transform/ResetTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -46,6 +46,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform diff --git a/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts b/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts index d5597e6cfa..c5a92826c5 100644 --- a/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts +++ b/specification/transform/schedule_now_transform/ScheduleNowTransformRequest.ts @@ -17,7 +17,7 @@ * under the License. */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -47,6 +47,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Controls the time to wait for the scheduling to take place diff --git a/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts b/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts index a6918ca012..7b98dce75a 100644 --- a/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts +++ b/specification/transform/set_upgrade_mode/TransformSetUpgradeModeRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Set upgrade_mode for transform indices. @@ -47,6 +48,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * When `true`, it enables `upgrade_mode` which temporarily halts all diff --git a/specification/transform/start_transform/StartTransformRequest.ts b/specification/transform/start_transform/StartTransformRequest.ts index 5b3b630e9c..02869a87f7 100644 --- a/specification/transform/start_transform/StartTransformRequest.ts +++ b/specification/transform/start_transform/StartTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -58,6 +58,7 @@ export interface Request extends RequestBase { */ transform_id: Id } + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/transform/stop_transform/StopTransformRequest.ts b/specification/transform/stop_transform/StopTransformRequest.ts index d9af7b62b4..b4f31a5a25 100644 --- a/specification/transform/stop_transform/StopTransformRequest.ts +++ b/specification/transform/stop_transform/StopTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' import { Duration } from '@_types/Time' /** @@ -44,6 +44,7 @@ export interface Request extends RequestBase { */ transform_id: Name } + response_media_type: MediaType.Json query_parameters: { /** * Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; diff --git a/specification/transform/update_transform/UpdateTransformRequest.ts b/specification/transform/update_transform/UpdateTransformRequest.ts index f47640ce36..b3e9b5dc43 100644 --- a/specification/transform/update_transform/UpdateTransformRequest.ts +++ b/specification/transform/update_transform/UpdateTransformRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata } from '@_types/common' +import { Id, MediaType, Metadata } from '@_types/common' import { Duration } from '@_types/Time' import { Destination, @@ -57,6 +57,8 @@ export interface Request extends RequestBase { */ transform_id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When true, deferrable validations are not run. This behavior may be diff --git a/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts b/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts index ac3675d7e8..8105c975d9 100644 --- a/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts +++ b/specification/transform/upgrade_transforms/UpgradeTransformsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Upgrade all transforms. @@ -49,6 +50,8 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * When true, the request checks for updates but does not run them. diff --git a/specification/watcher/ack_watch/WatcherAckWatchRequest.ts b/specification/watcher/ack_watch/WatcherAckWatchRequest.ts index 95a9b9edbf..f80e9cb3b0 100644 --- a/specification/watcher/ack_watch/WatcherAckWatchRequest.ts +++ b/specification/watcher/ack_watch/WatcherAckWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name, Names } from '@_types/common' +import { MediaType, Name, Names } from '@_types/common' /** * Acknowledge a watch. @@ -58,4 +58,5 @@ export interface Request extends RequestBase { */ action_id?: Names } + response_media_type: MediaType.Json } diff --git a/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts b/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts index f657949ebc..865ae1d89c 100644 --- a/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts +++ b/specification/watcher/activate_watch/WatcherActivateWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Activate a watch. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ watch_id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts b/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts index 52b7e7bb35..cf3fe89053 100644 --- a/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts +++ b/specification/watcher/deactivate_watch/DeactivateWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Deactivate a watch. @@ -42,4 +42,5 @@ export interface Request extends RequestBase { */ watch_id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/delete_watch/DeleteWatchRequest.ts b/specification/watcher/delete_watch/DeleteWatchRequest.ts index 560a4dd8e8..7a7aef5d20 100644 --- a/specification/watcher/delete_watch/DeleteWatchRequest.ts +++ b/specification/watcher/delete_watch/DeleteWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Delete a watch. @@ -47,4 +47,5 @@ export interface Request extends RequestBase { */ id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts b/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts index 7f9b3fb32a..cf39bc2053 100644 --- a/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts +++ b/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Id } from '@_types/common' +import { Id, MediaType } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { ActionExecutionMode, SimulatedActions } from '@watcher/_types/Action' @@ -62,6 +62,8 @@ export interface Request extends RequestBase { */ id?: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * Defines whether the watch runs in debug mode. diff --git a/specification/watcher/get_settings/WatcherGetSettingsRequest.ts b/specification/watcher/get_settings/WatcherGetSettingsRequest.ts index 16dfcc0719..e775561105 100644 --- a/specification/watcher/get_settings/WatcherGetSettingsRequest.ts +++ b/specification/watcher/get_settings/WatcherGetSettingsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get Watcher index settings. @@ -35,6 +36,8 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/watcher/get_watch/GetWatchRequest.ts b/specification/watcher/get_watch/GetWatchRequest.ts index 0294a97127..699902a40f 100644 --- a/specification/watcher/get_watch/GetWatchRequest.ts +++ b/specification/watcher/get_watch/GetWatchRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Name } from '@_types/common' +import { MediaType, Name } from '@_types/common' /** * Get a watch. @@ -40,4 +40,5 @@ export interface Request extends RequestBase { */ id: Name } + response_media_type: MediaType.Json } diff --git a/specification/watcher/put_watch/WatcherPutWatchRequest.ts b/specification/watcher/put_watch/WatcherPutWatchRequest.ts index b7c418e79f..a787d436d7 100644 --- a/specification/watcher/put_watch/WatcherPutWatchRequest.ts +++ b/specification/watcher/put_watch/WatcherPutWatchRequest.ts @@ -18,7 +18,13 @@ */ import { RequestBase } from '@_types/Base' -import { Id, Metadata, SequenceNumber, VersionNumber } from '@_types/common' +import { + Id, + MediaType, + Metadata, + SequenceNumber, + VersionNumber +} from '@_types/common' import { long } from '@_types/Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' import { TransformContainer } from '@_types/Transform' @@ -59,6 +65,8 @@ export interface Request extends RequestBase { */ id: Id } + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The initial state of the watch. diff --git a/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts b/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts index 473a78a26c..0208bba751 100644 --- a/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts +++ b/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { integer } from '@_types/Numeric' import { QueryContainer } from '@_types/query_dsl/abstractions' import { Sort, SortResults } from '@_types/sort' @@ -39,6 +40,8 @@ export interface Request extends RequestBase { methods: ['GET', 'POST'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json body?: { /** * The offset from the first result to fetch. diff --git a/specification/watcher/start/WatcherStartRequest.ts b/specification/watcher/start/WatcherStartRequest.ts index 4c7726a82a..41d0593c04 100644 --- a/specification/watcher/start/WatcherStartRequest.ts +++ b/specification/watcher/start/WatcherStartRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Start the watch service. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * Period to wait for a connection to the master node. diff --git a/specification/watcher/stats/WatcherStatsRequest.ts b/specification/watcher/stats/WatcherStatsRequest.ts index fb508b6dac..7dbe9a8344 100644 --- a/specification/watcher/stats/WatcherStatsRequest.ts +++ b/specification/watcher/stats/WatcherStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' import { WatcherMetric } from './types' /** @@ -46,6 +47,7 @@ export interface Request extends RequestBase { */ metric?: WatcherMetric | WatcherMetric[] } + response_media_type: MediaType.Json query_parameters: { /** * Defines whether stack traces are generated for each watch that is running. diff --git a/specification/watcher/stop/WatcherStopRequest.ts b/specification/watcher/stop/WatcherStopRequest.ts index 806d8c3586..04b469d630 100644 --- a/specification/watcher/stop/WatcherStopRequest.ts +++ b/specification/watcher/stop/WatcherStopRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Stop the watch service. @@ -35,6 +36,7 @@ export interface Request extends RequestBase { methods: ['POST'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for the master node. diff --git a/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts b/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts index b46f3780e1..a9116ddf6f 100644 --- a/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts +++ b/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { integer } from '@_types/Numeric' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Update Watcher index settings. @@ -41,6 +42,8 @@ export interface Request extends RequestBase { methods: ['PUT'] } ] + request_media_type: MediaType.Json + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node. diff --git a/specification/xpack/info/XPackInfoRequest.ts b/specification/xpack/info/XPackInfoRequest.ts index 24d657fcb1..c0ee6102ed 100644 --- a/specification/xpack/info/XPackInfoRequest.ts +++ b/specification/xpack/info/XPackInfoRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { MediaType } from '@_types/common' /** * Get information. @@ -39,6 +40,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * A comma-separated list of the information categories to include in the response. diff --git a/specification/xpack/usage/XPackUsageRequest.ts b/specification/xpack/usage/XPackUsageRequest.ts index 700b5df1fe..13242a5f81 100644 --- a/specification/xpack/usage/XPackUsageRequest.ts +++ b/specification/xpack/usage/XPackUsageRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Duration } from '@_types/Time' +import { MediaType } from '@_types/common' /** * Get usage information. @@ -37,6 +38,7 @@ export interface Request extends RequestBase { methods: ['GET'] } ] + response_media_type: MediaType.Json query_parameters: { /** * The period to wait for a connection to the master node.