Commit f362ab2
authored
* 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 <laurent.saintfelix@elastic.co>
(cherry picked from commit 8260d40)
# 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
1 parent 03e81e0 commit f362ab2
File tree
573 files changed
+2111
-1088
lines changed- compiler/src
- model
- steps
- output/schema
- specification
- _global
- bulk
- capabilities
- clear_scroll
- close_point_in_time
- count
- create
- delete_by_query_rethrottle
- delete_by_query
- delete_script
- delete
- exists_source
- exists
- explain
- field_caps
- get_script_context
- get_script_languages
- get_script
- get_source
- get
- health_report
- index
- info
- knn_search
- mget
- msearch_template
- msearch
- mtermvectors
- open_point_in_time
- ping
- put_script
- rank_eval
- reindex_rethrottle
- reindex
- render_search_template
- scripts_painless_execute
- scroll
- search_mvt
- search_shards
- search_template
- search
- terms_enum
- termvectors
- update_by_query_rethrottle
- update_by_query
- update
- _internal
- delete_desired_balance
- delete_desired_nodes
- get_desired_balance
- get_desired_nodes
- prevalidate_node_removal
- update_desired_nodes
- _types
- async_search
- delete
- get
- status
- submit
- autoscaling
- delete_autoscaling_policy
- get_autoscaling_capacity
- get_autoscaling_policy
- put_autoscaling_policy
- cat
- aliases
- allocation
- component_templates
- count
- fielddata
- health
- help
- indices
- master
- ml_data_frame_analytics
- ml_datafeeds
- ml_jobs
- ml_trained_models
- nodeattrs
- nodes
- pending_tasks
- plugins
- recovery
- repositories
- segments
- shards
- snapshots
- tasks
- templates
- thread_pool
- transforms
- ccr
- delete_auto_follow_pattern
- follow_info
- follow_stats
- follow
- forget_follower
- get_auto_follow_pattern
- pause_auto_follow_pattern
- pause_follow
- put_auto_follow_pattern
- resume_auto_follow_pattern
- resume_follow
- stats
- unfollow
- cluster
- allocation_explain
- delete_component_template
- delete_voting_config_exclusions
- exists_component_template
- get_component_template
- get_settings
- health
- info
- pending_tasks
- post_voting_config_exclusions
- put_component_template
- put_settings
- remote_info
- reroute
- state
- stats
- connector
- check_in
- delete
- get
- last_sync
- list
- post
- put
- secret_delete
- secret_get
- secret_post
- secret_put
- sync_job_cancel
- sync_job_check_in
- sync_job_claim
- sync_job_delete
- sync_job_error
- sync_job_get
- sync_job_list
- sync_job_post
- sync_job_update_stats
- update_active_filtering
- update_api_key_id
- update_configuration
- update_error
- update_features
- update_filtering_validation
- update_filtering
- update_index_name
- update_name
- update_native
- update_pipeline
- update_scheduling
- update_service_type
- update_status
- dangling_indices
- delete_dangling_index
- import_dangling_index
- list_dangling_indices
- enrich
- delete_policy
- execute_policy
- get_policy
- put_policy
- stats
- eql
- delete
- get_status
- get
- search
- esql
- async_query_delete
- async_query_get
- async_query_stop
- async_query
- query
- features
- get_features
- reset_features
- fleet
- delete_secret
- get_secret
- global_checkpoints
- msearch
- post_secret
- search
- graph/explore
- ilm
- delete_lifecycle
- explain_lifecycle
- get_lifecycle
- get_status
- migrate_to_data_tiers
- move_to_step
- put_lifecycle
- remove_policy
- retry
- start
- stop
- indices
- add_block
- analyze
- cancel_migrate_reindex
- clear_cache
- clone
- close
- create_data_stream
- create_from
- create
- data_streams_stats
- delete_alias
- delete_data_lifecycle
- delete_data_stream_options
- delete_data_stream
- delete_index_template
- delete_template
- delete
- disk_usage
- downsample
- exists_alias
- exists_index_template
- exists_template
- exists
- explain_data_lifecycle
- field_usage_stats
- flush
- forcemerge
- get_alias
- get_data_lifecycle_stats
- get_data_lifecycle
- get_data_stream_options
- get_data_stream_settings
- get_data_stream
- get_field_mapping
- get_index_template
- get_mapping
- get_migrate_reindex_status
- get_settings
- get_template
- get
- migrate_reindex
- migrate_to_data_stream
- modify_data_stream
- open
- promote_data_stream
- put_alias
- put_data_lifecycle
- put_data_stream_options
- put_data_stream_settings
- put_index_template
- put_mapping
- put_settings
- put_template
- recovery
- refresh
- reload_search_analyzers
- resolve_cluster
- resolve_index
- rollover
- segments
- shard_stores
- shrink
- simulate_index_template
- simulate_template
- split
- stats
- unfreeze
- update_aliases
- validate_query
- inference
- chat_completion_unified
- completion
- delete
- get
- inference
- put_alibabacloud
- put_amazonbedrock
- put_amazonsagemaker
- put_anthropic
- put_azureaistudio
- put_azureopenai
- put_cohere
- put_custom
- put_deepseek
- put_elasticsearch
- put_elser
- put_googleaistudio
- put_googlevertexai
- put_hugging_face
- put_jinaai
- put_mistral
- put_openai
- put_voyageai
- put_watsonx
- put
- rerank
- sparse_embedding
- stream_completion
- text_embedding
- update
- ingest
- delete_geoip_database
- delete_ip_location_database
- delete_pipeline
- geo_ip_stats
- get_geoip_database
- get_ip_location_database
- get_pipeline
- processor_grok
- put_geoip_database
- put_ip_location_database
- put_pipeline
- simulate
- license
- delete
- get_basic_status
- get_trial_status
- get
- post_start_basic
- post_start_trial
- post
- logstash
- delete_pipeline
- get_pipeline
- put_pipeline
- migration
- deprecations
- get_feature_upgrade_status
- post_feature_upgrade
- ml
- clear_trained_model_deployment_cache
- close_job
- delete_calendar_event
- delete_calendar_job
- delete_calendar
- delete_data_frame_analytics
- delete_datafeed
- delete_expired_data
- delete_filter
- delete_forecast
- delete_job
- delete_model_snapshot
- delete_trained_model_alias
- delete_trained_model
- estimate_model_memory
- evaluate_data_frame
- explain_data_frame_analytics
- flush_job
- forecast
- get_buckets
- get_calendar_events
- get_calendars
- get_categories
- get_data_frame_analytics_stats
- get_data_frame_analytics
- get_datafeed_stats
- get_datafeeds
- get_filters
- get_influencers
- get_job_stats
- get_jobs
- get_memory_stats
- get_model_snapshot_upgrade_stats
- get_model_snapshots
- get_overall_buckets
- get_records
- get_trained_models_stats
- get_trained_models
- infer_trained_model
- info
- open_job
- post_calendar_events
- post_data
- preview_data_frame_analytics
- preview_datafeed
- put_calendar_job
- put_calendar
- put_data_frame_analytics
- put_datafeed
- put_filter
- put_job
- put_trained_model_alias
- put_trained_model_definition_part
- put_trained_model_vocabulary
- put_trained_model
- reset_job
- revert_model_snapshot
- set_upgrade_mode
- start_data_frame_analytics
- start_datafeed
- start_trained_model_deployment
- stop_data_frame_analytics
- stop_datafeed
- stop_trained_model_deployment
- update_data_frame_analytics
- update_datafeed
- update_filter
- update_job
- update_model_snapshot
- update_trained_model_deployment
- upgrade_job_snapshot
- validate_detector
- validate
- monitoring/bulk
- nodes
- clear_repositories_metering_archive
- get_repositories_metering_info
- hot_threads
- info
- reload_secure_settings
- stats
- usage
- profiling
- flamegraph
- stacktraces
- status
- topn_functions
- query_rules
- delete_ruleset
- delete_rule
- get_ruleset
- get_rule
- list_rulesets
- put_ruleset
- put_rule
- test
- rollup
- delete_job
- get_jobs
- get_rollup_caps
- get_rollup_index_caps
- put_job
- rollup_search
- start_job
- stop_job
- search_application
- delete_behavioral_analytics
- delete
- get_behavioral_analytics
- get
- list
- post_behavioral_analytics_event
- put_behavioral_analytics
- put
- render_query
- search
- searchable_snapshots
- cache_stats
- clear_cache
- mount
- stats
- security
- activate_user_profile
- authenticate
- bulk_delete_role
- bulk_put_role
- bulk_update_api_keys
- change_password
- clear_api_key_cache
- clear_cached_privileges
- clear_cached_realms
- clear_cached_roles
- clear_cached_service_tokens
- create_api_key
- create_cross_cluster_api_key
- create_service_token
- delegate_pki
- delete_privileges
- delete_role_mapping
- delete_role
- delete_service_token
- delete_user
- disable_user_profile
- disable_user
- enable_user_profile
- enable_user
- enroll_kibana
- enroll_node
- get_api_key
- get_builtin_privileges
- get_privileges
- get_role_mapping
- get_role
- get_service_accounts
- get_service_credentials
- get_settings
- get_token
- get_user_privileges
- get_user_profile
- get_user
- grant_api_key
- has_privileges_user_profile
- has_privileges
- invalidate_api_key
- invalidate_token
- oidc_authenticate
- oidc_logout
- oidc_prepare_authentication
- put_privileges
- put_role_mapping
- put_role
- put_user
- query_api_keys
- query_role
- query_user
- saml_authenticate
- saml_complete_logout
- saml_invalidate
- saml_logout
- saml_prepare_authentication
- saml_service_provider_metadata
- suggest_user_profiles
- update_api_key
- update_cross_cluster_api_key
- update_settings
- update_user_profile_data
- shutdown
- delete_node
- get_node
- put_node
- simulate/ingest
- slm
- delete_lifecycle
- execute_lifecycle
- execute_retention
- get_lifecycle
- get_stats
- get_status
- put_lifecycle
- start
- stop
- snapshot
- cleanup_repository
- clone
- create_repository
- create
- delete_repository
- delete
- get_repository
- get
- repository_analyze
- repository_verify_integrity
- restore
- status
- verify_repository
- sql
- clear_cursor
- delete_async
- get_async_status
- get_async
- query
- translate
- ssl/certificates
- streams
- logs_disable
- logs_enable
- status
- synonyms
- delete_synonym_rule
- delete_synonym
- get_synonym_rule
- get_synonyms_sets
- get_synonym
- put_synonym_rule
- put_synonym
- tasks
- cancel
- get
- list
- text_structure
- find_field_structure
- find_message_structure
- find_structure
- test_grok_pattern
- transform
- delete_transform
- get_node_stats
- get_transform_stats
- get_transform
- preview_transform
- put_transform
- reset_transform
- schedule_now_transform
- set_upgrade_mode
- start_transform
- stop_transform
- update_transform
- upgrade_transforms
- watcher
- ack_watch
- activate_watch
- deactivate_watch
- delete_watch
- execute_watch
- get_settings
- get_watch
- put_watch
- query_watches
- start
- stats
- stop
- update_settings
- xpack
- info
- usage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
573 files changed
+2111
-1088
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1504 | 1504 | | |
1505 | 1505 | | |
1506 | 1506 | | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
This file was deleted.
0 commit comments