Skip to content

Commit 012e543

Browse files
committed
fix(openapi): update schema to reflect new edge conditions and remove redundant fields
1 parent 8af0fe2 commit 012e543

File tree

1 file changed

+29
-41
lines changed

1 file changed

+29
-41
lines changed

fern/apis/api/openapi.json

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6508,10 +6508,6 @@
65086508
]
65096509
}
65106510
},
6511-
"semanticCachingEnabled": {
6512-
"type": "boolean",
6513-
"example": true
6514-
},
65156511
"temperature": {
65166512
"type": "number",
65176513
"description": "This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency.",
@@ -6848,13 +6844,13 @@
68486844
"model"
68496845
]
68506846
},
6851-
"SemanticEdgeCondition": {
6847+
"AIEdgeCondition": {
68526848
"type": "object",
68536849
"properties": {
68546850
"type": {
68556851
"type": "string",
68566852
"enum": [
6857-
"semantic"
6853+
"ai"
68586854
]
68596855
},
68606856
"matches": {
@@ -6870,23 +6866,37 @@
68706866
"matches"
68716867
]
68726868
},
6873-
"ProgrammaticEdgeCondition": {
6869+
"LogicEdgeCondition": {
68746870
"type": "object",
68756871
"properties": {
68766872
"type": {
68776873
"type": "string",
68786874
"enum": [
6879-
"programmatic"
6875+
"logic"
68806876
]
68816877
},
6882-
"booleanExpression": {
6878+
"liquid": {
68836879
"type": "string",
68846880
"maxLength": 100
68856881
}
68866882
},
68876883
"required": [
68886884
"type",
6889-
"booleanExpression"
6885+
"liquid"
6886+
]
6887+
},
6888+
"FailedEdgeCondition": {
6889+
"type": "object",
6890+
"properties": {
6891+
"type": {
6892+
"type": "string",
6893+
"enum": [
6894+
"failed"
6895+
]
6896+
}
6897+
},
6898+
"required": [
6899+
"type"
68906900
]
68916901
},
68926902
"Edge": {
@@ -6895,12 +6905,16 @@
68956905
"condition": {
68966906
"oneOf": [
68976907
{
6898-
"$ref": "#/components/schemas/SemanticEdgeCondition",
6899-
"title": "SemanticEdgeCondition"
6908+
"$ref": "#/components/schemas/AIEdgeCondition",
6909+
"title": "AIEdgeCondition"
69006910
},
69016911
{
6902-
"$ref": "#/components/schemas/ProgrammaticEdgeCondition",
6903-
"title": "ProgrammaticEdgeCondition"
6912+
"$ref": "#/components/schemas/LogicEdgeCondition",
6913+
"title": "LogicEdgeCondition"
6914+
},
6915+
{
6916+
"$ref": "#/components/schemas/FailedEdgeCondition",
6917+
"title": "FailedEdgeCondition"
69046918
}
69056919
]
69066920
},
@@ -6925,12 +6939,6 @@
69256939
"Workflow": {
69266940
"type": "object",
69276941
"properties": {
6928-
"type": {
6929-
"type": "string",
6930-
"enum": [
6931-
"workflow"
6932-
]
6933-
},
69346942
"nodes": {
69356943
"type": "array",
69366944
"items": {
@@ -6954,10 +6962,6 @@
69546962
{
69556963
"$ref": "#/components/schemas/Transfer",
69566964
"title": "Transfer"
6957-
},
6958-
{
6959-
"$ref": "#/components/schemas/CreateWorkflowDTO",
6960-
"title": "CreateWorkflowDTO"
69616965
}
69626966
]
69636967
}
@@ -6988,7 +6992,6 @@
69886992
}
69896993
},
69906994
"required": [
6991-
"type",
69926995
"nodes",
69936996
"id",
69946997
"orgId",
@@ -19545,7 +19548,7 @@
1954519548
]
1954619549
},
1954719550
"destination": {
19548-
"$ref": "#/components/schemas/TransferDestinationNumber"
19551+
"type": "object"
1954919552
},
1955019553
"name": {
1955119554
"type": "string",
@@ -19565,12 +19568,6 @@
1956519568
"CreateWorkflowDTO": {
1956619569
"type": "object",
1956719570
"properties": {
19568-
"type": {
19569-
"type": "string",
19570-
"enum": [
19571-
"workflow"
19572-
]
19573-
},
1957419571
"nodes": {
1957519572
"type": "array",
1957619573
"items": {
@@ -19594,10 +19591,6 @@
1959419591
{
1959519592
"$ref": "#/components/schemas/Transfer",
1959619593
"title": "Transfer"
19597-
},
19598-
{
19599-
"$ref": "#/components/schemas/CreateWorkflowDTO",
19600-
"title": "CreateWorkflowDTO"
1960119594
}
1960219595
]
1960319596
}
@@ -19614,7 +19607,6 @@
1961419607
}
1961519608
},
1961619609
"required": [
19617-
"type",
1961819610
"nodes",
1961919611
"name",
1962019612
"edges"
@@ -23916,10 +23908,6 @@
2391623908
{
2391723909
"$ref": "#/components/schemas/Transfer",
2391823910
"title": "Transfer"
23919-
},
23920-
{
23921-
"$ref": "#/components/schemas/CreateWorkflowDTO",
23922-
"title": "CreateWorkflowDTO"
2392323911
}
2392423912
]
2392523913
}

0 commit comments

Comments
 (0)