Skip to content

Commit f2ef7f0

Browse files
committed
fix(openapi): Update OpenAPI specification for pagination and tests
- Change default sort order for pagination to 'DESC' - Add new Google model 'gemini-2.0-flash-thinking-exp' - Add new Grok model 'grok-2' - Add new Mistral pipeline errors - Remove 'UpdateWorkflowDTO' schema - Add 'EvalsPaginatedResponse', 'EvalTest', 'EvalTestsPaginatedResponse', 'EvalRunsPaginatedResponse' schemas
1 parent 6121492 commit f2ef7f0

File tree

1 file changed

+133
-47
lines changed

1 file changed

+133
-47
lines changed

fern/apis/api/openapi.json

Lines changed: 133 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,7 +3076,7 @@
30763076
"name": "sortOrder",
30773077
"required": false,
30783078
"in": "query",
3079-
"description": "This is the sort order for pagination. Defaults to 'ASC'.",
3079+
"description": "This is the sort order for pagination. Defaults to 'DESC'.",
30803080
"schema": {
30813081
"enum": [
30823082
"ASC",
@@ -5967,6 +5967,7 @@
59675967
"type": "string",
59685968
"description": "This is the Google model that will be used.",
59695969
"enum": [
5970+
"gemini-2.0-flash-thinking-exp",
59705971
"gemini-2.0-pro-exp-02-05",
59715972
"gemini-2.0-flash",
59725973
"gemini-2.0-flash-lite-preview-02-05",
@@ -7212,7 +7213,8 @@
72127213
"type": "string",
72137214
"description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b",
72147215
"enum": [
7215-
"grok-beta"
7216+
"grok-beta",
7217+
"grok-2"
72167218
]
72177219
},
72187220
"provider": {
@@ -13260,6 +13262,7 @@
1326013262
"pipeline-error-groq-llm-failed",
1326113263
"pipeline-error-google-llm-failed",
1326213264
"pipeline-error-xai-llm-failed",
13265+
"pipeline-error-mistral-llm-failed",
1326313266
"pipeline-error-inflection-ai-llm-failed",
1326413267
"pipeline-error-cerebras-llm-failed",
1326513268
"pipeline-error-deep-seek-llm-failed",
@@ -13278,6 +13281,11 @@
1327813281
"pipeline-error-xai-403-model-access-denied",
1327913282
"pipeline-error-xai-429-exceeded-quota",
1328013283
"pipeline-error-xai-500-server-error",
13284+
"pipeline-error-mistral-400-bad-request-validation-failed",
13285+
"pipeline-error-mistral-401-unauthorized",
13286+
"pipeline-error-mistral-403-model-access-denied",
13287+
"pipeline-error-mistral-429-exceeded-quota",
13288+
"pipeline-error-mistral-500-server-error",
1328113289
"pipeline-error-inflection-ai-400-bad-request-validation-failed",
1328213290
"pipeline-error-inflection-ai-401-unauthorized",
1328313291
"pipeline-error-inflection-ai-403-model-access-denied",
@@ -24058,48 +24066,6 @@
2405824066
}
2405924067
}
2406024068
},
24061-
"UpdateWorkflowDTO": {
24062-
"type": "object",
24063-
"properties": {
24064-
"nodes": {
24065-
"type": "array",
24066-
"items": {
24067-
"oneOf": [
24068-
{
24069-
"$ref": "#/components/schemas/Say",
24070-
"title": "Say"
24071-
},
24072-
{
24073-
"$ref": "#/components/schemas/Gather",
24074-
"title": "Gather"
24075-
},
24076-
{
24077-
"$ref": "#/components/schemas/ApiRequest",
24078-
"title": "ApiRequest"
24079-
},
24080-
{
24081-
"$ref": "#/components/schemas/Hangup",
24082-
"title": "Hangup"
24083-
},
24084-
{
24085-
"$ref": "#/components/schemas/Transfer",
24086-
"title": "Transfer"
24087-
}
24088-
]
24089-
}
24090-
},
24091-
"name": {
24092-
"type": "string",
24093-
"maxLength": 80
24094-
},
24095-
"edges": {
24096-
"type": "array",
24097-
"items": {
24098-
"$ref": "#/components/schemas/Edge"
24099-
}
24100-
}
24101-
}
24102-
},
2410324069
"Eval": {
2410424070
"type": "object",
2410524071
"properties": {
@@ -24138,19 +24104,22 @@
2413824104
"updatedAt"
2413924105
]
2414024106
},
24141-
"GetEvalsResponseDto": {
24107+
"EvalsPaginatedResponse": {
2414224108
"type": "object",
2414324109
"properties": {
2414424110
"results": {
24145-
"description": "These are the evaluations returned in the response.",
2414624111
"type": "array",
2414724112
"items": {
2414824113
"$ref": "#/components/schemas/Eval"
2414924114
}
24115+
},
24116+
"metadata": {
24117+
"$ref": "#/components/schemas/PaginationMeta"
2415024118
}
2415124119
},
2415224120
"required": [
24153-
"results"
24121+
"results",
24122+
"metadata"
2415424123
]
2415524124
},
2415624125
"CreateEvalDto": {
@@ -24250,6 +24219,93 @@
2425024219
"attempts"
2425124220
]
2425224221
},
24222+
"EvalTest": {
24223+
"type": "object",
24224+
"properties": {
24225+
"scorers": {
24226+
"type": "array",
24227+
"description": "These are the scorers used to evaluate the test.",
24228+
"items": {
24229+
"oneOf": [
24230+
{
24231+
"$ref": "#/components/schemas/EvalTestScorerAI",
24232+
"title": "AI"
24233+
}
24234+
]
24235+
}
24236+
},
24237+
"type": {
24238+
"type": "string",
24239+
"description": "This is the type of the test, which must be voice.",
24240+
"enum": [
24241+
"voice"
24242+
],
24243+
"maxLength": 100
24244+
},
24245+
"id": {
24246+
"type": "string",
24247+
"description": "This is the unique identifier for the test."
24248+
},
24249+
"evalId": {
24250+
"type": "string",
24251+
"description": "This is the unique identifier for the evaluation this test belongs to."
24252+
},
24253+
"createdAt": {
24254+
"format": "date-time",
24255+
"type": "string",
24256+
"description": "This is the ISO 8601 date-time string of when the test was created."
24257+
},
24258+
"updatedAt": {
24259+
"format": "date-time",
24260+
"type": "string",
24261+
"description": "This is the ISO 8601 date-time string of when the test was last updated."
24262+
},
24263+
"name": {
24264+
"type": "string",
24265+
"description": "This is the name of the test.",
24266+
"maxLength": 80
24267+
},
24268+
"script": {
24269+
"type": "string",
24270+
"description": "This is the script to be used for the voice test.",
24271+
"maxLength": 10000
24272+
},
24273+
"attempts": {
24274+
"type": "number",
24275+
"description": "This is the number of attempts allowed for the test.",
24276+
"minimum": 1,
24277+
"maximum": 10
24278+
}
24279+
},
24280+
"required": [
24281+
"scorers",
24282+
"type",
24283+
"id",
24284+
"evalId",
24285+
"createdAt",
24286+
"updatedAt",
24287+
"script",
24288+
"attempts"
24289+
]
24290+
},
24291+
"EvalTestsPaginatedResponse": {
24292+
"type": "object",
24293+
"properties": {
24294+
"results": {
24295+
"type": "array",
24296+
"items": {
24297+
"$ref": "#/components/schemas/EvalTest"
24298+
}
24299+
},
24300+
"metadata": {
24301+
"$ref": "#/components/schemas/PaginationMeta"
24302+
}
24303+
},
24304+
"required": [
24305+
"results",
24306+
"metadata"
24307+
]
24308+
},
2425324309
"EvalRunTestAttemptCall": {
2425424310
"type": "object",
2425524311
"properties": {
@@ -24366,6 +24422,24 @@
2436624422
"testResults"
2436724423
]
2436824424
},
24425+
"EvalRunsPaginatedResponse": {
24426+
"type": "object",
24427+
"properties": {
24428+
"results": {
24429+
"type": "array",
24430+
"items": {
24431+
"$ref": "#/components/schemas/EvalRun"
24432+
}
24433+
},
24434+
"metadata": {
24435+
"$ref": "#/components/schemas/PaginationMeta"
24436+
}
24437+
},
24438+
"required": [
24439+
"results",
24440+
"metadata"
24441+
]
24442+
},
2436924443
"CreateEvalRunDto": {
2437024444
"type": "object",
2437124445
"properties": {
@@ -25164,6 +25238,7 @@
2516425238
"pipeline-error-groq-llm-failed",
2516525239
"pipeline-error-google-llm-failed",
2516625240
"pipeline-error-xai-llm-failed",
25241+
"pipeline-error-mistral-llm-failed",
2516725242
"pipeline-error-inflection-ai-llm-failed",
2516825243
"pipeline-error-cerebras-llm-failed",
2516925244
"pipeline-error-deep-seek-llm-failed",
@@ -25182,6 +25257,11 @@
2518225257
"pipeline-error-xai-403-model-access-denied",
2518325258
"pipeline-error-xai-429-exceeded-quota",
2518425259
"pipeline-error-xai-500-server-error",
25260+
"pipeline-error-mistral-400-bad-request-validation-failed",
25261+
"pipeline-error-mistral-401-unauthorized",
25262+
"pipeline-error-mistral-403-model-access-denied",
25263+
"pipeline-error-mistral-429-exceeded-quota",
25264+
"pipeline-error-mistral-500-server-error",
2518525265
"pipeline-error-inflection-ai-400-bad-request-validation-failed",
2518625266
"pipeline-error-inflection-ai-401-unauthorized",
2518725267
"pipeline-error-inflection-ai-403-model-access-denied",
@@ -25960,6 +26040,7 @@
2596026040
"pipeline-error-groq-llm-failed",
2596126041
"pipeline-error-google-llm-failed",
2596226042
"pipeline-error-xai-llm-failed",
26043+
"pipeline-error-mistral-llm-failed",
2596326044
"pipeline-error-inflection-ai-llm-failed",
2596426045
"pipeline-error-cerebras-llm-failed",
2596526046
"pipeline-error-deep-seek-llm-failed",
@@ -25978,6 +26059,11 @@
2597826059
"pipeline-error-xai-403-model-access-denied",
2597926060
"pipeline-error-xai-429-exceeded-quota",
2598026061
"pipeline-error-xai-500-server-error",
26062+
"pipeline-error-mistral-400-bad-request-validation-failed",
26063+
"pipeline-error-mistral-401-unauthorized",
26064+
"pipeline-error-mistral-403-model-access-denied",
26065+
"pipeline-error-mistral-429-exceeded-quota",
26066+
"pipeline-error-mistral-500-server-error",
2598126067
"pipeline-error-inflection-ai-400-bad-request-validation-failed",
2598226068
"pipeline-error-inflection-ai-401-unauthorized",
2598326069
"pipeline-error-inflection-ai-403-model-access-denied",

0 commit comments

Comments
 (0)