Skip to content

Commit ad66a06

Browse files
pquentingithub-actions[bot]
authored andcommitted
Update rest-api-spec
1 parent 50cb8d3 commit ad66a06

File tree

9 files changed

+179
-31
lines changed

9 files changed

+179
-31
lines changed

output/schema/schema.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
"Request: query parameter 'timeout' does not exist in the json spec"
1313
],
1414
"response": []
15+
},
16+
"ml.stop_datafeed": {
17+
"request": [
18+
"Request: missing json spec query parameter 'close_job'"
19+
],
20+
"response": []
21+
},
22+
"project.tags": {
23+
"request": [
24+
"/_project/tags: different http methods in the json spec"
25+
],
26+
"response": []
1527
}
1628
},
1729
"generalErrors": [

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"transform-to-openapi": "npm run transform-to-openapi --prefix compiler --"
44
},
55
"dependencies": {
6-
"@redocly/cli": "^1.34.5"
6+
"@redocly/cli": "^1.34.6"
77
},
88
"version": "overlay"
99
}

specification/_json_spec/inference.put_azureopenai.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"task_type": {
2020
"type": "enum",
2121
"description": "The task type",
22-
"options": ["completion", "text_embedding"]
22+
"options": ["completion", "chat_completion", "text_embedding"]
2323
},
2424
"azureopenai_inference_id": {
2525
"type": "string",
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"inference.put_groq": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-groq",
5+
"description": "Create a Groq inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{groq_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "enum",
21+
"description": "The task type",
22+
"options": ["chat_completion"]
23+
},
24+
"groq_inference_id": {
25+
"type": "string",
26+
"description": "The inference ID"
27+
}
28+
}
29+
}
30+
]
31+
},
32+
"body": {
33+
"description": "The inference endpoint's task and service settings",
34+
"required": true
35+
},
36+
"params": {
37+
"timeout": {
38+
"type": "time",
39+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
40+
"default": "30s"
41+
}
42+
}
43+
}
44+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"inference.put_nvidia": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-nvidia",
5+
"description": "Create an Nvidia inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{nvidia_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "enum",
21+
"description": "The task type",
22+
"options": [
23+
"rerank",
24+
"text_embedding",
25+
"completion",
26+
"chat_completion"
27+
]
28+
},
29+
"nvidia_inference_id": {
30+
"type": "string",
31+
"description": "The inference ID"
32+
}
33+
}
34+
}
35+
]
36+
},
37+
"body": {
38+
"description": "The inference endpoint's task and service settings",
39+
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
47+
}
48+
}
49+
}

specification/_json_spec/ml.stop_datafeed.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
"default": false,
3636
"description": "True if the datafeed should be forcefully stopped."
3737
},
38+
"close_job": {
39+
"type": "boolean",
40+
"default": false,
41+
"description": "True if the job associated with the datafeed should be closed."
42+
},
3843
"timeout": {
3944
"type": "time",
4045
"default": "20s",

specification/_json_spec/project.tags.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@
1313
"paths": [
1414
{
1515
"path": "/_project/tags",
16-
"methods": ["GET", "POST"]
16+
"methods": ["GET"]
1717
}
1818
]
19-
},
20-
"params": {
21-
"project_routing": {
22-
"type": "string",
23-
"description": "A Lucene query using project metadata tags used to filter which projects are returned in the response, such as _alias:_origin or _alias:*pr*."
24-
}
2519
}
2620
}
2721
}

0 commit comments

Comments
 (0)