Skip to content

WIP better generated API reference docs #2854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ rest-api-spec
yaml-rest-tests
generated-tests
schema
api-extractor/*
42 changes: 22 additions & 20 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
# unit testing and coverage artifacts
lib-cov

# Coverage directory used by tools like istanbul
coverage

# coverage output
coverage.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
.tap
rest-api-spec
yaml-rest-tests
generated-tests
junit-output

# node-waf configuration
# lock files
.lock-wscript
package-lock.json
bun.lockb

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
Expand All @@ -45,17 +44,18 @@ jspm_packages
# vim swap files
*.swp

package-lock.json

# elasticsearch repo or binary files
elasticsearch*

# Generated typings, we don't commit them
# because we should copy them in the main .d.ts file
api/generated.d.ts

# Ignore doc folder
# documentation
docs
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CHANGELOG.md

# Ignore test folder
test
Expand All @@ -68,12 +68,14 @@ scripts
.buildkite
certs
.github
CODE_OF_CONDUCT.md
CONTRIBUTING.md

# Uncompiled source
src
bun.lockb
.tap
rest-api-spec
yaml-rest-tests
generated-tests

# repo configurations
.dockerignore
.gitignore
catalog-info.yaml
codecov.yml
renovate.json
tsconfig.json
39 changes: 39 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "<projectFolder>/lib/client.d.ts",
"bundledPackages": [
"@elastic/elasticsearch"
],
"apiReport": {
"enabled": false
},
"docModel": {
"enabled": true,
"apiJsonFilePath": "<projectFolder>/api-extractor/<unscopedPackageName>.api.json",
"includeForgottenExports": true
},
"dtsRollup": {
"enabled": false
},
"tsdocMetadata": {
"enabled": true,
"tsdocMetadataFilePath": "<projectFolder>/api-extractor/tsdoc-metadata.json"
},
"messages": {
"compilerMessageReporting": {
"default": {
"logLevel": "warning"
}
},
"extractorMessageReporting": {
"default": {
"logLevel": "warning"
}
},
"tsdocMessageReporting": {
"default": {
"logLevel": "warning"
}
}
}
}
15,486 changes: 1 addition & 15,485 deletions docs/reference/api-reference.md

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions docs/reference/api/API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# `API` [interface-API]

| Name | Type | Description |
| - | - | - |
| `asyncSearch` | [AsyncSearchApi](./AsyncSearchApi.md) | &nbsp; |
| `autoscaling` | [AutoscalingApi](./AutoscalingApi.md) | &nbsp; |
| `bulk` | typeof [bulkApi](./bulkApi.md) | &nbsp; |
| `capabilities` | typeof [capabilitiesApi](./capabilitiesApi.md) | &nbsp; |
| `cat` | [CatApi](./CatApi.md) | &nbsp; |
| `ccr` | [CcrApi](./CcrApi.md) | &nbsp; |
| `clearScroll` | typeof [clearScrollApi](./clearScrollApi.md) | &nbsp; |
| `closePointInTime` | typeof [closePointInTimeApi](./closePointInTimeApi.md) | &nbsp; |
| `cluster` | [ClusterApi](./ClusterApi.md) | &nbsp; |
| `connector` | [ConnectorApi](./ConnectorApi.md) | &nbsp; |
| `count` | typeof [countApi](./countApi.md) | &nbsp; |
| `create` | typeof [createApi](./createApi.md) | &nbsp; |
| `danglingIndices` | [DanglingIndicesApi](./DanglingIndicesApi.md) | &nbsp; |
| `delete` | typeof [deleteApi](./deleteApi.md) | &nbsp; |
| `deleteByQuery` | typeof [deleteByQueryApi](./deleteByQueryApi.md) | &nbsp; |
| `deleteByQueryRethrottle` | typeof [deleteByQueryRethrottleApi](./deleteByQueryRethrottleApi.md) | &nbsp; |
| `deleteScript` | typeof [deleteScriptApi](./deleteScriptApi.md) | &nbsp; |
| `enrich` | [EnrichApi](./EnrichApi.md) | &nbsp; |
| `eql` | [EqlApi](./EqlApi.md) | &nbsp; |
| `esql` | [EsqlApi](./EsqlApi.md) | &nbsp; |
| `exists` | typeof [existsApi](./existsApi.md) | &nbsp; |
| `existsSource` | typeof [existsSourceApi](./existsSourceApi.md) | &nbsp; |
| `explain` | typeof [explainApi](./explainApi.md) | &nbsp; |
| `features` | [FeaturesApi](./FeaturesApi.md) | &nbsp; |
| `fieldCaps` | typeof [fieldCapsApi](./fieldCapsApi.md) | &nbsp; |
| `fleet` | [FleetApi](./FleetApi.md) | &nbsp; |
| `get` | typeof [getApi](./getApi.md) | &nbsp; |
| `getScript` | typeof [getScriptApi](./getScriptApi.md) | &nbsp; |
| `getScriptContext` | typeof [getScriptContextApi](./getScriptContextApi.md) | &nbsp; |
| `getScriptLanguages` | typeof [getScriptLanguagesApi](./getScriptLanguagesApi.md) | &nbsp; |
| `getSource` | typeof [getSourceApi](./getSourceApi.md) | &nbsp; |
| `graph` | [GraphApi](./GraphApi.md) | &nbsp; |
| `healthReport` | typeof [healthReportApi](./healthReportApi.md) | &nbsp; |
| `ilm` | [IlmApi](./IlmApi.md) | &nbsp; |
| `index` | typeof [indexApi](./indexApi.md) | &nbsp; |
| `indices` | [IndicesApi](./IndicesApi.md) | &nbsp; |
| `inference` | [InferenceApi](./InferenceApi.md) | &nbsp; |
| `info` | typeof [infoApi](./infoApi.md) | &nbsp; |
| `ingest` | [IngestApi](./IngestApi.md) | &nbsp; |
| `knnSearch` | typeof [knnSearchApi](./knnSearchApi.md) | &nbsp; |
| `license` | [LicenseApi](./LicenseApi.md) | &nbsp; |
| `logstash` | [LogstashApi](./LogstashApi.md) | &nbsp; |
| `mget` | typeof [mgetApi](./mgetApi.md) | &nbsp; |
| `migration` | [MigrationApi](./MigrationApi.md) | &nbsp; |
| `ml` | [MlApi](./MlApi.md) | &nbsp; |
| `monitoring` | [MonitoringApi](./MonitoringApi.md) | &nbsp; |
| `msearch` | typeof [msearchApi](./msearchApi.md) | &nbsp; |
| `msearchTemplate` | typeof [msearchTemplateApi](./msearchTemplateApi.md) | &nbsp; |
| `mtermvectors` | typeof [mtermvectorsApi](./mtermvectorsApi.md) | &nbsp; |
| `nodes` | [NodesApi](./NodesApi.md) | &nbsp; |
| `openPointInTime` | typeof [openPointInTimeApi](./openPointInTimeApi.md) | &nbsp; |
| `ping` | typeof [pingApi](./pingApi.md) | &nbsp; |
| `profiling` | [ProfilingApi](./ProfilingApi.md) | &nbsp; |
| `putScript` | typeof [putScriptApi](./putScriptApi.md) | &nbsp; |
| `queryRules` | [QueryRulesApi](./QueryRulesApi.md) | &nbsp; |
| `rankEval` | typeof [rankEvalApi](./rankEvalApi.md) | &nbsp; |
| `reindex` | typeof [reindexApi](./reindexApi.md) | &nbsp; |
| `reindexRethrottle` | typeof [reindexRethrottleApi](./reindexRethrottleApi.md) | &nbsp; |
| `renderSearchTemplate` | typeof [renderSearchTemplateApi](./renderSearchTemplateApi.md) | &nbsp; |
| `rollup` | [RollupApi](./RollupApi.md) | &nbsp; |
| `scriptsPainlessExecute` | typeof [scriptsPainlessExecuteApi](./scriptsPainlessExecuteApi.md) | &nbsp; |
| `scroll` | typeof [scrollApi](./scrollApi.md) | &nbsp; |
| `search` | typeof [searchApi](./searchApi.md) | &nbsp; |
| `searchableSnapshots` | [SearchableSnapshotsApi](./SearchableSnapshotsApi.md) | &nbsp; |
| `searchApplication` | [SearchApplicationApi](./SearchApplicationApi.md) | &nbsp; |
| `searchMvt` | typeof [searchMvtApi](./searchMvtApi.md) | &nbsp; |
| `searchShards` | typeof [searchShardsApi](./searchShardsApi.md) | &nbsp; |
| `searchTemplate` | typeof [searchTemplateApi](./searchTemplateApi.md) | &nbsp; |
| `security` | [SecurityApi](./SecurityApi.md) | &nbsp; |
| `shutdown` | [ShutdownApi](./ShutdownApi.md) | &nbsp; |
| `simulate` | [SimulateApi](./SimulateApi.md) | &nbsp; |
| `slm` | [SlmApi](./SlmApi.md) | &nbsp; |
| `snapshot` | [SnapshotApi](./SnapshotApi.md) | &nbsp; |
| `sql` | [SqlApi](./SqlApi.md) | &nbsp; |
| `ssl` | [SslApi](./SslApi.md) | &nbsp; |
| `synonyms` | [SynonymsApi](./SynonymsApi.md) | &nbsp; |
| `tasks` | [TasksApi](./TasksApi.md) | &nbsp; |
| `termsEnum` | typeof [termsEnumApi](./termsEnumApi.md) | &nbsp; |
| `termvectors` | typeof [termvectorsApi](./termvectorsApi.md) | &nbsp; |
| `textStructure` | [TextStructureApi](./TextStructureApi.md) | &nbsp; |
| `transform` | [TransformApi](./TransformApi.md) | &nbsp; |
| `update` | typeof [updateApi](./updateApi.md) | &nbsp; |
| `updateByQuery` | typeof [updateByQueryApi](./updateByQueryApi.md) | &nbsp; |
| `updateByQueryRethrottle` | typeof [updateByQueryRethrottleApi](./updateByQueryRethrottleApi.md) | &nbsp; |
| `watcher` | [WatcherApi](./WatcherApi.md) | &nbsp; |
| `xpack` | [XpackApi](./XpackApi.md) | &nbsp; |
5 changes: 5 additions & 0 deletions docs/reference/api/AcknowledgedResponseBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `AcknowledgedResponseBase` [interface-AcknowledgedResponseBase]

| Name | Type | Description |
| - | - | - |
| `acknowledged` | boolean | For a successful response, this value is always true. On failure, an exception is returned instead. |
4 changes: 4 additions & 0 deletions docs/reference/api/Action.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `Action` [alias-Action]
```typescript
type Action = [IndexAction](./IndexAction.md) | [CreateAction](./CreateAction.md) | [UpdateAction](./UpdateAction.md) | [DeleteAction](./DeleteAction.md);
```
4 changes: 4 additions & 0 deletions docs/reference/api/AggregateName.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregateName` [alias-AggregateName]
```typescript
type AggregateName = string;
```
4 changes: 4 additions & 0 deletions docs/reference/api/AggregationsAdjacencyMatrixAggregate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregationsAdjacencyMatrixAggregate` [interface-AggregationsAdjacencyMatrixAggregate]

| Name | Type | Description |
| - | - | - |
6 changes: 6 additions & 0 deletions docs/reference/api/AggregationsAdjacencyMatrixAggregation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# `AggregationsAdjacencyMatrixAggregation` [interface-AggregationsAdjacencyMatrixAggregation]

| Name | Type | Description |
| - | - | - |
| `filters` | Record<string, [QueryDslQueryContainer](./QueryDslQueryContainer.md)> | Filters used to create buckets. At least one filter is required. |
| `separator` | string | Separator used to concatenate filter names. Defaults to &. |
4 changes: 4 additions & 0 deletions docs/reference/api/AggregationsAdjacencyMatrixBucket.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregationsAdjacencyMatrixBucket` [alias-AggregationsAdjacencyMatrixBucket]
```typescript
type AggregationsAdjacencyMatrixBucket = [AggregationsAdjacencyMatrixBucketKeys](./AggregationsAdjacencyMatrixBucketKeys.md) & { [property: string]: [AggregationsAggregate](./AggregationsAggregate.md) | string | [long](./long.md);};
```
5 changes: 5 additions & 0 deletions docs/reference/api/AggregationsAdjacencyMatrixBucketKeys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `AggregationsAdjacencyMatrixBucketKeys` [interface-AggregationsAdjacencyMatrixBucketKeys]

| Name | Type | Description |
| - | - | - |
| `key` | string | &nbsp; |
4 changes: 4 additions & 0 deletions docs/reference/api/AggregationsAggregate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregationsAggregate` [alias-AggregationsAggregate]
```typescript
type AggregationsAggregate = [AggregationsCardinalityAggregate](./AggregationsCardinalityAggregate.md) | [AggregationsHdrPercentilesAggregate](./AggregationsHdrPercentilesAggregate.md) | [AggregationsHdrPercentileRanksAggregate](./AggregationsHdrPercentileRanksAggregate.md) | [AggregationsTDigestPercentilesAggregate](./AggregationsTDigestPercentilesAggregate.md) | [AggregationsTDigestPercentileRanksAggregate](./AggregationsTDigestPercentileRanksAggregate.md) | [AggregationsPercentilesBucketAggregate](./AggregationsPercentilesBucketAggregate.md) | [AggregationsMedianAbsoluteDeviationAggregate](./AggregationsMedianAbsoluteDeviationAggregate.md) | [AggregationsMinAggregate](./AggregationsMinAggregate.md) | [AggregationsMaxAggregate](./AggregationsMaxAggregate.md) | [AggregationsSumAggregate](./AggregationsSumAggregate.md) | [AggregationsAvgAggregate](./AggregationsAvgAggregate.md) | [AggregationsWeightedAvgAggregate](./AggregationsWeightedAvgAggregate.md) | [AggregationsValueCountAggregate](./AggregationsValueCountAggregate.md) | [AggregationsSimpleValueAggregate](./AggregationsSimpleValueAggregate.md) | [AggregationsDerivativeAggregate](./AggregationsDerivativeAggregate.md) | [AggregationsBucketMetricValueAggregate](./AggregationsBucketMetricValueAggregate.md) | [AggregationsStatsAggregate](./AggregationsStatsAggregate.md) | [AggregationsStatsBucketAggregate](./AggregationsStatsBucketAggregate.md) | [AggregationsExtendedStatsAggregate](./AggregationsExtendedStatsAggregate.md) | [AggregationsExtendedStatsBucketAggregate](./AggregationsExtendedStatsBucketAggregate.md) | [AggregationsGeoBoundsAggregate](./AggregationsGeoBoundsAggregate.md) | [AggregationsGeoCentroidAggregate](./AggregationsGeoCentroidAggregate.md) | [AggregationsHistogramAggregate](./AggregationsHistogramAggregate.md) | [AggregationsDateHistogramAggregate](./AggregationsDateHistogramAggregate.md) | [AggregationsAutoDateHistogramAggregate](./AggregationsAutoDateHistogramAggregate.md) | [AggregationsVariableWidthHistogramAggregate](./AggregationsVariableWidthHistogramAggregate.md) | [AggregationsStringTermsAggregate](./AggregationsStringTermsAggregate.md) | [AggregationsLongTermsAggregate](./AggregationsLongTermsAggregate.md) | [AggregationsDoubleTermsAggregate](./AggregationsDoubleTermsAggregate.md) | [AggregationsUnmappedTermsAggregate](./AggregationsUnmappedTermsAggregate.md) | [AggregationsLongRareTermsAggregate](./AggregationsLongRareTermsAggregate.md) | [AggregationsStringRareTermsAggregate](./AggregationsStringRareTermsAggregate.md) | [AggregationsUnmappedRareTermsAggregate](./AggregationsUnmappedRareTermsAggregate.md) | [AggregationsMultiTermsAggregate](./AggregationsMultiTermsAggregate.md) | [AggregationsMissingAggregate](./AggregationsMissingAggregate.md) | [AggregationsNestedAggregate](./AggregationsNestedAggregate.md) | [AggregationsReverseNestedAggregate](./AggregationsReverseNestedAggregate.md) | [AggregationsGlobalAggregate](./AggregationsGlobalAggregate.md) | [AggregationsFilterAggregate](./AggregationsFilterAggregate.md) | [AggregationsChildrenAggregate](./AggregationsChildrenAggregate.md) | [AggregationsParentAggregate](./AggregationsParentAggregate.md) | [AggregationsSamplerAggregate](./AggregationsSamplerAggregate.md) | [AggregationsUnmappedSamplerAggregate](./AggregationsUnmappedSamplerAggregate.md) | [AggregationsGeoHashGridAggregate](./AggregationsGeoHashGridAggregate.md) | [AggregationsGeoTileGridAggregate](./AggregationsGeoTileGridAggregate.md) | [AggregationsGeoHexGridAggregate](./AggregationsGeoHexGridAggregate.md) | [AggregationsRangeAggregate](./AggregationsRangeAggregate.md) | [AggregationsDateRangeAggregate](./AggregationsDateRangeAggregate.md) | [AggregationsGeoDistanceAggregate](./AggregationsGeoDistanceAggregate.md) | [AggregationsIpRangeAggregate](./AggregationsIpRangeAggregate.md) | [AggregationsIpPrefixAggregate](./AggregationsIpPrefixAggregate.md) | [AggregationsFiltersAggregate](./AggregationsFiltersAggregate.md) | [AggregationsAdjacencyMatrixAggregate](./AggregationsAdjacencyMatrixAggregate.md) | [AggregationsSignificantLongTermsAggregate](./AggregationsSignificantLongTermsAggregate.md) | [AggregationsSignificantStringTermsAggregate](./AggregationsSignificantStringTermsAggregate.md) | [AggregationsUnmappedSignificantTermsAggregate](./AggregationsUnmappedSignificantTermsAggregate.md) | [AggregationsCompositeAggregate](./AggregationsCompositeAggregate.md) | [AggregationsFrequentItemSetsAggregate](./AggregationsFrequentItemSetsAggregate.md) | [AggregationsTimeSeriesAggregate](./AggregationsTimeSeriesAggregate.md) | [AggregationsScriptedMetricAggregate](./AggregationsScriptedMetricAggregate.md) | [AggregationsTopHitsAggregate](./AggregationsTopHitsAggregate.md) | [AggregationsInferenceAggregate](./AggregationsInferenceAggregate.md) | [AggregationsStringStatsAggregate](./AggregationsStringStatsAggregate.md) | [AggregationsBoxPlotAggregate](./AggregationsBoxPlotAggregate.md) | [AggregationsTopMetricsAggregate](./AggregationsTopMetricsAggregate.md) | [AggregationsTTestAggregate](./AggregationsTTestAggregate.md) | [AggregationsRateAggregate](./AggregationsRateAggregate.md) | [AggregationsCumulativeCardinalityAggregate](./AggregationsCumulativeCardinalityAggregate.md) | [AggregationsMatrixStatsAggregate](./AggregationsMatrixStatsAggregate.md) | [AggregationsGeoLineAggregate](./AggregationsGeoLineAggregate.md);
```
5 changes: 5 additions & 0 deletions docs/reference/api/AggregationsAggregateBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `AggregationsAggregateBase` [interface-AggregationsAggregateBase]

| Name | Type | Description |
| - | - | - |
| `meta` | [Metadata](./Metadata.md) | &nbsp; |
4 changes: 4 additions & 0 deletions docs/reference/api/AggregationsAggregateOrder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregationsAggregateOrder` [alias-AggregationsAggregateOrder]
```typescript
type AggregationsAggregateOrder = [Partial](./Partial.md)<Record<[Field](./Field.md), [SortOrder](./SortOrder.md)>> | [Partial](./Partial.md)<Record<[Field](./Field.md), [SortOrder](./SortOrder.md)>>[];
```
4 changes: 4 additions & 0 deletions docs/reference/api/AggregationsAggregation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# `AggregationsAggregation` [interface-AggregationsAggregation]

| Name | Type | Description |
| - | - | - |
Loading
Loading